r1748: *** empty log message ***
[clsql.git] / sql / usql.cl
index 5afb663c96cb859c81229e50dbf3c0901beef545..c140fc40b6338f905a75d595b9830cb007c55fda 100644 (file)
@@ -8,7 +8,7 @@
 ;;;; Programmers:   Kevin M. Rosenberg and onShore Development Inc
 ;;;; Date Started:  Mar 2002
 ;;;;
-;;;; $Id: usql.cl,v 1.1 2002/04/01 05:27:55 kevin Exp $
+;;;; $Id: usql.cl,v 1.5 2002/04/06 22:41:37 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;; and onShore Development Inc
@@ -57,6 +57,9 @@ specifies the database to operation on, defaulting to
   (error "(rename-attribute ~a ~a ~a ~a) is not implemented" table oldatt newname database))
 
 
+(defclass %sql-expression ()
+    ())
+
 ;; For SQL Identifiers of generic type
 (defclass sql-ident (%sql-expression)
   ((name
@@ -96,14 +99,6 @@ specifies the database to operation on, defaulting to
 (defun sequence-next (name &key (database *default-database*))
   (database-sequence-next name database))
 
-
-(defclass sql-typecast-exp (sql-value-exp)
-  ()
-  (:documentation
-   "An SQL typecast expression.")
-  )
-
-
 (defclass sql-value-exp (%sql-expression)
   ((modifier
     :initarg :modifier
@@ -115,20 +110,21 @@ specifies the database to operation on, defaulting to
    "An SQL value expression.")
   )
 
+(defclass sql-typecast-exp (sql-value-exp)
+  ()
+  (:documentation
+   "An SQL typecast expression.")
+  )
 (defvar +null-string+ "NULL")
 
 (defvar *sql-stream* nil
   "stream which accumulates SQL output")
 
-(defclass %sql-expression ()
-  ())
-
 (defmethod output-sql ((expr %sql-expression) &optional
                        (database *default-database*))
   (declare (ignore database))
   (write-string +null-string+ *sql-stream*))
 
-#+ignore
 (defmethod print-object ((self %sql-expression) stream)
   (print-unreadable-object
    (self stream :type t)