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

/PHP_5_5/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
1838 long colno; local
2587 int colno = -1; local
2640 int colno = -1; local
[all...]
H A Dphp_pdo_driver.h333 * Driver should populate stmt->columns[colno] with appropriate info */
334 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno TSRMLS_DC);
342 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC);
391 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC);
/PHP_5_5/ext/pdo_dblib/
H A Ddblib_stmt.c196 static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
201 if(colno >= stmt->column_count || colno < 0) {
205 struct pdo_column_data *col = &stmt->columns[colno];
207 col->name = (char*)dbcolname(H->link, colno+1);
208 col->maxlen = dbcollen(H->link, colno+1);
215 static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, argument
226 coltype = dbcoltype(H->link, colno+1);
228 *len = dbdatlen(H->link, colno+1);
229 *ptr = dbdata(H->link, colno
290 pdo_dblib_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/pdo_mysql/
H A Dmysql_statement.c654 static int pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
666 if (colno >= stmt->column_count) {
705 static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) /* {{{ */ argument
722 if (colno >= stmt->column_count) {
728 Z_ADDREF_P(S->stmt->data->result_bind[colno].zv);
729 *ptr = (char*)&S->stmt->data->result_bind[colno].zv;
735 if (S->out_null[colno]) {
740 *ptr = S->bound_result[colno].buffer;
741 if (S->out_length[colno] > S->bound_result[colno]
806 pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/pdo_oci/
H A Doci_statement.c504 static int oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
511 struct pdo_column_data *col = &stmt->columns[colno];
515 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)&param, colno+1));
542 S->cols[colno].dtype = dtype;
553 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */
554 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1);
561 STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL));
562 S->cols[colno].datalen = sizeof(OCILobLocator*);
577 S->cols[colno]
721 oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
[all...]
/PHP_5_5/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_5/ext/pdo_sqlite/
H A Dsqlite_statement.c220 static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
224 if(colno >= sqlite3_column_count(S->stmt)) {
230 stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno));
231 stmt->columns[colno].namelen = strlen(stmt->columns[colno].name);
232 stmt->columns[colno].maxlen = 0xffffffff;
233 stmt->columns[colno].precision = 0;
235 switch (sqlite3_column_type(S->stmt, colno)) {
242 stmt->columns[colno]
249 pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
278 pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/pdo_firebird/
H A Dfirebird_statement.c183 static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
186 struct pdo_column_data *col = &stmt->columns[colno];
187 XSQLVAR *var = &S->out_sqlda.sqlvar[colno];
221 static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ */ argument
270 *ptr = S->fetch_buf[colno] = erealloc(*ptr, *len+1);
298 static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ */ argument
302 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno];
340 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
365 *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
369 *ptr = FETCH_BUF(S->fetch_buf[colno], cha
[all...]
/PHP_5_5/ext/pdo_odbc/
H A Dodbc_stmt.c548 static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
551 struct pdo_column_data *col = &stmt->columns[colno];
557 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname,
558 sizeof(S->cols[colno].colname)-1, &colnamelen,
559 &S->cols[colno].coltype, &colsize, NULL, NULL);
568 rc = SQLColAttribute(S->stmt, colno+1,
580 col->maxlen = S->cols[colno].datalen = colsize;
582 col->name = estrdup(S->cols[colno].colname);
583 S->cols[colno]
615 odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/pgsql/
H A Dpgsql.c2806 unsigned long colno=0; local
2810 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &result, &colno) == FAILURE) {
2819 if (colno >= num_fields || colno < 0) {
2820 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid column number '%ld'", colno);
2831 if (PQgetisnull(pgsql_result, pg_row, colno)) {
2834 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, colno), 1);

Completed in 22 milliseconds