Lines Matching refs:colno

601 static int pgsql_stmt_describe(pdo_stmt_t *stmt, int colno)  in pgsql_stmt_describe()  argument
611 str = PQfname(S->result, colno); in pgsql_stmt_describe()
612 cols[colno].name = zend_string_init(str, strlen(str), 0); in pgsql_stmt_describe()
613 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
614 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe()
615 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe()
620 static int pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, zval *result, enum pdo_param_type *type) in pgsql_stmt_get_col() argument
628 if (PQgetisnull(S->result, S->current_row - 1, colno)) { /* Check if we got NULL */ in pgsql_stmt_get_col()
631 char *ptr = PQgetvalue(S->result, S->current_row - 1, colno); in pgsql_stmt_get_col()
632 size_t len = PQgetlength(S->result, S->current_row - 1, colno); in pgsql_stmt_get_col()
634 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_col()
733 static int pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) in pgsql_stmt_get_column_meta() argument
746 if (colno >= stmt->column_count) { in pgsql_stmt_get_column_meta()
751 add_assoc_long(return_value, "pgsql:oid", S->cols[colno].pgsql_type); in pgsql_stmt_get_column_meta()
753 table_oid = PQftable(S->result, colno); in pgsql_stmt_get_column_meta()
761 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_column_meta()
797 spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%u", S->cols[colno].pgsql_type); in pgsql_stmt_get_column_meta()
808 switch (S->cols[colno].pgsql_type) { in pgsql_stmt_get_column_meta()