Lines Matching refs:fetched_len
632 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
667 256, &C->fetched_len); in odbc_stmt_get_col()
668 orig_fetched_len = C->fetched_len; in odbc_stmt_get_col()
670 if (rc == SQL_SUCCESS && C->fetched_len < 256) { in odbc_stmt_get_col()
693 C->fetched_len = 0; in odbc_stmt_get_col()
695 …QLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetched_len); in odbc_stmt_get_col()
698 if (orig_fetched_len >= 0 && C->fetched_len >= 0) { in odbc_stmt_get_col()
699 SQLLEN fixed_used = orig_fetched_len - C->fetched_len; in odbc_stmt_get_col()
705 if (rc==SQL_SUCCESS_WITH_INFO || (rc==SQL_SUCCESS && C->fetched_len > 255)) { in odbc_stmt_get_col()
713 buf = erealloc(buf, used + C->fetched_len+1); in odbc_stmt_get_col()
714 memcpy(buf + used, buf2, C->fetched_len); in odbc_stmt_get_col()
715 used = used + C->fetched_len; in odbc_stmt_get_col()
745 if (C->fetched_len == SQL_NULL_DATA) { in odbc_stmt_get_col()
750 } else if (C->fetched_len >= 0) { in odbc_stmt_get_col()
753 *len = C->fetched_len; in odbc_stmt_get_col()