X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=tests%2Ftest-fddl.lisp;h=c8efdd5d17351d2caa08a16aa1b3a7cd8fa56d03;hp=0e321f85632fb6d196fc28bbcfb97500f1dab785;hb=f716bb1161cf9e89a96945c4a444244f9d303691;hpb=8b5250e14e3280bdc4641c3b35a8dc68ca4dbde7 diff --git a/tests/test-fddl.lisp b/tests/test-fddl.lisp index 0e321f8..c8efdd5 100644 --- a/tests/test-fddl.lisp +++ b/tests/test-fddl.lisp @@ -79,6 +79,25 @@ "birthday" "companyid" "email" "emplid" "first_name" "groupid" "height" "last_name" "managerid" "married") +;; Attribute types are vendor specific so need to test a range +(deftest :fddl/attributes/3 + (and (member (clsql:attribute-type [emplid] [employee]) '(:int :integer :int4)) t) + t) + +(deftest :fddl/attributes/4 + (clsql:attribute-type [first-name] [employee]) + :varchar 30 nil 1) + +(deftest :fddl/attributes/5 + (and (member (clsql:attribute-type [birthday] [employee]) '(:datetime :timestamp)) t) + t) + +(deftest :fddl/attributes/6 + (and (member (clsql:attribute-type [height] [employee]) '(:float :float8)) t) + t) + + + ;; create a view, test for existence, drop it and test again (deftest :fddl/view/1 (progn (clsql:create-view [lenins-group]