In ODBC when reading data in chunks with a specified out-length, use
[clsql.git] / db-odbc / odbc-api.lisp
index 92e7607c221d313fbd77986e7ba69c06ce5826be..f14a9d36b230cfdc3db5394dfaeac36642700525 100644 (file)
@@ -913,9 +913,7 @@ as possible second argument) to the desired representation of date/time/timestam
                                 finally (incf offset (1- i)))
                          while
                            (and (= res $SQL_SUCCESS_WITH_INFO)
-                                #+ingore(eq (sql-state +null-handle-ptr+ +null-handle-ptr+ hstmt)
-                                            $sql-data-truncated)
-                                (equal (sql-state +null-handle-ptr+ +null-handle-ptr+ hstmt) "01004"))
+                                (> out-len +max-precision+))
                          do
                            (setf res (%sql-get-data hstmt column-nr c-type data-ptr +max-precision+ out-len-ptr)
                                  out-len (deref-pointer out-len-ptr #.$ODBC-LONG-TYPE)))