r9199: fold clsql-base and clsql-base-sys into clsql-base
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 2 May 2004 02:53:10 +0000 (02:53 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 2 May 2004 02:53:10 +0000 (02:53 +0000)
36 files changed:
ChangeLog
base/basic-sql.lisp
base/classes.lisp
base/conditions.lisp
base/database.lisp
base/db-interface.lisp
base/initialize.lisp
base/loop-extension.lisp
base/package.lisp
base/pool.lisp
base/recording.lisp
base/time.lisp
base/transaction.lisp
base/utils.lisp
classic/package.lisp
db-aodbc/aodbc-package.lisp
db-aodbc/aodbc-sql.lisp
db-mysql/mysql-loader.lisp
db-mysql/mysql-sql.lisp
db-odbc/odbc-api.lisp
db-odbc/odbc-dbi.lisp
db-odbc/odbc-loader.lisp
db-odbc/odbc-sql.lisp
db-postgresql-socket/postgresql-socket-api.lisp
db-postgresql-socket/postgresql-socket-sql.lisp
db-postgresql/postgresql-loader.lisp
db-postgresql/postgresql-sql.lisp
db-sqlite/sqlite-loader.lisp
db-sqlite/sqlite-package.lisp
sql/new-objects.lisp
sql/objects.lisp
sql/package.lisp
sql/sql.lisp
tests/test-connection.lisp
tests/test-fddl.lisp
tests/test-init.lisp

index d20f186f7edead39a7dd5271b2d17e52c2f6ae29..42a0b4e6e7eb7290ffa9bb732eeca9d19f30b9a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,7 +4,12 @@
        * doc/csql.xml: Update def-view-class documentation
        * test/test-init.lisp: Change old :db-type to :db-kind.
        Remove old :nulls-ok attributes.
-
+       * sql/objects.lisp: Add new universal-time and bigint
+       types. Optimize reading of integers using parse-integer
+       rather than read-from-string.
+       * */*.lisp: Merge clsql-base-sys and clsql-base packages
+       into clsql-base package
+       
 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
        * Version 2.10.5: SQLite backend now passes all result-types tests
        * clsql-sqlite.asd: Depend on clsql-uffi system
index bf8ef80f4934d8f692c48fd863d2cf8d24dd6b2d..eaccc03315e1770b8139e0be2a10cbd27bd7a757 100644 (file)
@@ -12,7 +12,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 ;;; Query
 
index 92254f501e9745c1d26689761d54471c1b179490..292bb6ba22b9804934877620acf2a4c72e363778 100644 (file)
@@ -18,7 +18,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 
 (defclass database ()
index 81a1226bfe48b02a2fbf1456f4bf3ed210303726..25d4623605396b0bdbd8b75e39b53f7b9d24e093 100644 (file)
@@ -18,7 +18,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 ;;; Conditions
 (define-condition clsql-condition ()
index e4016d3c547f603ceefed503a2886bd692257a6e..f5a682e1bf77f1694c2677dfc8afcd368fb9e022 100644 (file)
@@ -12,7 +12,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (setf (documentation 'database-name 'function)
       "Returns the name of a database.")
index 3b84d95bd7e19badc6048e7ec726150ff8e13558..3ddfd89c032e64741fbd3f949dddecc8166dc8ba 100644 (file)
@@ -19,7 +19,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (defgeneric database-type-load-foreign (database-type)
   (:documentation
index 75d9a0d3bed17c53235d80bdc54561b751d2f6eb..32115123b7a9887b685d4da32dc7c435c5e2ffc2 100644 (file)
@@ -17,7 +17,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (defvar *loaded-database-types* nil
   "Contains a list of database types which have been defined/loaded.")
index fb45905ba364af35c4833255b6d64e980fe05757..f8129b53cf527d5438ccf20bdb4e1245a38d8bd9 100644 (file)
@@ -54,7 +54,7 @@
     (unless in-phrase
       (ansi-loop::loop-error "Missing OF or IN iteration path."))
     (unless from-phrase
-      (setq from-phrase '(clsql-base-sys:*default-database*)))
+      (setq from-phrase '(clsql-base:*default-database*)))
     (cond
       ((consp variable)
        (let ((query-var (ansi-loop::loop-gentemp 'loop-record-))
@@ -63,7 +63,7 @@
                              'loop-record-result-set-))
             (step-var (ansi-loop::loop-gentemp 'loop-record-step-)))
         (push `(when ,result-set-var
-                 (clsql-base-sys:database-dump-result-set ,result-set-var ,db-var))
+                 (clsql-base:database-dump-result-set ,result-set-var ,db-var))
               ansi-loop::*loop-epilogue*)
         `(((,variable nil ,@(and data-type (list data-type)))
            (,query-var ,(first in-phrase))
            (,result-set-var nil)
            (,step-var nil))
           ((multiple-value-bind (%rs %cols)
-               (clsql-base-sys:database-query-result-set ,query-var ,db-var)
+               (clsql-base:database-query-result-set ,query-var ,db-var)
              (setq ,result-set-var %rs ,step-var (make-list %cols))))
           ()
           ()
-          (not (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,step-var))
+          (not (clsql-base:database-store-next-row ,result-set-var ,db-var ,step-var))
           (,variable ,step-var)
           (not ,result-set-var)
           ()
-          (not (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,step-var))
+          (not (clsql-base:database-store-next-row ,result-set-var ,db-var ,step-var))
           (,variable ,step-var))))
       (t
        (let ((query-var (ansi-loop::loop-gentemp 'loop-record-))
             (result-set-var (ansi-loop::loop-gentemp
                              'loop-record-result-set-)))
         (push `(when ,result-set-var
-                (clsql-base-sys:database-dump-result-set ,result-set-var ,db-var))
+                (clsql-base:database-dump-result-set ,result-set-var ,db-var))
               ansi-loop::*loop-epilogue*)
         `(((,variable nil ,@(and data-type (list data-type)))
            (,query-var ,(first in-phrase))
            (,db-var ,(first from-phrase))
            (,result-set-var nil))
           ((multiple-value-bind (%rs %cols)
-               (clsql-base-sys:database-query-result-set ,query-var ,db-var)
+               (clsql-base:database-query-result-set ,query-var ,db-var)
              (setq ,result-set-var %rs ,variable (make-list %cols))))
           ()
           ()
-          (not (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,variable))
+          (not (clsql-base:database-store-next-row ,result-set-var ,db-var ,variable))
           ()
           (not ,result-set-var)
           ()
-          (not (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,variable))
+          (not (clsql-base:database-store-next-row ,result-set-var ,db-var ,variable))
           ()))))))
 
 #+(or cmu scl sbcl openmcl allegro)
     (unless in-phrase
       (error "Missing OF or IN iteration path."))
     (unless from-phrase
-      (setq from-phrase '(clsql-base-sys:*default-database*)))
+      (setq from-phrase '(clsql-base:*default-database*)))
     (cond
       ((consp iter-var)
        (let ((query-var (gensym "LOOP-RECORD-"))
            (,result-set-var nil)
            (,step-var nil))
          `((multiple-value-bind (%rs %cols)
-               (clsql-base-sys:database-query-result-set ,query-var ,db-var)
+               (clsql-base:database-query-result-set ,query-var ,db-var)
              (setq ,result-set-var %rs ,step-var (make-list %cols))))
          ()
          ()
-         `((unless (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,step-var)
+         `((unless (clsql-base:database-store-next-row ,result-set-var ,db-var ,step-var)
              (when ,result-set-var
-               (clsql-base-sys:database-dump-result-set ,result-set-var ,db-var))
+               (clsql-base:database-dump-result-set ,result-set-var ,db-var))
              t))
          `(,iter-var ,step-var)
-         `((unless (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,step-var)
+         `((unless (clsql-base:database-store-next-row ,result-set-var ,db-var ,step-var)
              (when ,result-set-var
-               (clsql-base-sys:database-dump-result-set ,result-set-var ,db-var))
+               (clsql-base:database-dump-result-set ,result-set-var ,db-var))
              t))
          `(,iter-var ,step-var)
          ()
            (,db-var ,(first from-phrase))
            (,result-set-var nil))
          `((multiple-value-bind (%rs %cols)
-               (clsql-base-sys:database-query-result-set ,query-var ,db-var)
+               (clsql-base:database-query-result-set ,query-var ,db-var)
              (setq ,result-set-var %rs ,iter-var (make-list %cols))))
          ()
          ()
-         `((unless (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,iter-var)
+         `((unless (clsql-base:database-store-next-row ,result-set-var ,db-var ,iter-var)
              (when ,result-set-var
-               (clsql-base-sys:database-dump-result-set ,result-set-var ,db-var))
+               (clsql-base:database-dump-result-set ,result-set-var ,db-var))
              t))
           ()
-         `((unless (clsql-base-sys:database-store-next-row ,result-set-var ,db-var ,iter-var)
+         `((unless (clsql-base:database-store-next-row ,result-set-var ,db-var ,iter-var)
              (when ,result-set-var
-               (clsql-base-sys:database-dump-result-set ,result-set-var ,db-var))
+               (clsql-base:database-dump-result-set ,result-set-var ,db-var))
              t))
          ()
          ()
index 56cdd57a5b9e9416731ecb304e54b4370eeffb3d..6b55ef520bdc38bafbf31481bf3ec6a5f544b05d 100644 (file)
 ;;;; This file makes the required package definitions for CLSQL's
 ;;;; core packages.
 
-(eval-when (:compile-toplevel :load-toplevel :execute)
-(defpackage #:clsql-base-sys
+(defpackage #:clsql-base
   (:use #:cl)
   (:export
-     ;; "Private" exports for use by interface packages
      #:check-connection-spec
      #:database-type-load-foreign
      #:database-type-library-loaded ;; KMR - Tests if foreign library okay
      #:convert-to-db-default-case
      #:ensure-keyword
      
-     ;; Shared exports for re-export by CLSQL-BASE
-     .
-     #1=(#:clsql-condition
-        #:clsql-error
-        #:clsql-simple-error
-        #:clsql-warning
-        #:clsql-simple-warning
-        #:clsql-invalid-spec-error
-        #:clsql-invalid-spec-error-connection-spec
-        #:clsql-invalid-spec-error-database-type
-        #:clsql-invalid-spec-error-template
-        #:clsql-access-error
-        #:clsql-access-error-database-type
-        #:clsql-access-error-connection-spec
-        #:clsql-access-error-error
-        #:clsql-connect-error
-        #:clsql-connect-error-errno
-        #:clsql-sql-error
-        #:clsql-sql-error-database
-        #:clsql-sql-error-expression
-        #:clsql-sql-error-errno
-        #:clsql-sql-error-error
-        #:clsql-database-warning
-        #:clsql-database-warning-database
-        #:clsql-database-warning-message
-        #:clsql-exists-condition
-        #:clsql-exists-condition-new-db
-        #:clsql-exists-condition-old-db
-        #:clsql-exists-warning
-        #:clsql-exists-error
-        #:clsql-closed-error
-        #:clsql-closed-error-database
-         #:clsql-sql-syntax-error
-         #:clsql-type-error
-         #:clsql-odbc-error
-        #:clsql-odbc-error-message
-        
-        #:*loaded-database-types*
-        #:reload-database-types
-        #:*default-database-type*
-        #:*initialized-database-types*
-        #:initialize-database-type
-        #:*connect-if-exists*
-        #:*default-database*
-        #:connected-databases
-        #:database
-        #:database-name
-        #:find-database
-        #:database-name-from-spec
-        #:is-database-open
-
-        ;; accessors for database class
-        #:name
-        #:connection-spec
-        #:transaction
-        #:transaction-level
-        #:conn-pool
-        #:command-recording-stream
-        #:result-recording-stream
-        #:query-recording-stream
-        #:view-classes
-        #:database-type
-        #:database-state
-        #:attribute-cache
-        
-        ;; utils.lisp
-        #:number-to-sql-string
-        #:float-to-sql-string
-        #:sql-escape-quotes
-        
-        ;; time.lisp
-        #:bad-component
-        #:current-day
-        #:current-month
-        #:current-year
-        #:day-duration
-        #:db-timestring
-        #:decode-duration
-        #:decode-time
-        #:duration
-        #:duration+
-        #:duration<
-        #:duration<=
-        #:duration=
-        #:duration>
-        #:duration>=
-        #:duration-day
-        #:duration-hour
-        #:duration-minute
-        #:duration-month
-        #:duration-second
-        #:duration-year
-        #:duration-reduce 
-        #:duration-timestring
-        #:extract-roman 
-        #:format-duration
-        #:format-time
-        #:get-time
-        #:utime->time
-        #:interval-clear
-        #:interval-contained
-        #:interval-data
-        #:interval-edit
-        #:interval-end
-        #:interval-match
-        #:interval-push
-        #:interval-relation
-        #:interval-start
-        #:interval-type
-        #:make-duration
-        #:make-interval
-        #:make-time
-        #:merged-time
-        #:midnight
-        #:month-name
-        #:parse-date-time
-        #:parse-timestring
-        #:parse-yearstring
-        #:print-date
-        #:roll
-        #:roll-to
-        #:time
-        #:time+
-        #:time-
-        #:time-by-adding-duration
-        #:time-compare
-        #:time-difference
-        #:time-dow
-        #:time-element
-        #:time-max
-        #:time-min
-        #:time-mjd
-        #:time-msec
-        #:time-p
-        #:time-sec
-        #:time-well-formed
-        #:time-ymd
-        #:time<
-        #:time<=
-        #:time=
-        #:time>
-        #:time>=
-        #:timezone
-        #:universal-time
-        #:wall-time
-        #:wall-timestring
-        #:week-containing
-        #:gregorian-to-mjd
-        #:mjd-to-gregorian
-        x
-        ;; recording.lisp -- SQL I/O Recording 
-        #:record-sql-action
-        #:add-sql-stream                 ; recording  xx
-        #:delete-sql-stream              ; recording  xx
-        #:list-sql-streams               ; recording  xx
-        #:sql-recording-p                ; recording  xx
-        #:sql-stream                     ; recording  xx
-        #:start-sql-recording            ; recording  xx
-        #:stop-sql-recording             ; recording  xx
-
-        ;; database.lisp -- Connection
-        #:*default-database-type*                ; clsql-base xx
-        #:*default-database*             ; classes    xx
-        #:connect                                ; database   xx
-        #:*connect-if-exists*            ; database   xx
-        #:connected-databases            ; database   xx
-        #:database                       ; database   xx
-        #:database-name                     ; database   xx
-        #:disconnect                     ; database   xx
-        #:reconnect                         ; database
-        #:find-database                     ; database   xx
-        #:status                            ; database   xx
-        #:with-database
-        #:with-default-database
-        #:disconnect-pooled
-        #:create-database
-        #:destroy-database
-        #:probe-database
-        #:list-databases
-
-        ;; basic-sql.lisp
-        #:query
-        #:execute-command
-        #:write-large-object
-        #:read-large-object
-        #:delete-large-object
-        #:do-query
-        #:map-query
-        #:describe-table
-
-        ;; Transactions
-        #:with-transaction
-        #:commit-transaction
-        #:rollback-transaction
-        #:add-transaction-commit-hook
-        #:add-transaction-rollback-hook
-        #:commit                            ; transact   xx
-        #:rollback                       ; transact   xx
-        #:with-transaction               ; transact   xx               .
-        #:start-transaction                 ; transact   xx
-        #:in-transaction-p                  ; transact   xx
-        #:database-start-transaction
-        #:database-abort-transaction
-        #:database-commit-transaction
-        #:transaction-level
-        #:transaction
+     #:clsql-condition
+     #:clsql-error
+     #:clsql-simple-error
+     #:clsql-warning
+     #:clsql-simple-warning
+     #:clsql-invalid-spec-error
+     #:clsql-invalid-spec-error-connection-spec
+     #:clsql-invalid-spec-error-database-type
+     #:clsql-invalid-spec-error-template
+     #:clsql-access-error
+     #:clsql-access-error-database-type
+     #:clsql-access-error-connection-spec
+     #:clsql-access-error-error
+     #:clsql-connect-error
+     #:clsql-connect-error-errno
+     #:clsql-sql-error
+     #:clsql-sql-error-database
+     #:clsql-sql-error-expression
+     #:clsql-sql-error-errno
+     #:clsql-sql-error-error
+     #:clsql-database-warning
+     #:clsql-database-warning-database
+     #:clsql-database-warning-message
+     #:clsql-exists-condition
+     #:clsql-exists-condition-new-db
+     #:clsql-exists-condition-old-db
+     #:clsql-exists-warning
+     #:clsql-exists-error
+     #:clsql-closed-error
+     #:clsql-closed-error-database
+     #:clsql-sql-syntax-error
+     #:clsql-type-error
+     #:clsql-odbc-error
+     #:clsql-odbc-error-message
+     
+     #:*loaded-database-types*
+     #:reload-database-types
+     #:*default-database-type*
+     #:*initialized-database-types*
+     #:initialize-database-type
+     #:*connect-if-exists*
+     #:*default-database*
+     #:connected-databases
+     #:database
+     #:database-name
+     #:find-database
+     #:database-name-from-spec
+     #:is-database-open
+     
+     ;; accessors for database class
+     #:name
+     #:connection-spec
+     #:transaction
+     #:transaction-level
+     #:conn-pool
+     #:command-recording-stream
+     #:result-recording-stream
+     #:query-recording-stream
+     #:view-classes
+     #:database-type
+     #:database-state
+     #:attribute-cache
+     
+     ;; utils.lisp
+     #:number-to-sql-string
+     #:float-to-sql-string
+     #:sql-escape-quotes
+     
+     ;; time.lisp
+     #:bad-component
+     #:current-day
+     #:current-month
+     #:current-year
+     #:day-duration
+     #:db-timestring
+     #:decode-duration
+     #:decode-time
+     #:duration
+     #:duration+
+     #:duration<
+     #:duration<=
+     #:duration=
+     #:duration>
+     #:duration>=
+     #:duration-day
+     #:duration-hour
+     #:duration-minute
+     #:duration-month
+     #:duration-second
+     #:duration-year
+     #:duration-reduce 
+     #:duration-timestring
+     #:extract-roman 
+     #:format-duration
+     #:format-time
+     #:get-time
+     #:utime->time
+     #:interval-clear
+     #:interval-contained
+     #:interval-data
+     #:interval-edit
+     #:interval-end
+     #:interval-match
+     #:interval-push
+     #:interval-relation
+     #:interval-start
+     #:interval-type
+     #:make-duration
+     #:make-interval
+     #:make-time
+     #:merged-time
+     #:midnight
+     #:month-name
+     #:parse-date-time
+     #:parse-timestring
+     #:parse-yearstring
+     #:print-date
+     #:roll
+     #:roll-to
+     #:time
+     #:time+
+     #:time-
+     #:time-by-adding-duration
+     #:time-compare
+     #:time-difference
+     #:time-dow
+     #:time-element
+     #:time-max
+     #:time-min
+     #:time-mjd
+     #:time-msec
+     #:time-p
+     #:time-sec
+     #:time-well-formed
+     #:time-ymd
+     #:time<
+     #:time<=
+     #:time=
+     #:time>
+     #:time>=
+     #:timezone
+     #:universal-time
+     #:wall-time
+     #:wall-timestring
+     #:week-containing
+     #:gregorian-to-mjd
+     #:mjd-to-gregorian
 
-        ;; Database features specialized by backend
-        #:db-type-use-column-on-drop-index?
-        #:db-type-has-views?
-        #:db-type-has-subqueries?
-        #:db-type-has-boolean-where?
-        #:db-type-has-fancy-math?
-        #:db-type-default-case 
-        #:db-backend-has-create/destroy-db?
-        #:db-type-transaction-capable?
-        ))
-    (:documentation "This is the INTERNAL SQL-Interface package of CLSQL-BASE."))
+     ;; recording.lisp -- SQL I/O Recording 
+     #:record-sql-action
+     #:add-sql-stream                 ; recording  xx
+     #:delete-sql-stream                 ; recording  xx
+     #:list-sql-streams                  ; recording  xx
+     #:sql-recording-p           ; recording  xx
+     #:sql-stream                        ; recording  xx
+     #:start-sql-recording               ; recording  xx
+     #:stop-sql-recording                ; recording  xx
 
-(defpackage #:clsql-base
-    (:import-from #:clsql-base-sys . #1#)
-    (:export . #1#)
-    (:documentation "This is the SQL-Interface package of CLSQL-BASE."))
-);eval-when
+     ;; database.lisp -- Connection
+     #:*default-database-type*           ; clsql-base xx
+     #:*default-database*                ; classes    xx
+     #:connect                           ; database   xx
+     #:*connect-if-exists*               ; database   xx
+     #:connected-databases               ; database   xx
+     #:database                          ; database   xx
+     #:database-name                     ; database   xx
+     #:disconnect                        ; database   xx
+     #:reconnect                         ; database
+     #:find-database                     ; database   xx
+     #:status                            ; database   xx
+     #:with-database
+     #:with-default-database
+     #:disconnect-pooled
+     #:create-database
+     #:destroy-database
+     #:probe-database
+     #:list-databases
+     
+     ;; basic-sql.lisp
+     #:query
+     #:execute-command
+     #:write-large-object
+     #:read-large-object
+     #:delete-large-object
+     #:do-query
+     #:map-query
+     #:describe-table
+     
+     ;; Transactions
+     #:with-transaction
+     #:commit-transaction
+     #:rollback-transaction
+     #:add-transaction-commit-hook
+     #:add-transaction-rollback-hook
+     #:commit                            ; transact   xx
+     #:rollback                          ; transact   xx
+     #:with-transaction                  ; transact   xx               .
+     #:start-transaction                 ; transact   xx
+     #:in-transaction-p                  ; transact   xx
+     #:database-start-transaction
+     #:database-abort-transaction
+     #:database-commit-transaction
+     #:transaction-level
+     #:transaction
+     
+     ;; Database features specialized by backend
+     #:db-type-use-column-on-drop-index?
+     #:db-type-has-views?
+     #:db-type-has-subqueries?
+     #:db-type-has-boolean-where?
+     #:db-type-has-fancy-math?
+     #:db-type-default-case 
+     #:db-backend-has-create/destroy-db?
+     #:db-type-transaction-capable?
+     )
+  (:documentation "This is the INTERNAL SQL-Interface package of CLSQL-BASE."))
 
 
index bebe1b649430756dc99192604a404a98821ca42f..0564eb0e33f9651c2bc9af616e6c815d99111677 100644 (file)
@@ -16,7 +16,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (defvar *db-pool* (make-hash-table :test #'equal))
 (defvar *db-pool-lock* (make-process-lock "DB Pool lock"))
index 2f83bf449e27e58b4d3c9bdff7be9e5e52f3ffc6..fb9fc8de841adf228f984094af618f7ac3b17a89 100644 (file)
@@ -13,7 +13,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (defun start-sql-recording (&key (type :commands) (database *default-database*))
   "Begin recording SQL command or result traffic. By default the
index 80e5bed24120e9b504e2e8405c4db89df674f2e1..0b70f2c6f28b9610f7b7ac9875b38dfa72da3f4a 100644 (file)
@@ -15,7 +15,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 ;; ------------------------------------------------------------
 ;; Months
index fa4f7523fd72af0c4cea3c72a2ae33ef99703fa4..61438edf2a48be4f8edda77e5480a132cd92f7d5 100644 (file)
@@ -12,7 +12,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (defclass transaction ()
   ((commit-hooks :initform () :accessor commit-hooks)
index 2e46d7ba39f7830df5b3a05f8282428ac87b61b5..8a96df6642846289ab4603f1449dda00cf95e9b7 100644 (file)
@@ -16,7 +16,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql-base-sys)
+(in-package #:clsql-base)
 
 (defun number-to-sql-string (num)
   (etypecase num
index 42cd973f739aecf7c36ce83962159531e71101f7..67891852373251ecae31dabadcb5cfc38116c62c 100644 (file)
@@ -23,7 +23,7 @@
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (defpackage #:clsql-classic-sys
     (:nicknames #:clsql-classic)
-    (:use #:cl #:clsql-base-sys)
+    (:use #:cl #:clsql-base)
     (:import-from 
      #:clsql-base
      .
index 32882cfa7c7e355cee8711a001e2b90913131b4f..18c336af6d4cd053900a7cf6a3c058a6ad6fb028 100644 (file)
@@ -25,6 +25,6 @@
 
 (defpackage #:clsql-aodbc
     (:nicknames #:aodbc)
-    (:use :cl :clsql-base-sys)
+    (:use #:cl #:clsql-base)
     (:export #:aodbc-database)
     (:documentation "This is the CLSQL interface to Allegro's AODBC"))
index 87fd0f3e346bc1926d279811702f5bbd7df60280..02d6d95b63963d93d4cee2450fed6934b2edd8cb 100644 (file)
 (in-package #:clsql-aodbc)
 
 ;; interface foreign library loading routines
-(defmethod clsql-base-sys:database-type-library-loaded ((database-type (eql :aodbc)))
+(defmethod clsql-base:database-type-library-loaded ((database-type (eql :aodbc)))
   "T if foreign library was able to be loaded successfully. "
   (when (find-package :dbi) ;; finds Allegro's DBI (AODBC) package
     t))
 
-(defmethod clsql-base-sys:database-type-load-foreign ((databae-type (eql :aodbc)))
+(defmethod clsql-base:database-type-load-foreign ((databae-type (eql :aodbc)))
   t)
 
 (when (find-package :dbi)
-  (clsql-base-sys:database-type-load-foreign :aodbc)) 
+  (clsql-base:database-type-load-foreign :aodbc)) 
 
 (defmethod database-initialize-database-type ((database-type (eql :aodbc)))
   t)
 (defmethod db-backend-has-create/destroy-db? ((db-type (eql :aodbc)))
   nil)
 
-#+ignore                      
-(when (clsql-base-sys:database-type-library-loaded :aodbc)
-  (clsql-base-sys:initialize-database-type :database-type :aodbc))
+(defmethod database-initialize-database-type ((database-type (eql :aodbc)))
+  t)
+
+(when (clsql-base:database-type-library-loaded :aodbc)
+  (clsql-base:initialize-database-type :database-type :aodbc))
index 675014f50c1f8734b2ef7373939c07fabbe02c56..957c39e48e7123105a067436e3c0180635b94b35 100644 (file)
@@ -62,10 +62,10 @@ set to the right path before compiling or loading the system.")
 (defvar *mysql-library-loaded* nil
   "T if foreign library was able to be loaded successfully")
 
-(defmethod clsql-base-sys:database-type-library-loaded ((database-type (eql :mysql)))
+(defmethod clsql-base:database-type-library-loaded ((database-type (eql :mysql)))
   *mysql-library-loaded*)
                                      
-(defmethod clsql-base-sys:database-type-load-foreign ((database-type (eql :mysql)))
+(defmethod clsql-base:database-type-load-foreign ((database-type (eql :mysql)))
   (let ((mysql-path
         (uffi:find-foreign-library *mysql-library-candidate-names*
                                    *mysql-library-candidate-directories*
@@ -85,5 +85,5 @@ set to the right path before compiling or loading the system.")
   (setq *mysql-library-loaded* t))
 
 
-(clsql-base-sys:database-type-load-foreign :mysql)
+(clsql-base:database-type-load-foreign :mysql)
 
index 0f24ffb08b4880a234ef2bccd90b7510665b60d2..dd623033013e7952bf9140a3f0cabe99030ba94c 100644 (file)
@@ -14,7 +14,7 @@
 ;;;; *************************************************************************
 
 (defpackage #:clsql-mysql
-    (:use #:common-lisp #:clsql-base-sys #:mysql #:clsql-uffi)
+    (:use #:common-lisp #:clsql-base #:mysql #:clsql-uffi)
     (:export #:mysql-database)
     (:documentation "This is the CLSQL interface to MySQL."))
 
 (defmethod database-create (connection-spec (type (eql :mysql)))
   (destructuring-bind (host name user password) connection-spec
     (multiple-value-bind (output status)
-       (clsql-base-sys:command-output "mysqladmin create -u~A -p~A -h~A ~A"
+       (clsql-base:command-output "mysqladmin create -u~A -p~A -h~A ~A"
                                       user password 
                                       (if host host "localhost")
                                       name)
 (defmethod database-destroy (connection-spec (type (eql :mysql)))
   (destructuring-bind (host name user password) connection-spec
     (multiple-value-bind (output status)
-       (clsql-base-sys:command-output "mysqladmin drop -f -u~A -p~A -h~A ~A"
+       (clsql-base:command-output "mysqladmin drop -f -u~A -p~A -h~A ~A"
                                       user password 
                                       (if host host "localhost")
                                       name)
     (let ((database (database-connect (list host "mysql" user password) type)))
       (unwind-protect
           (progn
-            (setf (slot-value database 'clsql-base-sys::state) :open)
+            (setf (slot-value database 'clsql-base::state) :open)
             (mapcar #'car (database-query "show databases" database :auto nil)))
        (progn
          (database-disconnect database)
-         (setf (slot-value database 'clsql-base-sys::state) :closed))))))
+         (setf (slot-value database 'clsql-base::state) :closed))))))
 
 ;;; Database capabilities
 
   (let ((tuple (car (database-query "SHOW VARIABLES LIKE 'HAVE_INNODB'" database :auto nil))))
     (and tuple (string-equal "YES" (second tuple)))))
 
-(when (clsql-base-sys:database-type-library-loaded :mysql)
-  (clsql-base-sys:initialize-database-type :database-type :mysql))
+(when (clsql-base:database-type-library-loaded :mysql)
+  (clsql-base:initialize-database-type :database-type :mysql))
 
index e34706cea9bf9cf7dd2c9ea9d635f2c1a72df8fc..e51f2483b1c4cebc026651dff63ae2d4858bc507 100644 (file)
@@ -113,11 +113,11 @@ as possible second argument) to the desired representation of date/time/timestam
           (progn ,result-code ,@body))
          (#.$SQL_INVALID_HANDLE
           (error
-          'clsql-base-sys:clsql-odbc-error
+          'clsql-base:clsql-odbc-error
           :odbc-message "Invalid handle"))
          (#.$SQL_STILL_EXECUTING
           (error
-          'clsql-base-sys:clsql-odbc-error
+          'clsql-base:clsql-odbc-error
           :odbc-message "Still executing"))
          (#.$SQL_ERROR
           (multiple-value-bind (error-message sql-state)
@@ -125,7 +125,7 @@ as possible second argument) to the desired representation of date/time/timestam
                            (or ,hdbc +null-handle-ptr+)
                            (or ,hstmt +null-handle-ptr+))
             (error
-            'clsql-base-sys:clsql-odbc-error
+            'clsql-base:clsql-odbc-error
             :odbc-message error-message
             :sql-state sql-state)))
         (otherwise
index 4bafb1f64b1aa2861b715bb4c5621f79e3d8b2a6..4a6107d93c9235f6f4eeb035cd0ac01d4e071d4d 100644 (file)
@@ -357,7 +357,7 @@ the query against." ))
   "get-free-query finds or makes a nonactive query object, and then sets it to active.
 This makes the functions db-execute-command and db-query thread safe."
   (with-slots (queries hdbc) database
-    (or (clsql-base-sys:without-interrupts
+    (or (clsql-base:without-interrupts
          (let ((inactive-query (find-if (lambda (query)
                                           (not (query-active-p query)))
                                         queries)))
index 63e39d87d673dbe0c8ff4268dc162e3f8f8fa96e..45bb6ffd908e3cb8ca08109244607ae63a6616d4 100644 (file)
@@ -38,15 +38,15 @@ set to the right path before compiling or loading the system.")
 (defvar *odbc-library-loaded* nil
   "T if foreign library was able to be loaded successfully")
 
-(defmethod clsql-base-sys:database-type-library-loaded ((database-type (eql :odbc)))
+(defmethod clsql-base:database-type-library-loaded ((database-type (eql :odbc)))
   *odbc-library-loaded*)
                                      
-(defmethod clsql-base-sys:database-type-load-foreign ((database-type (eql :odbc)))
+(defmethod clsql-base:database-type-load-foreign ((database-type (eql :odbc)))
   (uffi:load-foreign-library *odbc-library-path*
                             :module "odbc") 
   (setq *odbc-library-loaded* t))
 
-(clsql-base-sys:database-type-load-foreign :odbc)
+(clsql-base:database-type-load-foreign :odbc)
 
 
 
index b43a3226a6168d628d1faf43a5752eaa25ad17d1..2769bf91b3c6b6881b6bf4bc77d16feb6b8b68fd 100644 (file)
@@ -17,7 +17,7 @@
 ;;;; *************************************************************************
 
 (defpackage #:clsql-odbc
-    (:use #:common-lisp #:clsql-base-sys)
+    (:use #:common-lisp #:clsql-base)
     (:export #:odbc-database)
     (:documentation "This is the CLSQL interface to ODBC."))
 
   ;; nothing to do
   t)
 
-(when (clsql-base-sys:database-type-library-loaded :odbc)
-  (clsql-base-sys:initialize-database-type :database-type :odbc))
+(when (clsql-base:database-type-library-loaded :odbc)
+  (clsql-base:initialize-database-type :database-type :odbc))
index 936f6dbb3dd0696e9970acf7b8ea8f9abd3d93e7..5630f04eceb3c2254a2a3c2253586583201a7fed 100644 (file)
      (:float4 700)
      (:float8 701)))
 
-(defmethod clsql-base-sys:database-type-library-loaded ((database-type
+(defmethod clsql-base:database-type-library-loaded ((database-type
                                          (eql :postgresql-socket)))
   "T if foreign library was able to be loaded successfully. Always true for
 socket interface"
   t)
 
-(defmethod clsql-base-sys:database-type-load-foreign ((database-type (eql :postgresql-socket)))
+(defmethod clsql-base:database-type-load-foreign ((database-type (eql :postgresql-socket)))
   t)
 
 
index 07032b826fd7ede336395c338bff5f159f1b0662..180b036904613be3a0fa5529737b8dc08e53ffde 100644 (file)
@@ -20,7 +20,7 @@
 (in-package #:cl-user)
 
 (defpackage :clsql-postgresql-socket
-    (:use #:common-lisp #:clsql-base-sys #:postgresql-socket)
+    (:use #:common-lisp #:clsql-base #:postgresql-socket)
     (:export #:postgresql-socket-database)
     (:documentation "This is the CLSQL socket interface to PostgreSQL."))
 
@@ -29,7 +29,7 @@
 ;; interface foreign library loading routines
 
 
-(clsql-base-sys:database-type-load-foreign :postgresql-socket)
+(clsql-base:database-type-load-foreign :postgresql-socket)
 
 
 ;; Field type conversion
@@ -486,12 +486,12 @@ doesn't depend on UFFI."
                                      type)))
       (unwind-protect
           (progn
-            (setf (slot-value database 'clsql-base-sys::state) :open)
+            (setf (slot-value database 'clsql-base::state) :open)
             (mapcar #'car (database-query "select datname from pg_database" 
                                           database :auto nil)))
        (progn
          (database-disconnect database)
-         (setf (slot-value database 'clsql-base-sys::state) :closed))))))
+         (setf (slot-value database 'clsql-base::state) :closed))))))
 
 (defmethod database-describe-table ((database postgresql-socket-database) 
                                    table)
@@ -517,5 +517,5 @@ doesn't depend on UFFI."
 (defmethod db-type-default-case ((db-type (eql :postgresql-socket)))
   :lower)
 
-(when (clsql-base-sys:database-type-library-loaded :postgresql-socket)
-  (clsql-base-sys:initialize-database-type :database-type :postgresql-socket))
+(when (clsql-base:database-type-library-loaded :postgresql-socket)
+  (clsql-base:initialize-database-type :database-type :postgresql-socket))
index 48dd433315d3a4e819b6dbde95d23514ef7fbab0..420c97a56ce5dedfcd2fcd0e182fe4af069320dc 100644 (file)
@@ -27,11 +27,11 @@ set to the right path before compiling or loading the system.")
 (defvar *postgresql-library-loaded* nil
   "T if foreign library was able to be loaded successfully")
 
-(defmethod clsql-base-sys:database-type-library-loaded ((database-type
+(defmethod clsql-base:database-type-library-loaded ((database-type
                                                    (eql :postgresql)))
   *postgresql-library-loaded*)
                                      
-(defmethod clsql-base-sys:database-type-load-foreign ((database-type
+(defmethod clsql-base:database-type-load-foreign ((database-type
                                                  (eql :postgresql)))
   (let ((libpath (uffi:find-foreign-library 
                  "libpq"
@@ -50,5 +50,5 @@ set to the right path before compiling or loading the system.")
        (setq *postgresql-library-loaded* t)
       (warn "Can't load PostgreSQL client library ~A" libpath))))
 
-(clsql-base-sys:database-type-load-foreign :postgresql)
+(clsql-base:database-type-load-foreign :postgresql)
 
index 47df535d193748a626b14344c7157a18cefc4f6a..a55683144423b38bcffe04c6b5d0260d2467e35a 100644 (file)
@@ -16,7 +16,7 @@
 (in-package #:cl-user)
 
 (defpackage #:clsql-postgresql
-    (:use #:common-lisp #:clsql-base-sys #:postgresql #:clsql-uffi)
+    (:use #:common-lisp #:clsql-base #:postgresql #:clsql-uffi)
     (:export #:postgresql-database)
     (:documentation "This is the CLSQL interface to PostgreSQL."))
 
   (destructuring-bind (host name user password) connection-spec
     (declare (ignore user password))
     (multiple-value-bind (output status)
-       (clsql-base-sys:command-output "createdb -h~A ~A"
+       (clsql-base:command-output "createdb -h~A ~A"
                                       (if host host "localhost")
                                       name)
       (if (or (not (zerop status))
   (destructuring-bind (host name user password) connection-spec
     (declare (ignore user password))
     (multiple-value-bind (output status)
-       (clsql-base-sys:command-output "dropdb -h~A ~A"
+       (clsql-base:command-output "dropdb -h~A ~A"
                                       (if host host "localhost")
                                       name)
       (if (or (not (zerop status))
                                      type)))
       (unwind-protect
           (progn
-            (setf (slot-value database 'clsql-base-sys::state) :open)
+            (setf (slot-value database 'clsql-base::state) :open)
             (mapcar #'car (database-query "select datname from pg_database" 
                                           database nil nil)))
        (progn
          (database-disconnect database)
-         (setf (slot-value database 'clsql-base-sys::state) :closed))))))
+         (setf (slot-value database 'clsql-base::state) :closed))))))
 
 (defmethod database-describe-table ((database postgresql-database) table)
   (database-query 
 (defmethod db-type-default-case ((db-type (eql :postgresql)))
   :lower)
 
-(when (clsql-base-sys:database-type-library-loaded :postgresql)
-  (clsql-base-sys:initialize-database-type :database-type :postgresql))
+(when (clsql-base:database-type-library-loaded :postgresql)
+  (clsql-base:initialize-database-type :database-type :postgresql))
index 65d4d5354aa57c8bd2e3ca2453f1af89a9c0f49e..1cfcf21ffb675b52a20324907d5cb8be3bac6ff4 100644 (file)
@@ -16,7 +16,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package :clsql-sqlite)
+(in-package #:clsql-sqlite)
 
 (defvar *sqlite-supporting-libraries* '("c")
   "Used only by CMU. List of library flags needed to be passed to ld
@@ -46,7 +46,7 @@ set to the right path before compiling or loading the system.")
        (setq *sqlite-library-loaded* t)
        (warn "Can't load SQLite library ~A" libpath))))
 
-(clsql-base-sys:database-type-load-foreign :sqlite)
+(clsql-base:database-type-load-foreign :sqlite)
 
 
     
index 0c973a817358d36d10b38da186611095cf306909..2f8e13e961fe6d48cb316748a37e0ca973d047d9 100644 (file)
@@ -19,5 +19,5 @@
 (in-package #:cl-user)
 
 (defpackage #:clsql-sqlite
-  (:use #:common-lisp #:clsql-base-sys)
+  (:use #:common-lisp #:clsql-base)
   (:export #:sqlite-database))
index 64e9ade34e97ca6bd65e6b2216697902aea44d42..d2013b74009e325b04bf13968e9799bf6922bc1e 100644 (file)
@@ -611,7 +611,7 @@ DATABASE-NULL-VALUE on the type of the slot."))
   (declare (ignore database))
   (progv '(*print-circle* *print-array*) '(t t)
     (let ((escaped (prin1-to-string val)))
-      (clsql-base-sys::substitute-char-string
+      (clsql-base::substitute-char-string
        escaped #\Null " "))))
 
 (defmethod database-output-sql-as-type ((type (eql 'symbol)) val database)
index 4535978c9ae254bc827bb0d01382766dc847018e..ef9c0db369a469c6d2984ed01598761d38098e33 100644 (file)
@@ -456,7 +456,7 @@ superclass of the newly-defined View Class."
 
 (defmethod database-get-type-specifier (type args database)
   (declare (ignore type args))
-  (if (clsql-base-sys::in (database-underlying-type database)
+  (if (clsql-base::in (database-underlying-type database)
                          :postgresql :postgresql-socket)
           "VARCHAR"
           "VARCHAR(255)"))
@@ -476,7 +476,7 @@ superclass of the newly-defined View Class."
                                         database)
   (if args
       (format nil "VARCHAR(~A)" (car args))
-    (if (clsql-base-sys::in (database-underlying-type database) 
+    (if (clsql-base::in (database-underlying-type database) 
                            :postgresql :postgresql-socket)
        "VARCHAR"
       "VARCHAR(255)")))
@@ -485,7 +485,7 @@ superclass of the newly-defined View Class."
                                         database)
   (if args
       (format nil "VARCHAR(~A)" (car args))
-    (if (clsql-base-sys::in (database-underlying-type database) 
+    (if (clsql-base::in (database-underlying-type database) 
                            :postgresql :postgresql-socket)
        "VARCHAR"
       "VARCHAR(255)")))
@@ -493,7 +493,7 @@ superclass of the newly-defined View Class."
 (defmethod database-get-type-specifier ((type (eql 'string)) args database)
   (if args
       (format nil "VARCHAR(~A)" (car args))
-    (if (clsql-base-sys::in (database-underlying-type database) 
+    (if (clsql-base::in (database-underlying-type database) 
                            :postgresql :postgresql-socket)
        "VARCHAR"
       "VARCHAR(255)")))
@@ -553,7 +553,7 @@ superclass of the newly-defined View Class."
   (declare (ignore database))
   (progv '(*print-circle* *print-array*) '(t t)
     (let ((escaped (prin1-to-string val)))
-      (clsql-base-sys::substitute-char-string
+      (clsql-base::substitute-char-string
        escaped #\Null " "))))
 
 (defmethod database-output-sql-as-type ((type (eql 'symbol)) val database)
@@ -630,22 +630,24 @@ superclass of the newly-defined View Class."
 (defmethod read-sql-value (val (type (eql 'symbol)) database)
   (declare (ignore database))
   (when (< 0 (length val))
-    (unless (string= val (clsql-base-sys:symbol-name-default-case "NIL"))
-      (intern (clsql-base-sys:symbol-name-default-case val)
+    (unless (string= val (clsql-base:symbol-name-default-case "NIL"))
+      (intern (clsql-base:symbol-name-default-case val)
               (symbol-package *update-context*)))))
 
 (defmethod read-sql-value (val (type (eql 'integer)) database)
   (declare (ignore database))
   (etypecase val
     (string
-     (parse-integer val))
+     (unless (string-equal "NIL" val)
+       (parse-integer val)))
     (number val)))
 
 (defmethod read-sql-value (val (type (eql 'bigint)) database)
   (declare (ignore database))
   (etypecase val
     (string
-     (parse-integer val))
+     (unless (string-equal "NIL" val)
+       (parse-integer val)))
     (number val)))
 
 (defmethod read-sql-value (val (type (eql 'float)) database)
@@ -660,10 +662,10 @@ superclass of the newly-defined View Class."
 (defmethod read-sql-value (val (type (eql 'univeral-time)) database)
   (declare (ignore database))
   (unless (eq 'NULL val)
-  (etypecase val
-    (string
-     (parse-intger val))
-    (number val)))
+    (etypecase val
+      (string
+       (parse-integer val))
+      (number val))))
 
 (defmethod read-sql-value (val (type (eql 'wall-time)) database)
   (declare (ignore database))
index d38c55cd7a0341392bdbf9fad7e7da9ac16cceac..5293df99f500c0c8ba11f0181082c0e3178f4e55 100644 (file)
@@ -30,7 +30,7 @@
 
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (defpackage #:clsql-sys
-    (:use #:common-lisp #:clsql-base-sys
+    (:use #:common-lisp #:clsql-base
          #+clsql-sbcl-mop #:sb-mop
          #+clsql-cmucl-mop #:mop
          #+allegro #:mop
@@ -96,7 +96,7 @@
     )
    
    (:import-from 
-    #:clsql-base-sys
+    #:clsql-base
     .
     #1=(
        ;; conditions 
index 3b575df849f486719cca25a89a185e6474a8bee4..8107bd96c1a0fe21b97a97b8d26cf6ed1bf185a1 100644 (file)
@@ -35,7 +35,7 @@
 
 (defun truncate-database (&key (database *default-database*))
   (unless (typep database 'database)
-    (clsql-base-sys::signal-no-database-error database))
+    (clsql-base::signal-no-database-error database))
   (unless (is-database-open database)
     (database-reconnect database))
   (when (db-type-has-views? (database-underlying-type database))
index f35261ec232d293efced587c8748d82f73dcfee1..11d3cc43fe2ec92af5a3f9699028ed1a0cf3a62f 100644 (file)
   t)
 
 (deftest :connection/2
-    (clsql-base-sys::string-to-list-connection-spec 
+    (clsql-base::string-to-list-connection-spec 
      "localhost/dbname/user/passwd")
   ("localhost" "dbname" "user" "passwd"))
 
 (deftest :connection/3
-    (clsql-base-sys::string-to-list-connection-spec 
+    (clsql-base::string-to-list-connection-spec 
      "dbname/user@hostname")
   ("hostname" "dbname" "user"))
 
index d047b3f807ab1a76a92c7d5a6cf0532caec80428..0dc053b1307210b3e005f85c26b3039091b15669 100644 (file)
   t nil)
   
   ;; create a view, list its attributes and drop it 
-(when (clsql-base-sys:db-type-has-views? *test-database-underlying-type*)
+(when (clsql-base:db-type-has-views? *test-database-underlying-type*)
   (deftest :fddl/view/2
       (progn (clsql:create-view [lenins-group]
                                :as [select [first-name] [last-name] [email]
index d8eec640021ee61281e5b42515caa4bb0e4db717..c13f545a0452eec526df868c51b2bdcd4b131ba2 100644 (file)
       (let ((test (second test-form)))
        (cond
          ((and (null (db-type-has-views? db-underlying-type))
-               (clsql-base-sys::in test :fddl/view/1 :fddl/view/2 :fddl/view/3 :fddl/view/4))
+               (clsql-base::in test :fddl/view/1 :fddl/view/2 :fddl/view/3 :fddl/view/4))
           (push (cons test "views not supported") skip-tests))
          ((and (null (db-type-has-boolean-where? db-underlying-type))
-               (clsql-base-sys::in test :fdml/select/11 :oodml/select/5))
+               (clsql-base::in test :fdml/select/11 :oodml/select/5))
           (push (cons test "boolean where not supported") skip-tests))
          ((and (null (db-type-has-subqueries? db-underlying-type))
-               (clsql-base-sys::in test :fdml/select/5 :fdml/select/10))
+               (clsql-base::in test :fdml/select/5 :fdml/select/10))
           (push (cons test "subqueries not supported") skip-tests))
          ((and (null (db-type-transaction-capable? db-underlying-type
                                                    *default-database*))
-               (clsql-base-sys::in test :fdml/transaction/1 :fdml/transaction/2 :fdml/transaction/3 :fdml/transaction/4))
+               (clsql-base::in test :fdml/transaction/1 :fdml/transaction/2 :fdml/transaction/3 :fdml/transaction/4))
           (push (cons test "transactions not supported") skip-tests))
          ((and (null (db-type-has-fancy-math? db-underlying-type))
-               (clsql-base-sys::in test :fdml/select/1))
+               (clsql-base::in test :fdml/select/1))
           (push (cons test "fancy math not supported") skip-tests))
          ((and (eql *test-database-type* :sqlite)
-               (clsql-base-sys::in test :fddl/view/4 :fdml/select/10))
+               (clsql-base::in test :fddl/view/4 :fdml/select/10))
           (push (cons test "not supported by sqlite") skip-tests))
          (t
           (push test-form test-forms)))))