Lines Matching refs:colno

548 static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)  in odbc_stmt_describe()
551 struct pdo_column_data *col = &stmt->columns[colno]; in odbc_stmt_describe()
557 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe()
558 sizeof(S->cols[colno].colname)-1, &colnamelen, in odbc_stmt_describe()
559 &S->cols[colno].coltype, &colsize, NULL, NULL); in odbc_stmt_describe()
568 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
580 col->maxlen = S->cols[colno].datalen = colsize; in odbc_stmt_describe()
582 col->name = estrdup(S->cols[colno].colname); in odbc_stmt_describe()
583 S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); in odbc_stmt_describe()
592 S->cols[colno].data = emalloc(colsize+1); in odbc_stmt_describe()
593 S->cols[colno].is_long = 0; in odbc_stmt_describe()
595 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
596 S->cols[colno].is_unicode ? SQL_C_BINARY : SQL_C_CHAR, in odbc_stmt_describe()
597 S->cols[colno].data, in odbc_stmt_describe()
598 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
607 S->cols[colno].data = emalloc(256); in odbc_stmt_describe()
609 S->cols[colno].is_long = 1; in odbc_stmt_describe()
615 static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *call… in odbc_stmt_get_col() argument
618 pdo_odbc_column *C = &S->cols[colno]; in odbc_stmt_get_col()
631 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
658 rc = SQLGetData(S->stmt, colno+1, SQL_C_CHAR, buf2, 256, &C->fetched_len); in odbc_stmt_get_col()