+11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
+ * sql/metaclasses.lisp: Commit patch from Will to
+ properly set db-reader slot in effective-slot-definition
+ * sql/expressions.lisp: Commit patch from Alan Shields
+ adding make-load-form for sql-relational-exp
+ * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
+ adding support for new NUMBER type
+
17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
* Version 3.3.0
* sql/time.lisp: Apply patch from Alan Shields adding DATE type.
:initform +null-string+))
(:documentation "An SQL Attribute identifier."))
+(defmethod make-load-form ((self sql-relational-exp) &optional environment)
+ (make-load-form-saving-slots self
+ :slot-names '(operator sub-expressions)
+ :environment environment))
+
(defmethod collect-table-refs (sql)
(declare (ignore sql))
nil)
(declare (ignore args database))
"TIMESTAMP WITHOUT TIME ZONE")
+(defmethod database-get-type-specifier ((type (eql 'number)) args database
+ (db-type (eql :postgresql)))
+ (declare (ignore database db-type))
+ (cond
+ ((and (consp args) (= (length args) 2))
+ (format nil "NUMERIC(~D,~D)" (first args) (second args)))
+ ((and (consp args) (= (length args) 1))
+ (format nil "NUMERIC(~D)" (first args)))
+ (t
+ "NUMERIC")))
;;; Backend functions
(delistify-dsd (view-class-slot-db-kind dsd))
:base))
+ (setf (slot-value esd 'db-reader)
+ (when (slot-boundp dsd 'db-reader)
+ (delistify-dsd (view-class-slot-db-reader dsd))))
(setf (slot-value esd 'db-writer)
(when (slot-boundp dsd 'db-writer)
(delistify-dsd (view-class-slot-db-writer dsd))))