;;;; File: test-syntax.lisp
;;;; Author: Marcus Pearce <m.t.pearce@city.ac.uk>
;;;; Created: 30/03/2004
-;;;; Updated: $Id: $
+;;;; Updated: $Id$
;;;; ======================================================================
;;;;
;;;; Description ==========================================================
#.(clsql:locally-enable-sql-reader-syntax)
-
+(setq *rt-syntax*
+ '(
+
(deftest :syntax/generic/1
(clsql:sql "foo")
"'foo'")
(clsql:sql [foo bar])
"FOO.BAR")
-;; not sure about this one
(deftest :syntax/ident/3
(clsql:sql ["foo" bar])
- "foo.BAR")
+ "FOO.BAR")
;(deftest :syntax/ident/4
; (clsql:sql [foo "bar"])
(clsql:sql [foo bar :integer])
"FOO.BAR INTEGER")
-;; not sure about this one
(deftest :syntax/ident/7
(clsql:sql ["foo" bar :integer])
- "foo.BAR INTEGER")
+ "FOO.BAR INTEGER")
(deftest :syntax/value/1
:attribute 'baz)
(clsql:sql table)])))
"(BETWEEN(THISTIME.BAR,(HIP * HOP),42) AND (THISTIME.BAZ LIKE 'THISTIME') AND BETWEEN(NEXTTIME.BAR,(HIP * HOP),43) AND (NEXTTIME.BAZ LIKE 'NEXTTIME') AND BETWEEN(SOMETIME.BAR,(HIP * HOP),44) AND (SOMETIME.BAZ LIKE 'SOMETIME') AND BETWEEN(NEVER.BAR,(HIP * HOP),45) AND (NEVER.BAZ LIKE 'NEVER'))")
-
+
+))
+
#.(clsql:restore-sql-reader-syntax-state)