Searched refs:colno (Results 1 - 11 of 11) sorted by relevance

/PHP_5_3/ext/pdo/
H A Dpdo_stmt.c546 static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *type_override TSRMLS_DC) /* {{{ */ argument
554 col = &stmt->columns[colno];
561 stmt->methods->get_col(stmt, colno, &value, &value_len, &caller_frees TSRMLS_CC);
859 int colno; local
877 colno = 1;
879 colno = stmt->fetch.column;
918 if (colno >= 0 && colno < stmt->column_count) {
921 } else if (flags == PDO_FETCH_GROUP && colno) {
924 fetch_value(stmt, return_value, colno, NUL
1847 long colno; local
2608 int colno = -1; local
2651 int colno = -1; local
[all...]
H A Dphp_pdo_driver.h332 * Driver should populate stmt->columns[colno] with appropriate info */
333 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno TSRMLS_DC);
341 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC);
390 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC);
/PHP_5_3/ext/pdo_dblib/
H A Ddblib_stmt.c252 static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
255 struct pdo_column_data *col = &stmt->columns[colno];
261 col->maxlen = S->cols[colno].maxlen;
262 col->namelen = strlen(S->cols[colno].name);
263 col->name = estrdup(S->cols[colno].name);
269 static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, argument
273 pdo_dblib_colval *val = &S->rows[S->current * S->ncols + colno];
/PHP_5_3/ext/pdo_mysql/
H A Dmysql_statement.c677 static int pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
689 if (colno >= stmt->column_count) {
728 static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) /* {{{ */ argument
748 if (colno >= stmt->column_count) {
754 Z_ADDREF_P(S->stmt->data->result_bind[colno].zv);
755 *ptr = (char*)&S->stmt->data->result_bind[colno].zv;
761 if (S->out_null[colno]) {
766 *ptr = S->bound_result[colno].buffer;
767 if (S->out_length[colno] > S->bound_result[colno]
829 pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/pdo_oci/
H A Doci_statement.c498 static int oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
505 struct pdo_column_data *col = &stmt->columns[colno];
509 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)&param, colno+1));
536 S->cols[colno].dtype = dtype;
547 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */
548 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1);
555 STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL));
556 S->cols[colno].datalen = sizeof(OCILobLocator*);
571 S->cols[colno]
716 oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/pdo_odbc/
H A Dodbc_stmt.c542 static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
545 struct pdo_column_data *col = &stmt->columns[colno];
551 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname,
552 sizeof(S->cols[colno].colname)-1, &colnamelen,
553 &S->cols[colno].coltype, &colsize, NULL, NULL);
562 rc = SQLColAttribute(S->stmt, colno+1,
574 col->maxlen = S->cols[colno].datalen = colsize;
576 col->name = estrdup(S->cols[colno].colname);
577 S->cols[colno]
609 odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/pdo_pgsql/
H A Dpgsql_statement.c430 static int pgsql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
440 cols[colno].name = estrdup(PQfname(S->result, colno));
441 cols[colno].namelen = strlen(cols[colno].name);
442 cols[colno].maxlen = PQfsize(S->result, colno);
443 cols[colno].precision = PQfmod(S->result, colno);
444 S->cols[colno]
492 pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
571 pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/pdo_sqlite/
H A Dsqlite_statement.c214 static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
218 if(colno >= sqlite3_column_count(S->stmt)) {
224 stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno));
225 stmt->columns[colno].namelen = strlen(stmt->columns[colno].name);
226 stmt->columns[colno].maxlen = 0xffffffff;
227 stmt->columns[colno].precision = 0;
229 switch (sqlite3_column_type(S->stmt, colno)) {
236 stmt->columns[colno]
243 pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
272 pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c171 static int pdo_sqlite2_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
175 if(colno >= S->ncols) {
181 stmt->columns[colno].name = estrdup(S->colnames[colno]);
182 stmt->columns[colno].namelen = strlen(stmt->columns[colno].name);
183 stmt->columns[colno].maxlen = 0xffffffff;
184 stmt->columns[colno].precision = 0;
185 stmt->columns[colno].param_type = PDO_PARAM_STR;
190 static int pdo_sqlite2_stmt_get_col(pdo_stmt_t *stmt, int colno, cha argument
[all...]
/PHP_5_3/ext/pdo_firebird/
H A Dfirebird_statement.c185 static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
188 struct pdo_column_data *col = &stmt->columns[colno];
189 XSQLVAR *var = &S->out_sqlda.sqlvar[colno];
223 static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ */ argument
272 *ptr = S->fetch_buf[colno] = erealloc(*ptr, *len+1);
300 static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ */ argument
304 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno];
342 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
367 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
371 *ptr = FETCH_BUF(S->fetch_buf[colno], cha
[all...]
/PHP_5_3/ext/pgsql/
H A Dpgsql.c2661 unsigned long colno=0; local
2665 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &result, &colno) == FAILURE) {
2674 if (colno >= num_fields || colno < 0) {
2675 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid column number '%ld'", colno);
2686 if (PQgetisnull(pgsql_result, pg_row, colno)) {
2689 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, colno), 1);

Completed in 22 milliseconds