Lines Matching refs:colno

565 static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno)  in odbc_stmt_describe()  argument
568 struct pdo_column_data *col = &stmt->columns[colno]; in odbc_stmt_describe()
574 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
575 sizeof(S->cols[colno].colname)-1, &colnamelen, in odbc_stmt_describe()
576 &S->cols[colno].coltype, &colsize, NULL, NULL); in odbc_stmt_describe()
583 (S->cols[colno].coltype == SQL_VARCHAR || in odbc_stmt_describe()
584 S->cols[colno].coltype == SQL_LONGVARCHAR || in odbc_stmt_describe()
586 S->cols[colno].coltype == SQL_WVARCHAR || in odbc_stmt_describe()
589 S->cols[colno].coltype == SQL_WLONGVARCHAR || in odbc_stmt_describe()
591 S->cols[colno].coltype == SQL_VARBINARY || in odbc_stmt_describe()
592 S->cols[colno].coltype == SQL_LONGVARBINARY)) { in odbc_stmt_describe()
603 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
615 col->maxlen = S->cols[colno].datalen = colsize; in odbc_stmt_describe()
616 col->name = zend_string_init(S->cols[colno].colname, colnamelen, 0); in odbc_stmt_describe()
617 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
626 S->cols[colno].data = emalloc(colsize+1); in odbc_stmt_describe()
627 S->cols[colno].is_long = 0; in odbc_stmt_describe()
629 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
630 S->cols[colno].is_unicode ? SQL_C_BINARY : SQL_C_CHAR, in odbc_stmt_describe()
631 S->cols[colno].data, in odbc_stmt_describe()
632 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
641 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
643 S->cols[colno].is_long = 1; in odbc_stmt_describe()
649 static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_… in odbc_stmt_get_col() argument
652 pdo_odbc_column *C = &S->cols[colno]; in odbc_stmt_get_col()
666 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
695 …rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetche… in odbc_stmt_get_col()