X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=tests%2Ftest-basic.lisp;h=556deb8b79dbccf8bbb3fe692b524f3adcdd9582;hp=76647208630ce8df46523a1e39bf022b57a81bcd;hb=d0f147d0e7d942b379bd7cd472f26b00c33916bc;hpb=f68abc76e0e01f4633141a0c17a4d8f1976229b8 diff --git a/tests/test-basic.lisp b/tests/test-basic.lisp index 7664720..556deb8 100644 --- a/tests/test-basic.lisp +++ b/tests/test-basic.lisp @@ -53,7 +53,7 @@ (test-table-row (list int float bigint str) nil type)) (do-query ((int float bigint str) "select * from test_clsql" :result-types :auto) (test-table-row (list int float bigint str) :auto type)) - (drop-test-table db)) + #+ignore (drop-test-table db)) (defun %test-basic-untyped (db type) @@ -113,7 +113,7 @@ ((eq types :auto) (test (and (integerp int) (typep float 'double-float) - (or (eq db-type :aodbc) ;; aodbc doesn't handle bigint conversions + (or (eq db-type :aodbc) ;; aodbc considers bigints as strings (integerp bigint)) (stringp str)) t @@ -127,9 +127,11 @@ t :fail-info (format nil "Incorrect field type for row ~S (types nil)" row)) - (setq int (parse-integer int)) + (when (stringp int) + (setq int (parse-integer int))) (setq bigint (parse-integer bigint)) - (setq float (parse-double float))) + (when (stringp float) + (setq float (parse-double float)))) ((listp types) (error "NYI") ) @@ -140,7 +142,7 @@ (unless (eq db-type :sqlite) ; SQLite is typeless. (test (transform-float-1 int) float - :test #'eql + :test #'double-float-equal :fail-info (format nil "Wrong float value ~A for int ~A (row ~S)" float int row))) (test float