X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-ooddl.lisp;h=7aec9817a03135f103a197e1a2b2420f472d4a58;hb=0e06463bcfc9e4f9d1eec15b7746eb7f07cf2f2b;hp=d7a193385edd1944539cc4e00182e24de9e5f6b0;hpb=a244caf265fff60cc9d00083e15951762dd7f1ca;p=clsql.git diff --git a/tests/test-ooddl.lisp b/tests/test-ooddl.lisp index d7a1933..7aec981 100644 --- a/tests/test-ooddl.lisp +++ b/tests/test-ooddl.lisp @@ -85,6 +85,27 @@ (slot-value (employee-manager employee2) 'last-name) "Lenin") +(deftest :ooddl/big/1 + (let ((rows (clsql:select [*] :from [big] :order-by [i] :field-names nil))) + (values + (length rows) + (do ((i 0 (1+ i)) + (max (expt 2 60)) + (rest rows (cdr rest))) + ((= i (length rows)) t) + (let ((index (1+ i)) + (int (first (car rest))) + (bigint (second (car rest)))) + (when (and (or (eq *test-database-type* :oracle) + (and (eq *test-database-type* :odbc) + (eq *test-database-underlying-type* :postgresql))) + (stringp bigint)) + (setf bigint (parse-integer bigint))) + (unless (and (eql int index) + (eql bigint (truncate max index))) + (return nil)))))) + 555 t) + (deftest :ooddl/time/1 (let* ((now (clsql:get-time))) (when (member *test-database-underlying-type* '(:postgresql :postgresql-socket))