/PHP-7.2/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 279 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_describe() 285 str = sqlite3_column_name(S->stmt, colno); in pdo_sqlite_stmt_describe() 287 stmt->columns[colno].maxlen = 0xffffffff; in pdo_sqlite_stmt_describe() 288 stmt->columns[colno].precision = 0; in pdo_sqlite_stmt_describe() 290 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_describe() 310 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_get_col() 315 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_get_col() 323 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col() 328 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col() 342 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_col_meta() [all …]
|
/PHP-7.2/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 481 str = PQfname(S->result, colno); 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() 487 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_describe() 504 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe() 509 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe() 549 switch (cols[colno].param_type) { in pgsql_stmt_get_col() 651 if (colno >= stmt->column_count) { in pgsql_stmt_get_column_meta() 658 table_oid = PQftable(S->result, colno); in pgsql_stmt_get_column_meta() [all …]
|
/PHP-7.2/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 221 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_describe() 225 if (colno == 0) { in pdo_dblib_stmt_describe() 229 col = &stmt->columns[colno]; in pdo_dblib_stmt_describe() 230 fname = (char*)dbcolname(H->link, colno+1); in pdo_dblib_stmt_describe() 248 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe() 267 coltype = dbcoltype(H->link, colno+1); in pdo_dblib_stmt_get_col() 268 data = dbdata(H->link, colno+1); in pdo_dblib_stmt_get_col() 269 data_len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col() 454 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta() 460 dbtypeinfo = dbcoltypeinfo(H->link, colno+1); in pdo_dblib_stmt_get_column_meta() [all …]
|
/PHP-7.2/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 573 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe() 582 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe() 602 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe() 616 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe() 626 S->cols[colno].is_long = 0; in odbc_stmt_describe() 628 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe() 630 S->cols[colno].data, in odbc_stmt_describe() 631 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe() 640 S->cols[colno].data = emalloc(256); in odbc_stmt_describe() 642 S->cols[colno].is_long = 1; in odbc_stmt_describe() [all …]
|
/PHP-7.2/ext/pdo_oci/ |
H A D | oci_statement.c | 562 S->cols[colno].dtype = dtype; in oci_stmt_describe() 574 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe() 582 S->cols[colno].datalen = sizeof(OCILobLocator*); in oci_stmt_describe() 597 S->cols[colno].datalen = 512; in oci_stmt_describe() 600 S->cols[colno].datalen = 1024; in oci_stmt_describe() 608 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe() 615 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe() 616 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe() 617 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe() 620 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe() [all …]
|
/PHP-7.2/ext/pdo_mysql/ |
H A D | mysql_statement.c | 694 if (colno >= stmt->column_count) { 746 if (colno >= stmt->column_count) { 759 if (S->out_null[colno]) { 765 if (S->out_length[colno] > S->bound_result[colno].buffer_length) { 768 S->out_length[colno] = S->bound_result[colno].buffer_length; 769 *len = S->out_length[colno]; 772 *len = S->out_length[colno]; 776 *ptr = S->current_data[colno]; 777 *len = S->current_lengths[colno]; 842 if (colno >= stmt->column_count) { [all …]
|
/PHP-7.2/ext/pdo_firebird/ |
H A D | firebird_statement.c | 201 struct pdo_column_data *col = &stmt->columns[colno]; in firebird_stmt_describe() 202 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe() 297 *ptr = S->fetch_buf[colno] = erealloc(S->fetch_buf[colno], *len+1); in firebird_fetch_blob() 329 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col() 367 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col() 393 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 398 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 404 *ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL); in firebird_stmt_get_col() 407 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); in firebird_stmt_get_col() 433 *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); in firebird_stmt_get_col() [all …]
|
/PHP-7.2/ext/pdo/ |
H A D | pdo_stmt.c | 535 if (colno < 0 || colno >= stmt->column_count) { in fetch_value() 827 int colno; in do_fetch() local 845 colno = 1; in do_fetch() 885 if (colno >= 0 && colno < stmt->column_count) { in do_fetch() 1799 zend_long colno; in PHP_METHOD() local 1804 Z_PARAM_LONG(colno) in PHP_METHOD() 1807 if(colno < 0) { in PHP_METHOD() 2493 int colno = -1; in row_prop_read() local 2512 for (colno = 0; colno < stmt->column_count; colno++) { in row_prop_read() 2549 int colno = -1; in row_prop_exists() local [all …]
|
H A D | php_pdo_driver.h | 343 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno); 351 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int… 400 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, zend_long colno, zval *return_value);
|
/PHP-7.2/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.2/ext/pgsql/ |
H A D | pgsql.c | 2948 zend_long colno=0; local 2952 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &colno) == FAILURE) { 2963 if (colno >= (zend_long)num_fields || colno < 0) { 2964 php_error_docref(NULL, E_WARNING, "Invalid column number '" ZEND_LONG_FMT "'", colno); 2975 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { 2978 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno));
|