projects
/
clsql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c6fb3ef
)
r9490: fix for odbc/postgresql bigint strings
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 27 May 2004 20:05:28 +0000
(20:05 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 27 May 2004 20:05:28 +0000
(20:05 +0000)
tests/test-fddl.lisp
patch
|
blob
|
history
diff --git
a/tests/test-fddl.lisp
b/tests/test-fddl.lisp
index b75f2cf2dbdc6ceb60ca2d091ed3dd8c65623c14..3c69653edc6be24b194f592c0e26faff002904fb 100644
(file)
--- a/
tests/test-fddl.lisp
+++ b/
tests/test-fddl.lisp
@@
-276,10
+276,15
@@
(max (expt 2 60))
(rest rows (cdr rest)))
((= i (length rows)) t)
(max (expt 2 60))
(rest rows (cdr rest)))
((= i (length rows)) t)
- (let ((row (car rest))
- (index (1+ i)))
- (unless (and (eql (first row) index)
- (eql (second row) (truncate max index)))
+ (let ((index (1+ i))
+ (int (first (car rest)))
+ (bigint (second (car rest))))
+ (when (and (eq *test-database-type* :odbc)
+ (eq *test-database-underlying-type* :postgresql)
+ (stringp bigint))
+ (setf bigint (parse-integer bigint)))
+ (unless (and (eql int index)
+ (eql bigint (truncate max index)))
(return nil))))))
555 t)
(return nil))))))
555 t)