Lines Matching refs:cols
109 if(S->cols) { in pgsql_stmt_dtor()
110 efree(S->cols); in pgsql_stmt_dtor()
111 S->cols = NULL; in pgsql_stmt_dtor()
225 S->cols = ecalloc(stmt->column_count, sizeof(pdo_pgsql_column)); in pgsql_stmt_execute()
433 struct pdo_column_data *cols = stmt->columns; in pgsql_stmt_describe() local
440 cols[colno].name = estrdup(PQfname(S->result, colno)); in pgsql_stmt_describe()
441 cols[colno].namelen = strlen(cols[colno].name); in pgsql_stmt_describe()
442 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
443 cols[colno].precision = PQfmod(S->result, colno); in pgsql_stmt_describe()
444 S->cols[colno].pgsql_type = PQftype(S->result, colno); in pgsql_stmt_describe()
446 switch(S->cols[colno].pgsql_type) { in pgsql_stmt_describe()
449 cols[colno].param_type = PDO_PARAM_BOOL; in pgsql_stmt_describe()
458 cols[colno].name, cols[colno].namelen, in pgsql_stmt_describe()
461 cols[colno].param_type = PDO_PARAM_LOB; in pgsql_stmt_describe()
465 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe()
470 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe()
475 cols[colno].param_type = PDO_PARAM_INT; in pgsql_stmt_describe()
477 cols[colno].param_type = PDO_PARAM_STR; in pgsql_stmt_describe()
482 cols[colno].param_type = PDO_PARAM_LOB; in pgsql_stmt_describe()
486 cols[colno].param_type = PDO_PARAM_STR; in pgsql_stmt_describe()
495 struct pdo_column_data *cols = stmt->columns; in pgsql_stmt_get_col() local
510 switch(cols[colno].param_type) { in pgsql_stmt_get_col()
513 S->cols[colno].intval = atol(*ptr); in pgsql_stmt_get_col()
514 *ptr = (char *) &(S->cols[colno].intval); in pgsql_stmt_get_col()
519 S->cols[colno].boolval = **ptr == 't' ? 1: 0; in pgsql_stmt_get_col()
520 *ptr = (char *) &(S->cols[colno].boolval); in pgsql_stmt_get_col()
525 if (S->cols[colno].pgsql_type == OIDOID) { in pgsql_stmt_get_col()
587 add_assoc_long(return_value, "pgsql:oid", S->cols[colno].pgsql_type); in pgsql_stmt_get_column_meta()
590 spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%d", S->cols[colno].pgsql_type); in pgsql_stmt_get_column_meta()