projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r2049: moved cmucl-compat files
[clsql.git]
/
interfaces
/
postgresql
/
postgresql-usql.cl
diff --git
a/interfaces/postgresql/postgresql-usql.cl
b/interfaces/postgresql/postgresql-usql.cl
index 25eb696aaf10c8292313773812be87032eca7ffe..4633f390e964b57cb4d8a7fd3a2dd267e8a24552 100644
(file)
--- a/
interfaces/postgresql/postgresql-usql.cl
+++ b/
interfaces/postgresql/postgresql-usql.cl
@@
-7,7
+7,7
@@
;;;; Programmers: Kevin M. Rosenberg and onShore Development Inc
;;;; Date Started: Mar 2002
;;;;
;;;; Programmers: Kevin M. Rosenberg and onShore Development Inc
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: postgresql-usql.cl,v 1.
1 2002/04/01 05:27:55
kevin Exp $
+;;;; $Id: postgresql-usql.cl,v 1.
4 2002/05/15 17:10:28
kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and by onShore Development Inc.
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and by onShore Development Inc.
@@
-33,17
+33,13
@@
-(defmethod database-list-attributes (table (database postgresql-database))
- (let* ((relname (etypecase table
- (clsql::sql-ident
- (string-downcase
- (symbol-name (slot-value table 'clsql::name))))
- (string table)))
- (result
+(defmethod database-list-attributes ((table string)
+ (database postgresql-database))
+ (let* ((result
(mapcar #'car
(database-query
(format nil
(mapcar #'car
(database-query
(format nil
- "SELECT attname FROM pg_class,pg_attribute WHERE pg_class.oid=attrelid AND relname='~A'"
relnam
e)
+ "SELECT attname FROM pg_class,pg_attribute WHERE pg_class.oid=attrelid AND relname='~A'"
tabl
e)
database nil))))
(if result
(reverse
database nil))))
(if result
(reverse
@@
-57,7
+53,7
@@
"tableoid") :test #'equal))
result)))))
"tableoid") :test #'equal))
result)))))
-(defmethod database-attribute-type (attribute
table
+(defmethod database-attribute-type (attribute
(table string)
(database postgresql-database))
(let ((result
(mapcar #'car
(database postgresql-database))
(let ((result
(mapcar #'car
@@
-88,6
+84,9
@@
(concatenate 'string "SELECT NEXTVAL ('" (sql-escape sequence-name) "')")
database nil))))
(concatenate 'string "SELECT NEXTVAL ('" (sql-escape sequence-name) "')")
database nil))))
+;; Functions depending upon high-level USQL classes/functions
+
+#|
(defmethod database-output-sql ((expr clsql-sys::sql-typecast-exp)
(database postgresql-database))
(with-slots (clsql-sys::modifier clsql-sys::components)
(defmethod database-output-sql ((expr clsql-sys::sql-typecast-exp)
(database postgresql-database))
(with-slots (clsql-sys::modifier clsql-sys::components)
@@
-107,3
+106,4
@@
(make-instance 'clsql-sys::sql-typecast-exp
:modifier 'int8
:components val)))
(make-instance 'clsql-sys::sql-typecast-exp
:modifier 'int8
:components val)))
+|#