projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9797: * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
[clsql.git]
/
sql
/
oodml.lisp
diff --git
a/sql/oodml.lisp
b/sql/oodml.lisp
index 499a4ed64a95190896eaafa2cd68e23937a4d851..174b35a95f375d43465f20082c57c6ae1d87ba92 100644
(file)
--- a/
sql/oodml.lisp
+++ b/
sql/oodml.lisp
@@
-317,6
+317,14
@@
(format nil "INT(~A)" (car args))
"INT"))
(format nil "INT(~A)" (car args))
"INT"))
+(deftype tinyint ()
+ "An 8-bit integer, this width may vary by SQL implementation."
+ 'integer)
+
+(defmethod database-get-type-specifier ((type (eql 'tinyint)) args database db-type)
+ (declare (ignore args database db-type))
+ "INT")
+
(deftype smallint ()
"An integer smaller than a 32-bit integer, this width may vary by SQL implementation."
'integer)
(deftype smallint ()
"An integer smaller than a 32-bit integer, this width may vary by SQL implementation."
'integer)
@@
-1089,7
+1097,8
@@
as elements of a list."
(unless (record-caches database)
(setf (record-caches database)
(make-hash-table :test 'equal
(unless (record-caches database)
(setf (record-caches database)
(make-hash-table :test 'equal
- #+allegro :values #+allegro :weak)))
+ #+allegro :values #+allegro :weak
+ #+lispworks :weak-kind #+lispworks :value)))
(setf (gethash (compute-records-cache-key targets qualifiers)
(record-caches database)) results)
results)
(setf (gethash (compute-records-cache-key targets qualifiers)
(record-caches database)) results)
results)