Lines Matching refs:fetched_len
616 S->cols[colno].datalen+1, &S->cols[colno].fetched_len); in odbc_stmt_describe()
655 256, &C->fetched_len); in odbc_stmt_get_col()
656 orig_fetched_len = C->fetched_len; in odbc_stmt_get_col()
658 if (rc == SQL_SUCCESS && C->fetched_len < 256) { in odbc_stmt_get_col()
679 C->fetched_len = 0; in odbc_stmt_get_col()
681 …QLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetched_len); in odbc_stmt_get_col()
684 if (orig_fetched_len >= 0 && C->fetched_len >= 0) { in odbc_stmt_get_col()
685 SQLLEN fixed_used = orig_fetched_len - C->fetched_len; in odbc_stmt_get_col()
691 if (rc==SQL_SUCCESS_WITH_INFO || (rc==SQL_SUCCESS && C->fetched_len > 255)) { in odbc_stmt_get_col()
699 str = zend_string_realloc(str, used + C->fetched_len, 0); in odbc_stmt_get_col()
700 memcpy(ZSTR_VAL(str) + used, buf2, C->fetched_len); in odbc_stmt_get_col()
701 used = used + C->fetched_len; in odbc_stmt_get_col()
726 if (C->fetched_len == SQL_NULL_DATA) { in odbc_stmt_get_col()
730 } else if (C->fetched_len >= 0) { in odbc_stmt_get_col()
732 ZVAL_STRINGL_FAST(result, C->data, C->fetched_len); in odbc_stmt_get_col()