Home
last modified time | relevance | path

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

/PHP-8.1/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-8.1/ext/pdo_dblib/
H A Ddblib_stmt.c226 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_describe()
230 if (colno == 0) { in pdo_dblib_stmt_describe()
234 col = &stmt->columns[colno]; in pdo_dblib_stmt_describe()
235 fname = (char*)dbcolname(H->link, colno+1); in pdo_dblib_stmt_describe()
253 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe()
354 coltype = dbcoltype(H->link, colno+1); in pdo_dblib_stmt_get_col()
355 data = dbdata(H->link, colno+1); in pdo_dblib_stmt_get_col()
356 data_len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col()
472 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta()
478 dbtypeinfo = dbcoltypeinfo(H->link, colno+1); in pdo_dblib_stmt_get_column_meta()
[all …]
/PHP-8.1/ext/pdo_odbc/
H A Dodbc_stmt.c561 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
570 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe()
590 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
604 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
611 S->cols[colno].is_long = 0; in odbc_stmt_describe()
613 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
615 S->cols[colno].data, in odbc_stmt_describe()
616 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
625 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
627 S->cols[colno].is_long = 1; in odbc_stmt_describe()
[all …]
/PHP-8.1/ext/pdo_pgsql/
H A Dpgsql_statement.c471 static int pgsql_stmt_describe(pdo_stmt_t *stmt, int colno) in pgsql_stmt_describe() argument
481 str = PQfname(S->result, colno); in pgsql_stmt_describe()
482 cols[colno].name = zend_string_init(str, strlen(str), 0); in pgsql_stmt_describe()
483 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
484 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe()
485 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe()
504 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_col()
604 if (colno >= stmt->column_count) { in pgsql_stmt_get_column_meta()
611 table_oid = PQftable(S->result, colno); in pgsql_stmt_get_column_meta()
619 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_column_meta()
[all …]
/PHP-8.1/ext/pdo_oci/
H A Doci_statement.c546 S->cols[colno].dtype = dtype; in oci_stmt_describe()
558 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
579 S->cols[colno].datalen = 512; in oci_stmt_describe()
582 S->cols[colno].datalen = 1024; in oci_stmt_describe()
590 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
594 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe()
595 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe()
596 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe()
599 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe()
758 pdo_oci_column *C = &S->cols[colno]; in oci_stmt_get_col()
[all …]
/PHP-8.1/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-8.1/ext/pdo/
H A Dpdo_stmt.c490 if (colno < 0) { in fetch_value()
724 int colno; in do_fetch() local
743 colno = 1; in do_fetch()
2265 int colno = -1; in row_prop_read() local
2279 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_read()
2294 int colno = -1; in row_dim_read() local
2319 for (colno = 0; colno < stmt->column_count; colno++) { in row_dim_read()
2345 int colno = -1; in row_prop_exists() local
2355 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_exists()
2375 int colno = -1; in row_dim_exists() local
[all …]
H A Dphp_pdo_driver.h330 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno);
338 pdo_stmt_t *stmt, int colno, zval *result, enum pdo_param_type *type);
387 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, zend_long colno, zval *return_value);
/PHP-8.1/ext/pdo_firebird/
H A Dfirebird_statement.c230 static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ in firebird_stmt_describe() argument
233 struct pdo_column_data *col = &stmt->columns[colno]; in firebird_stmt_describe()
234 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe()
257 static int firebird_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) in firebird_stmt_get_column_meta() argument
260 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_column_meta()
291 static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, zval *result, ISC_QUAD *blob_id) in firebird_fetch_blob() argument
377 pdo_stmt_t *stmt, int colno, zval *result, enum pdo_param_type *type) in firebird_stmt_get_col() argument
380 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col()
492 return firebird_fetch_blob(stmt, colno, result, &quad); in firebird_stmt_get_col()
/PHP-8.1/ext/pgsql/
H A Dpgsql.c2053 zend_long colno=0; in PHP_FUNCTION() local
2057 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &result, pgsql_result_ce, &colno) == FAILURE) { in PHP_FUNCTION()
2064 if (colno < 0) { in PHP_FUNCTION()
2072 if (colno >= (zend_long)num_fields) { in PHP_FUNCTION()
2084 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { in PHP_FUNCTION()
2087 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno)); in PHP_FUNCTION()

Completed in 62 milliseconds