Lines Matching refs:cols

121 	if (S->cols) {  in free_cols()
125 if (S->cols[i].data) { in free_cols()
126 efree(S->cols[i].data); in free_cols()
129 efree(S->cols); in free_cols()
130 S->cols = NULL; in free_cols()
270 if (S->cols == NULL) { in odbc_stmt_execute()
278 S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); in odbc_stmt_execute()
570 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
571 sizeof(S->cols[colno].colname)-1, &colnamelen, in odbc_stmt_describe()
572 &S->cols[colno].coltype, &colsize, NULL, NULL); in odbc_stmt_describe()
579 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe()
580 S->cols[colno].coltype == SQL_LONGVARCHAR || in odbc_stmt_describe()
582 S->cols[colno].coltype == SQL_WVARCHAR || in odbc_stmt_describe()
585 S->cols[colno].coltype == SQL_WLONGVARCHAR || in odbc_stmt_describe()
587 S->cols[colno].coltype == SQL_VARBINARY || in odbc_stmt_describe()
588 S->cols[colno].coltype == SQL_LONGVARBINARY)) { in odbc_stmt_describe()
611 col->maxlen = S->cols[colno].datalen = colsize; in odbc_stmt_describe()
612 col->name = zend_string_init(S->cols[colno].colname, colnamelen, 0); in odbc_stmt_describe()
613 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
619 S->cols[colno].data = emalloc(colsize+1); in odbc_stmt_describe()
620 S->cols[colno].is_long = 0; in odbc_stmt_describe()
623 S->cols[colno].is_unicode ? SQL_C_BINARY : SQL_C_CHAR, in odbc_stmt_describe()
624 S->cols[colno].data, in odbc_stmt_describe()
625 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
634 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
636 S->cols[colno].is_long = 1; in odbc_stmt_describe()
652 pdo_odbc_column *C = &S->cols[colno]; in odbc_stmt_get_col()
843 S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); in odbc_stmt_next_rowset()