Lines Matching refs:cols
128 if (S->cols) { in free_cols()
132 if (S->cols[i].data) { in free_cols()
133 efree(S->cols[i].data); in free_cols()
136 efree(S->cols); in free_cols()
137 S->cols = NULL; in free_cols()
275 S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); in odbc_stmt_execute()
573 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe()
574 sizeof(S->cols[colno].colname)-1, &colnamelen, in odbc_stmt_describe()
575 &S->cols[colno].coltype, &colsize, NULL, NULL); in odbc_stmt_describe()
582 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe()
583 S->cols[colno].coltype == SQL_LONGVARCHAR || in odbc_stmt_describe()
585 S->cols[colno].coltype == SQL_WVARCHAR || in odbc_stmt_describe()
588 S->cols[colno].coltype == SQL_WLONGVARCHAR || in odbc_stmt_describe()
590 S->cols[colno].coltype == SQL_VARBINARY || in odbc_stmt_describe()
591 S->cols[colno].coltype == SQL_LONGVARBINARY)) { in odbc_stmt_describe()
614 col->maxlen = S->cols[colno].datalen = colsize; in odbc_stmt_describe()
615 col->name = zend_string_init(S->cols[colno].colname, colnamelen, 0); in odbc_stmt_describe()
616 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
625 S->cols[colno].data = emalloc(colsize+1); in odbc_stmt_describe()
626 S->cols[colno].is_long = 0; in odbc_stmt_describe()
629 S->cols[colno].is_unicode ? SQL_C_BINARY : SQL_C_CHAR, in odbc_stmt_describe()
630 S->cols[colno].data, in odbc_stmt_describe()
631 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
640 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
642 S->cols[colno].is_long = 1; in odbc_stmt_describe()
651 pdo_odbc_column *C = &S->cols[colno]; in odbc_stmt_get_col()
853 S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); in odbc_stmt_next_rowset()