projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9345: * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
[clsql.git]
/
tests
/
test-basic.lisp
diff --git
a/tests/test-basic.lisp
b/tests/test-basic.lisp
index b0f40a5acb24e253e4941bf9daeac9c18ac702f4..6a27fdd7de0d5f1f7883bfbf2d2044235dd184d0 100644
(file)
--- a/
tests/test-basic.lisp
+++ b/
tests/test-basic.lisp
@@
-3,7
+3,7
@@
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: test-basic.lisp
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: test-basic.lisp
-;;;; Purpose: Tests for clsql
-base
and result types
+;;;; Purpose: Tests for clsql
string-based queries
and result types
;;;; Author: Kevin M. Rosenberg
;;;; Created: Mar 2002
;;;;
;;;; Author: Kevin M. Rosenberg
;;;; Created: Mar 2002
;;;;
@@
-29,9
+29,9
@@
(clsql:execute-command
(format nil "INSERT INTO TYPE_TABLE VALUES (~a,~a,~a,'~a')"
test-int
(clsql:execute-command
(format nil "INSERT INTO TYPE_TABLE VALUES (~a,~a,~a,'~a')"
test-int
- (clsql-
base
:number-to-sql-string test-flt)
+ (clsql-
sys
:number-to-sql-string test-flt)
(transform-bigint-1 test-int)
(transform-bigint-1 test-int)
- (clsql-
base
:number-to-sql-string test-flt)
+ (clsql-
sys
:number-to-sql-string test-flt)
)))))
(defun test-basic-forms ()
)))))
(defun test-basic-forms ()
@@
-47,8
+47,9
@@
(typep float 'double-float)
(if (and (eq :odbc *test-database-type*)
(eq :postgresql *test-database-underlying-type*))
(typep float 'double-float)
(if (and (eq :odbc *test-database-type*)
(eq :postgresql *test-database-underlying-type*))
- ;; ODBC/Postgresql returns bigints as strings
- (stringp bigint)
+ ;; ODBC/Postgresql may return returns bigints as strings or integer
+ ;; depending upon the platform
+ t
(integerp bigint))
(stringp str))
results))))
(integerp bigint))
(stringp str))
results))))