Home
last modified time | relevance | path

Searched refs:colno (Results 1 – 11 of 11) sorted by relevance

/PHP-5.5/ext/pdo_sqlite/
H A Dsqlite_statement.c224 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_describe()
230 stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno)); in pdo_sqlite_stmt_describe()
231 stmt->columns[colno].namelen = strlen(stmt->columns[colno].name); in pdo_sqlite_stmt_describe()
232 stmt->columns[colno].maxlen = 0xffffffff; in pdo_sqlite_stmt_describe()
233 stmt->columns[colno].precision = 0; in pdo_sqlite_stmt_describe()
235 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_describe()
255 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_get_col()
260 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_get_col()
268 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col()
273 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col()
[all …]
/PHP-5.5/ext/pdo_dblib/
H A Ddblib_stmt.c196 static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) in pdo_dblib_stmt_describe()
201 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_describe()
205 struct pdo_column_data *col = &stmt->columns[colno]; in pdo_dblib_stmt_describe()
207 col->name = (char*)dbcolname(H->link, colno+1); in pdo_dblib_stmt_describe()
208 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe()
226 coltype = dbcoltype(H->link, colno+1); in pdo_dblib_stmt_get_col()
228 *len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col()
229 *ptr = dbdata(H->link, colno+1); in pdo_dblib_stmt_get_col()
296 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta()
302 dbtypeinfo = dbcoltypeinfo(H->link, colno+1); in pdo_dblib_stmt_get_column_meta()
[all …]
/PHP-5.5/ext/pdo_pgsql/
H A Dpgsql_statement.c441 cols[colno].name = estrdup(PQfname(S->result, colno)); in pgsql_stmt_describe()
442 cols[colno].namelen = strlen(cols[colno].name); in pgsql_stmt_describe()
443 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
444 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe()
445 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe()
447 switch(S->cols[colno].pgsql_type) { in pgsql_stmt_describe()
457 colno, (void**)&param) || in pgsql_stmt_describe()
459 cols[colno].name, cols[colno].namelen, in pgsql_stmt_describe()
511 switch(cols[colno].param_type) { in pgsql_stmt_get_col()
514 S->cols[colno].intval = atol(*ptr); in pgsql_stmt_get_col()
[all …]
/PHP-5.5/ext/pdo_odbc/
H A Dodbc_stmt.c557 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe()
568 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
583 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
592 S->cols[colno].data = emalloc(colsize+1); in odbc_stmt_describe()
593 S->cols[colno].is_long = 0; in odbc_stmt_describe()
595 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
597 S->cols[colno].data, in odbc_stmt_describe()
598 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
607 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
609 S->cols[colno].is_long = 1; in odbc_stmt_describe()
[all …]
/PHP-5.5/ext/pdo_oci/
H A Doci_statement.c542 S->cols[colno].dtype = dtype; in oci_stmt_describe()
554 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
577 S->cols[colno].datalen = 512; in oci_stmt_describe()
580 S->cols[colno].datalen = 1024; in oci_stmt_describe()
586 S->cols[colno].datalen *= 3; in oci_stmt_describe()
588 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
595 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe()
596 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe()
597 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe()
600 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe()
[all …]
/PHP-5.5/ext/pdo_mysql/
H A Dmysql_statement.c666 if (colno >= stmt->column_count) {
722 if (colno >= stmt->column_count) {
735 if (S->out_null[colno]) {
741 if (S->out_length[colno] > S->bound_result[colno].buffer_length) {
744 S->out_length[colno] = S->bound_result[colno].buffer_length;
745 *len = S->out_length[colno];
748 *len = S->out_length[colno];
752 *ptr = S->current_data[colno];
753 *len = S->current_lengths[colno];
818 if (colno >= stmt->column_count) {
[all …]
/PHP-5.5/ext/pdo_firebird/
H A Dfirebird_statement.c186 struct pdo_column_data *col = &stmt->columns[colno]; in firebird_stmt_describe()
187 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe()
270 *ptr = S->fetch_buf[colno] = erealloc(*ptr, *len+1); in firebird_fetch_blob()
302 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col()
340 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col()
369 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col()
373 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col()
377 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col()
381 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col()
398 *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); in firebird_stmt_get_col()
[all …]
/PHP-5.5/ext/pdo/
H A Dpdo_stmt.c554 col = &stmt->columns[colno]; in fetch_value()
859 int colno; in do_fetch() local
877 colno = 1; in do_fetch()
879 colno = stmt->fetch.column; in do_fetch()
918 if (colno >= 0 && colno < stmt->column_count) { in do_fetch()
1829 long colno; in PHP_METHOD() local
1836 if(colno < 0) { in PHP_METHOD()
2578 int colno = -1; in row_prop_read() local
2592 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_read()
2631 int colno = -1; in row_prop_exists() local
[all …]
H A Dphp_pdo_driver.h334 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno TSRMLS_DC);
342 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *l…
391 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, long colno, zval *return_value TSRML…
/PHP-5.5/ext/pdo/tests/
H A Dbug_44173.phpt73 Warning: PDO::query(): SQLSTATE[HY000]: General error: fetch mode requires the colno argument in %s
/PHP-5.5/ext/pgsql/
H A Dpgsql.c2806 unsigned long colno=0; local
2810 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &result, &colno) == FAILURE) {
2819 if (colno >= num_fields || colno < 0) {
2820 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid column number '%ld'", colno);
2831 if (PQgetisnull(pgsql_result, pg_row, colno)) {
2834 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, colno), 1);

Completed in 106 milliseconds