/PHP-7.3/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 277 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_describe() 283 str = sqlite3_column_name(S->stmt, colno); in pdo_sqlite_stmt_describe() 285 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe() 286 stmt->columns[colno].precision = 0; in pdo_sqlite_stmt_describe() 288 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_describe() 308 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_get_col() 313 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_get_col() 321 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col() 326 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col() 340 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_col_meta() [all …]
|
/PHP-7.3/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 479 str = PQfname(S->result, colno); in pgsql_stmt_describe() 481 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe() 482 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe() 483 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe() 485 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_describe() 502 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe() 507 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe() 547 switch (cols[colno].param_type) { in pgsql_stmt_get_col() 649 if (colno >= stmt->column_count) { in pgsql_stmt_get_column_meta() 656 table_oid = PQftable(S->result, colno); in pgsql_stmt_get_column_meta() [all …]
|
/PHP-7.3/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 228 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_describe() 232 if (colno == 0) { in pdo_dblib_stmt_describe() 236 col = &stmt->columns[colno]; in pdo_dblib_stmt_describe() 237 fname = (char*)dbcolname(H->link, colno+1); in pdo_dblib_stmt_describe() 255 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe() 364 coltype = dbcoltype(H->link, colno+1); in pdo_dblib_stmt_get_col() 365 data = dbdata(H->link, colno+1); in pdo_dblib_stmt_get_col() 366 data_len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col() 519 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta() 525 dbtypeinfo = dbcoltypeinfo(H->link, colno+1); in pdo_dblib_stmt_get_column_meta() [all …]
|
/PHP-7.3/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 572 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe() 581 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe() 601 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe() 615 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe() 625 S->cols[colno].is_long = 0; in odbc_stmt_describe() 627 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe() 629 S->cols[colno].data, in odbc_stmt_describe() 630 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe() 639 S->cols[colno].data = emalloc(256); in odbc_stmt_describe() 641 S->cols[colno].is_long = 1; in odbc_stmt_describe() [all …]
|
/PHP-7.3/ext/pdo_oci/ |
H A D | oci_statement.c | 560 S->cols[colno].dtype = dtype; in oci_stmt_describe() 572 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe() 580 S->cols[colno].datalen = sizeof(OCILobLocator*); in oci_stmt_describe() 595 S->cols[colno].datalen = 512; in oci_stmt_describe() 598 S->cols[colno].datalen = 1024; in oci_stmt_describe() 606 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe() 613 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe() 614 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe() 615 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe() 618 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe() [all …]
|
/PHP-7.3/ext/pdo_firebird/ |
H A D | firebird_statement.c | 208 struct pdo_column_data *col = &stmt->columns[colno]; in firebird_stmt_describe() 209 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe() 314 *ptr = S->fetch_buf[colno] = erealloc(S->fetch_buf[colno], *len+1); in firebird_fetch_blob() 346 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col() 384 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col() 410 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 415 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 421 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 439 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_bool, 1, NULL); in firebird_stmt_get_col() 457 *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); in firebird_stmt_get_col() [all …]
|
/PHP-7.3/ext/pdo_mysql/ |
H A D | mysql_statement.c | 692 if (colno >= stmt->column_count) { 744 if (colno >= stmt->column_count) { 757 if (S->out_null[colno]) { 763 if (S->out_length[colno] > S->bound_result[colno].buffer_length) { 766 S->out_length[colno] = S->bound_result[colno].buffer_length; 767 *len = S->out_length[colno]; 770 *len = S->out_length[colno]; 774 *ptr = S->current_data[colno]; 775 *len = S->current_lengths[colno]; 840 if (colno >= stmt->column_count) { [all …]
|
/PHP-7.3/ext/pdo/ |
H A D | pdo_stmt.c | 537 if (colno < 0 || colno >= stmt->column_count) { in fetch_value() 827 int colno; in do_fetch() local 845 colno = 1; in do_fetch() 884 if (colno >= 0 && colno < stmt->column_count) { in do_fetch() 1798 zend_long colno; in PHP_METHOD() local 1803 Z_PARAM_LONG(colno) in PHP_METHOD() 1806 if(colno < 0) { in PHP_METHOD() 2496 int colno = -1; in row_prop_read() local 2515 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_read() 2552 int colno = -1; in row_prop_exists() local [all …]
|
H A D | php_pdo_driver.h | 341 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno); 349 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int… 398 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, zend_long colno, zval *return_value);
|
/PHP-7.3/ext/pdo/tests/ |
H A D | bug_44173.phpt | 73 Warning: PDO::query(): SQLSTATE[HY000]: General error: fetch mode requires the colno argument in %s
|
/PHP-7.3/ext/pgsql/ |
H A D | pgsql.c | 2945 zend_long colno=0; local 2949 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &colno) == FAILURE) { 2960 if (colno >= (zend_long)num_fields || colno < 0) { 2961 php_error_docref(NULL, E_WARNING, "Invalid column number '" ZEND_LONG_FMT "'", colno); 2972 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { 2975 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno));
|