/PHP-8.3/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 241 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.3/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 225 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-8.3/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 570 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-8.3/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 471 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.3/ext/pdo_oci/ |
H A D | oci_statement.c | 546 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.3/ext/pdo_mysql/ |
H A D | mysql_statement.c | 638 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.3/ext/pdo_firebird/ |
H A D | firebird_statement.c | 235 static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ in firebird_stmt_describe() argument 238 struct pdo_column_data *col = &stmt->columns[colno]; in firebird_stmt_describe() 239 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe() 265 static int firebird_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) in firebird_stmt_get_column_meta() argument 268 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_column_meta() 299 static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, zval *result, ISC_QUAD *blob_id) in firebird_fetch_blob() argument 385 pdo_stmt_t *stmt, int colno, zval *result, enum pdo_param_type *type) in firebird_stmt_get_col() argument 388 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col() 500 return firebird_fetch_blob(stmt, colno, result, &quad); in firebird_stmt_get_col()
|
/PHP-8.3/ext/pdo/ |
H A D | pdo_stmt.c | 489 if (colno < 0) { in fetch_value() 495 if (colno >= stmt->column_count) { in fetch_value() 723 int colno; in do_fetch() local 742 colno = 1; in do_fetch() 744 colno = stmt->fetch.column; in do_fetch() 784 if (colno < 0 ) { in do_fetch() 1666 zend_long colno; in PHP_METHOD() local 1670 Z_PARAM_LONG(colno) in PHP_METHOD() 1674 if (colno < 0) { in PHP_METHOD() 1691 col = &stmt->columns[colno]; in PHP_METHOD() [all …]
|
H A D | php_pdo_driver.h | 330 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.3/ext/pgsql/ |
H A D | pgsql.c | 1941 zend_long colno=0; in PHP_FUNCTION() local 1945 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &result, pgsql_result_ce, &colno) == FAILURE) { in PHP_FUNCTION() 1952 if (colno < 0) { in PHP_FUNCTION() 1960 if (colno >= (zend_long)num_fields) { in PHP_FUNCTION() 1972 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { in PHP_FUNCTION() 1975 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno)); in PHP_FUNCTION()
|