X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-init.lisp;h=e64a2acb921a8fcea310830abe954e795624e539;hb=3160a424d78cd51ad3b5a7f828b1d11380b05ea8;hp=8e1cc48569e3401bd5798acf4cc088015ee2d081;hpb=6d69ac764a6e285e5ee0cb0d46e24f652abd0f8f;p=clsql.git diff --git a/tests/test-init.lisp b/tests/test-init.lisp index 8e1cc48..e64a2ac 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -30,6 +30,8 @@ (defvar *test-database-type* nil) (defvar *test-database-underlying-type* nil) (defvar *test-database-user* nil) +(defvar *test-false-database-user* "adsfjalsdkfjlakjsdfl" + "For testing ownership, a user that isn't the owner.") (defvar *test-start-utime* nil) (defvar *test-connection-spec* nil) (defvar *test-connection-db-type* nil) @@ -44,7 +46,7 @@ (setf *test-database-type* db-type) (setf *test-database-user* (cond - ((eq :oracle db-type) (second spec)) + ((member db-type '(:oracle :odbc :aodbc)) (second spec)) ((>= (length spec) 3) (third spec)))) ;; Connect to the database @@ -227,11 +229,19 @@ (push (cons test "syntax not supported") skip-tests)) ((and (eq *test-database-type* :odbc) (eq *test-database-underlying-type* :postgresql) - (clsql-sys:in test :fddl/owner/1)) + (clsql-sys:in test :fddl/owner/1 :fddl/owner/table + :fddl/owner/attributes + :fddl/owner/attribute-types + :fddl/owner/index + :fddl/owner/sequence)) (push (cons test "table ownership not supported by postgresql odbc driver") skip-tests)) ((and (not (member *test-database-underlying-type* '(:postgresql :oracle))) - (clsql-sys:in test :fddl/owner/1)) + (clsql-sys:in test :fddl/owner/1 :fddl/owner/table + :fddl/owner/attributes + :fddl/owner/attribute-types + :fddl/owner/index + :fddl/owner/sequence)) (push (cons test "table ownership not supported") skip-tests)) ((and (null (clsql-sys:db-type-has-intersect? db-underlying-type)) (clsql-sys:in test :fdml/query/7))