Home
last modified time | relevance | path

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

/php-src/ext/pdo_sqlite/
H A Dsqlite_statement.c241 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_describe()
247 str = sqlite3_column_name(S->stmt, colno); in pdo_sqlite_stmt_describe()
249 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe()
250 stmt->columns[colno].precision = 0; in pdo_sqlite_stmt_describe()
262 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_get_col()
267 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_get_col()
278 sqlite3_column_bytes(S->stmt, colno)); in pdo_sqlite_stmt_get_col()
292 sqlite3_column_blob(S->stmt, colno), sqlite3_column_bytes(S->stmt, colno)); in pdo_sqlite_stmt_get_col()
297 (char *) sqlite3_column_text(S->stmt, colno), sqlite3_column_bytes(S->stmt, colno)); in pdo_sqlite_stmt_get_col()
311 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_col_meta()
[all …]
/php-src/ext/pdo_dblib/
H A Ddblib_stmt.c225 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_describe()
229 if (colno == 0) { in pdo_dblib_stmt_describe()
233 col = &stmt->columns[colno]; in pdo_dblib_stmt_describe()
234 fname = (char*)dbcolname(H->link, colno+1); in pdo_dblib_stmt_describe()
252 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe()
353 coltype = dbcoltype(H->link, colno+1); in pdo_dblib_stmt_get_col()
354 data = dbdata(H->link, colno+1); in pdo_dblib_stmt_get_col()
355 data_len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col()
471 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta()
477 dbtypeinfo = dbcoltypeinfo(H->link, colno+1); in pdo_dblib_stmt_get_column_meta()
[all …]
/php-src/ext/pdo_odbc/
H A Dodbc_stmt.c570 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
579 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe()
599 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
613 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
620 S->cols[colno].is_long = 0; in odbc_stmt_describe()
622 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
624 S->cols[colno].data, in odbc_stmt_describe()
625 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
634 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
636 S->cols[colno].is_long = 1; in odbc_stmt_describe()
[all …]
/php-src/ext/pdo_pgsql/
H A Dpgsql_statement.c601 static int pgsql_stmt_describe(pdo_stmt_t *stmt, int colno) in pgsql_stmt_describe() argument
611 str = PQfname(S->result, colno); in pgsql_stmt_describe()
612 cols[colno].name = zend_string_init(str, strlen(str), 0); in pgsql_stmt_describe()
613 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
614 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe()
615 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe()
634 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_col()
746 if (colno >= stmt->column_count) { in pgsql_stmt_get_column_meta()
753 table_oid = PQftable(S->result, colno); in pgsql_stmt_get_column_meta()
761 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_column_meta()
[all …]
/php-src/ext/pdo_mysql/
H A Dmysql_statement.c638 if (colno >= stmt->column_count) { in pdo_mysql_stmt_describe()
679 if (colno >= stmt->column_count) { in pdo_mysql_stmt_get_col()
687 ZVAL_COPY(result, &S->current_row[colno]); in pdo_mysql_stmt_get_col()
692 if (S->out_null[colno]) { in pdo_mysql_stmt_get_col()
696 size_t length = S->out_length[colno]; in pdo_mysql_stmt_get_col()
697 if (length > S->bound_result[colno].buffer_length) { in pdo_mysql_stmt_get_col()
700 length = S->out_length[colno] = S->bound_result[colno].buffer_length; in pdo_mysql_stmt_get_col()
709 if (S->current_data[colno]) { in pdo_mysql_stmt_get_col()
710 ZVAL_STRINGL_FAST(result, S->current_data[colno], S->current_lengths[colno]); in pdo_mysql_stmt_get_col()
777 if (colno >= stmt->column_count) { in pdo_mysql_stmt_col_meta()
[all …]
/php-src/ext/pdo/
H A Dpdo_stmt.c484 if (colno < 0) { in fetch_value()
490 if (colno >= stmt->column_count) { in fetch_value()
718 int colno; in do_fetch() local
737 colno = 1; in do_fetch()
739 colno = stmt->fetch.column; in do_fetch()
774 if (colno < 0 ) { in do_fetch()
1656 zend_long colno; in PHP_METHOD() local
1660 Z_PARAM_LONG(colno) in PHP_METHOD()
1664 if (colno < 0) { in PHP_METHOD()
1681 col = &stmt->columns[colno]; in PHP_METHOD()
[all …]
H A Dphp_pdo_driver.h335 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno);
343 pdo_stmt_t *stmt, int colno, zval *result, enum pdo_param_type *type);
392 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, zend_long colno, zval *return_value);
/php-src/ext/pdo_firebird/
H A Dfirebird_statement.c305 static int pdo_firebird_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ in pdo_firebird_stmt_describe() argument
308 struct pdo_column_data *col = &stmt->columns[colno]; in pdo_firebird_stmt_describe()
309 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_describe()
335 static int pdo_firebird_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) in pdo_firebird_stmt_get_column_meta() argument
338 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_get_column_meta()
367 static int php_firebird_fetch_blob(pdo_stmt_t *stmt, int colno, zval *result, ISC_QUAD *blob_id) in php_firebird_fetch_blob() argument
455 pdo_stmt_t *stmt, int colno, zval *result, enum pdo_param_type *type) in pdo_firebird_stmt_get_col() argument
458 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_get_col()
578 return php_firebird_fetch_blob(stmt, colno, result, &quad); in pdo_firebird_stmt_get_col()
/php-src/ext/pgsql/
H A Dpgsql.c2150 zend_long colno=0; in PHP_FUNCTION() local
2157 Z_PARAM_LONG(colno) in PHP_FUNCTION()
2163 if (colno < 0) { in PHP_FUNCTION()
2171 if (colno >= (zend_long)num_fields) { in PHP_FUNCTION()
2183 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { in PHP_FUNCTION()
2186 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno)); in PHP_FUNCTION()

Completed in 82 milliseconds