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

/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h335 * Driver should populate stmt->columns[colno] with appropriate info */
336 typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno);
344 typedef int (*pdo_stmt_get_col_data_func)(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *caller_frees);
393 typedef int (*pdo_stmt_get_column_meta_func)(pdo_stmt_t *stmt, zend_long colno, zval *return_value);
H A Dpdo_stmt.c544 static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *type_override) /* {{{ */ argument
552 col = &stmt->columns[colno];
559 stmt->methods->get_col(stmt, colno, &value, &value_len, &caller_frees);
840 int colno; local
858 colno = 1;
860 colno = stmt->fetch.column;
898 if (colno >= 0 && colno < stmt->column_count) {
901 } else if (flags == PDO_FETCH_GROUP && colno) {
904 fetch_value(stmt, return_value, colno, NUL
1802 zend_long colno; local
2489 int colno = -1; local
2552 int colno = -1; local
[all...]
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_stmt.c190 static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno) argument
197 if(colno >= stmt->column_count || colno < 0) {
201 col = &stmt->columns[colno];
202 str = dbcolname(H->link, colno+1);
204 col->maxlen = dbcollen(H->link, colno+1);
210 static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, argument
221 coltype = dbcoltype(H->link, colno+1);
223 *len = dbdatlen(H->link, colno+1);
224 *ptr = dbdata(H->link, colno
284 pdo_dblib_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) argument
[all...]
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_statement.c675 static int pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ argument
687 if (colno >= stmt->column_count) {
722 static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *caller_frees) /* {{{ */ argument
739 if (colno >= stmt->column_count) {
745 Z_TRY_ADDREF(S->stmt->data->result_bind[colno].zv);
746 *ptr = (char*)&S->stmt->data->result_bind[colno].zv;
752 if (S->out_null[colno]) {
757 *ptr = S->bound_result[colno].buffer;
758 if (S->out_length[colno] > S->bound_result[colno]
823 pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) argument
[all...]
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_stmt.c564 static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno) argument
567 struct pdo_column_data *col = &stmt->columns[colno];
573 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname,
574 sizeof(S->cols[colno].colname)-1, &colnamelen,
575 &S->cols[colno].coltype, &colsize, NULL, NULL);
584 rc = SQLColAttribute(S->stmt, colno+1,
596 col->maxlen = S->cols[colno].datalen = colsize;
597 col->name = zend_string_init(S->cols[colno].colname, colnamelen, 0);
598 S->cols[colno]
630 odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees) argument
[all...]
/PHP_TRUNK/ext/pdo_oci/
H A Doci_statement.c511 static int oci_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ argument
518 struct pdo_column_data *col = &stmt->columns[colno];
522 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)&param, colno+1));
548 S->cols[colno].dtype = dtype;
559 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */
560 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1);
567 STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL));
568 S->cols[colno].datalen = sizeof(OCILobLocator*);
583 S->cols[colno]
726 oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *caller_frees) argument
[all...]
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_statement.c436 static int pgsql_stmt_describe(pdo_stmt_t *stmt, int colno) argument
447 str = PQfname(S->result, colno);
448 cols[colno].name = zend_string_init(str, strlen(str), 0);
449 cols[colno].maxlen = PQfsize(S->result, colno);
450 cols[colno].precision = PQfmod(S->result, colno);
451 S->cols[colno].pgsql_type = PQftype(S->result, colno);
453 switch (S->cols[colno]
497 pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees ) argument
576 pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) argument
[all...]
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_statement.c233 static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno) argument
238 if(colno >= sqlite3_column_count(S->stmt)) {
244 str = sqlite3_column_name(S->stmt, colno);
245 stmt->columns[colno].name = zend_string_init(str, strlen(str), 0);
246 stmt->columns[colno].maxlen = 0xffffffff;
247 stmt->columns[colno].precision = 0;
249 switch (sqlite3_column_type(S->stmt, colno)) {
256 stmt->columns[colno].param_type = PDO_PARAM_STR;
263 static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees) argument
269 if(colno >
292 pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) argument
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c2907 zend_long colno=0; local
2911 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &colno) == FAILURE) {
2922 if (colno >= (zend_long)num_fields || colno < 0) {
2923 php_error_docref(NULL, E_WARNING, "Invalid column number '%pd'", colno);
2934 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) {
2937 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno));
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_statement.c183 static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ argument
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...]

Completed in 24 milliseconds