/PHP-8.0/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 239 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_describe() 245 str = sqlite3_column_name(S->stmt, colno); in pdo_sqlite_stmt_describe() 247 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe() 248 stmt->columns[colno].precision = 0; in pdo_sqlite_stmt_describe() 250 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_describe() 270 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_get_col() 275 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_get_col() 283 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col() 288 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col() 302 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_col_meta() [all …]
|
/PHP-8.0/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 483 str = PQfname(S->result, colno); in pgsql_stmt_describe() 485 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe() 486 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe() 487 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe() 489 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_describe() 506 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe() 511 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe() 551 switch (cols[colno].param_type) { in pgsql_stmt_get_col() 653 if (colno >= stmt->column_count) { in pgsql_stmt_get_column_meta() 660 table_oid = PQftable(S->result, colno); in pgsql_stmt_get_column_meta() [all …]
|
/PHP-8.0/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 226 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() 362 coltype = dbcoltype(H->link, colno+1); in pdo_dblib_stmt_get_col() 363 data = dbdata(H->link, colno+1); in pdo_dblib_stmt_get_col() 364 data_len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col() 517 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta() 523 dbtypeinfo = dbcoltypeinfo(H->link, colno+1); in pdo_dblib_stmt_get_column_meta() [all …]
|
/PHP-8.0/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 574 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe() 583 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe() 603 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe() 617 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe() 627 S->cols[colno].is_long = 0; in odbc_stmt_describe() 629 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe() 631 S->cols[colno].data, in odbc_stmt_describe() 632 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe() 641 S->cols[colno].data = emalloc(256); in odbc_stmt_describe() 643 S->cols[colno].is_long = 1; in odbc_stmt_describe() [all …]
|
/PHP-8.0/ext/pdo_oci/ |
H A D | oci_statement.c | 545 S->cols[colno].dtype = dtype; in oci_stmt_describe() 557 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe() 580 S->cols[colno].datalen = 512; in oci_stmt_describe() 583 S->cols[colno].datalen = 1024; in oci_stmt_describe() 591 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe() 598 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe() 599 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe() 600 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe() 603 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe() 748 pdo_oci_column *C = &S->cols[colno]; in oci_stmt_get_col() [all …]
|
/PHP-8.0/ext/pdo_mysql/ |
H A D | mysql_statement.c | 620 if (colno >= stmt->column_count) { in pdo_mysql_stmt_describe() 676 if (colno >= stmt->column_count) { in pdo_mysql_stmt_get_col() 689 if (S->out_null[colno]) { in pdo_mysql_stmt_get_col() 695 if (S->out_length[colno] > S->bound_result[colno].buffer_length) { in pdo_mysql_stmt_get_col() 698 S->out_length[colno] = S->bound_result[colno].buffer_length; in pdo_mysql_stmt_get_col() 699 *len = S->out_length[colno]; in pdo_mysql_stmt_get_col() 702 *len = S->out_length[colno]; in pdo_mysql_stmt_get_col() 706 *ptr = S->current_data[colno]; in pdo_mysql_stmt_get_col() 707 *len = S->current_lengths[colno]; in pdo_mysql_stmt_get_col() 772 if (colno >= stmt->column_count) { in pdo_mysql_stmt_col_meta() [all …]
|
/PHP-8.0/ext/pdo_firebird/ |
H A D | firebird_statement.c | 209 struct pdo_column_data *col = &stmt->columns[colno]; in firebird_stmt_describe() 210 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe() 315 *ptr = S->fetch_buf[colno] = erealloc(S->fetch_buf[colno], *len+1); in firebird_fetch_blob() 347 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col() 385 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col() 413 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 418 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 424 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 442 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_bool, 1, NULL); in firebird_stmt_get_col() 460 *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); in firebird_stmt_get_col() [all …]
|
/PHP-8.0/ext/pdo/ |
H A D | pdo_stmt.c | 499 if (colno < 0) { in fetch_value() 793 int colno; in do_fetch() local 812 colno = 1; in do_fetch() 2338 int colno = -1; in row_prop_read() local 2350 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_read() 2371 int colno = -1; in row_dim_read() local 2392 for (colno = 0; colno < stmt->column_count; colno++) { in row_dim_read() 2424 int colno = -1; in row_prop_exists() local 2434 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_exists() 2456 int colno = -1; in row_dim_exists() local [all …]
|
H A D | php_pdo_driver.h | 339 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno); 347 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int… 396 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, zend_long colno, zval *return_value);
|
/PHP-8.0/ext/pgsql/ |
H A D | pgsql.c | 2032 zend_long colno=0; in PHP_FUNCTION() local 2036 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &colno) == FAILURE) { in PHP_FUNCTION() 2044 if (colno < 0) { in PHP_FUNCTION() 2052 if (colno >= (zend_long)num_fields) { in PHP_FUNCTION() 2064 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { in PHP_FUNCTION() 2067 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno)); in PHP_FUNCTION()
|