X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-init.lisp;h=415af2a2b81a3c5f9b562de889f47c20a21411e5;hb=645d2ea7396466b8673e3421b55e45cd327f0195;hp=6f15d412303d28bc4cd9a055bf08806b0152899d;hpb=e7a214b2445830219022acb5911a3f9303d938bd;p=clsql.git diff --git a/tests/test-init.lisp b/tests/test-init.lisp index 6f15d41..415af2a 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -176,6 +176,10 @@ :set nil))) (:base-table "ea_join")) +(def-view-class big () + ((i :type integer :initarg :i) + (bi :type bigint :initarg :bi))) + (defun test-connect-to-database (db-type spec) (when (clsql-sys:db-backend-has-create/destroy-db? db-type) (ignore-errors (destroy-database spec :database-type db-type)) @@ -229,7 +233,8 @@ (clsql:create-view-from-class 'employee) (clsql:create-view-from-class 'company) (clsql:create-view-from-class 'address) - (clsql:create-view-from-class 'employee-address)) + (clsql:create-view-from-class 'employee-address) + (clsql:create-view-from-class 'big)) (let ((*db-auto-sync* t)) (setf company1 (make-instance 'company @@ -372,8 +377,11 @@ :verified nil) employee-address5 (make-instance 'employee-address :emplid 3 - :addressid 2) - )) + :addressid 2)) + + (let ((max (expt 2 60))) + (dotimes (i 555) + (make-instance 'big :i (1+ i) :bi (truncate max (1+ i)))))) ;; sleep to ensure birthdays are no longer at current time (sleep 1)