Lines Matching refs:colno

234 static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno)  in pdo_sqlite_stmt_describe()  argument
239 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_describe()
245 str = sqlite3_column_name(S->stmt, colno); in pdo_sqlite_stmt_describe()
246 stmt->columns[colno].name = zend_string_init(str, strlen(str), 0); in pdo_sqlite_stmt_describe()
247 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe()
248 stmt->columns[colno].precision = 0; in pdo_sqlite_stmt_describe()
250 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_describe()
257 stmt->columns[colno].param_type = PDO_PARAM_STR; in pdo_sqlite_stmt_describe()
264 static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *calle… in pdo_sqlite_stmt_get_col() argument
270 if(colno >= sqlite3_data_count(S->stmt)) { in pdo_sqlite_stmt_get_col()
275 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_get_col()
282 *ptr = (char*)sqlite3_column_blob(S->stmt, colno); in pdo_sqlite_stmt_get_col()
283 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col()
287 *ptr = (char*)sqlite3_column_text(S->stmt, colno); in pdo_sqlite_stmt_get_col()
288 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col()
293 static int pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) in pdo_sqlite_stmt_col_meta() argument
302 if(colno >= sqlite3_column_count(S->stmt)) { in pdo_sqlite_stmt_col_meta()
311 switch (sqlite3_column_type(S->stmt, colno)) { in pdo_sqlite_stmt_col_meta()
331 str = sqlite3_column_decltype(S->stmt, colno); in pdo_sqlite_stmt_col_meta()
337 str = sqlite3_column_table_name(S->stmt, colno); in pdo_sqlite_stmt_col_meta()