X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-ooddl.lisp;h=feb827ba707243859e5e046a6122026d69f8279e;hb=23b76563b25a517ad20f29d6dc5a65c8b958a042;hp=11d17135bdaeda7d89d745103fb3959719ba710b;hpb=73cf858d596ad1d51c745b478292433617cf9d72;p=clsql.git diff --git a/tests/test-ooddl.lisp b/tests/test-ooddl.lisp index 11d1713..feb827b 100644 --- a/tests/test-ooddl.lisp +++ b/tests/test-ooddl.lisp @@ -4,14 +4,15 @@ ;;;; Author: Marcus Pearce ;;;; Created: 30/03/2004 ;;;; Updated: $Id$ -;;;; ====================================================================== -;;;; -;;;; Description ========================================================== -;;;; ====================================================================== ;;;; ;;;; Tests for the CLSQL Object Oriented Data Definition Language ;;;; (OODDL). ;;;; +;;;; This file is part of CLSQL. +;;;; +;;;; CLSQL users are granted the rights to distribute and use this software +;;;; as governed by the terms of the Lisp Lesser GNU Public License +;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ====================================================================== @@ -19,6 +20,9 @@ #.(clsql:locally-enable-sql-reader-syntax) +(setq *rt-ooddl* + '( + ;; Ensure slots inherited from standard-classes are :virtual (deftest :ooddl/metaclass/1 (values @@ -59,7 +63,7 @@ (deftest :ooddl/time/1 (let* ((now (clsql-base:get-time))) - (when (member *test-database-type* '(:postgresql :postgresql-socket)) + (when (member *test-database-underlying-type* '(:postgresql :postgresql-socket)) (clsql:execute-command "set datestyle to 'iso'")) (clsql:update-records [employee] :av-pairs `((birthday ,now)) :where [= [emplid] 1]) @@ -72,7 +76,7 @@ (deftest :ooddl/time/2 (let* ((now (clsql-base:get-time)) (fail-index -1)) - (when (member *test-database-type* '(:postgresql :postgresql-socket)) + (when (member *test-database-underlying-type* '(:postgresql :postgresql-socket)) (clsql:execute-command "set datestyle to 'iso'")) (dotimes (x 40) (clsql:update-records [employee] :av-pairs `((birthday ,now)) @@ -84,4 +88,7 @@ fail-index) -1) +)) + #.(clsql:restore-sql-reader-syntax-state) +