Fix expr.test so that it works when the date-time functions are compiled out of the library. (CVS 2086)
FossilOrigin-Name: 540ce7de1b3f1882c40d4e20d3986775e1dcf77a
This commit is contained in:
parent
e6efa74b9f
commit
ae381aa1b6
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
||||
C Ensure\stables\scannot\sbe\screated/dropped\swhen\sbtree\scursors\sare\sopen.\s(CVS\s2085)
|
||||
D 2004-11-10T11:55:11
|
||||
C Fix\sexpr.test\sso\sthat\sit\sworks\swhen\sthe\sdate-time\sfunctions\sare\scompiled\sout\sof\sthe\slibrary.\s(CVS\s2086)
|
||||
D 2004-11-10T12:34:20
|
||||
F Makefile.in c4d2416860f472a1e3393714d0372074197565df
|
||||
F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
|
||||
F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1
|
||||
@ -119,7 +119,7 @@ F test/diskfull.test e2f6cfd868713ead06dc82b84a4938e868128fc0
|
||||
F test/enc.test 2f5463af488d50aef60c6110bec6b21b5efba961
|
||||
F test/enc2.test 7a60971a62748be6b607b4b4380eb4c5e151a6ec
|
||||
F test/enc3.test a96f4a7c44bac4d63bdc4ff422b8049912083998
|
||||
F test/expr.test a1855a3b47c0deab92e7b6a6d419a52782e7a67e
|
||||
F test/expr.test 20ddaf66c7ab673c1d0c953889e3466139256f9a
|
||||
F test/fkey1.test 81bb13caaa78f58d7d191d7f535529f7c91d821a
|
||||
F test/func.test 830d352574c7f5cd15149a9be58a6dcc2b995c05
|
||||
F test/hook.test f8605cde4c77b2c6a4a73723bf6c507796a64dda
|
||||
@ -255,7 +255,7 @@ F www/tclsqlite.tcl 560ecd6a916b320e59f2917317398f3d59b7cc25
|
||||
F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618
|
||||
F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
|
||||
F www/whentouse.tcl fdacb0ba2d39831e8a6240d05a490026ad4c4e4c
|
||||
P fe200eaf373998574cc059086bfc93d6c44ec5a3
|
||||
R 5c28b72443e2b85deec95ab22d09127a
|
||||
P 8e5c2e5df8b824f7efb27e776240f005c6f1f0ff
|
||||
R 79385f846a78a317725c294d0ea8c50d
|
||||
U danielk1977
|
||||
Z 1b8b884c02278a9e78ec1e566c672bd7
|
||||
Z 2d9ad69f33fb5bbe6fd95b8434198f61
|
||||
|
@ -1 +1 @@
|
||||
8e5c2e5df8b824f7efb27e776240f005c6f1f0ff
|
||||
540ce7de1b3f1882c40d4e20d3986775e1dcf77a
|
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing expressions.
|
||||
#
|
||||
# $Id: expr.test,v 1.37 2004/11/09 12:44:39 danielk1977 Exp $
|
||||
# $Id: expr.test,v 1.38 2004/11/10 12:34:20 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -480,23 +480,25 @@ set sqlite_current_time [clock seconds]
|
||||
set date [clock format $sqlite_current_time -format %Y-%m-%d -gmt 1]
|
||||
set time [clock format $sqlite_current_time -format %H:%M:%S -gmt 1]
|
||||
do_test expr-8.1 {
|
||||
execsql {SELECT CURRENT_TIME==time('now');}
|
||||
} 1
|
||||
do_test expr-8.2 {
|
||||
execsql {SELECT CURRENT_TIME}
|
||||
} $time
|
||||
do_test expr-8.3 {
|
||||
execsql {SELECT CURRENT_DATE==date('now');}
|
||||
} 1
|
||||
do_test expr-8.4 {
|
||||
do_test expr-8.2 {
|
||||
execsql {SELECT CURRENT_DATE}
|
||||
} $date
|
||||
do_test expr-8.5 {
|
||||
execsql {SELECT CURRENT_TIMESTAMP==datetime('now');}
|
||||
} 1
|
||||
do_test expr-8.6 {
|
||||
do_test expr-8.3 {
|
||||
execsql {SELECT CURRENT_TIMESTAMP}
|
||||
} [list "$date $time"]
|
||||
ifcapable datetime {
|
||||
do_test expr-8.4 {
|
||||
execsql {SELECT CURRENT_TIME==time('now');}
|
||||
} 1
|
||||
do_test expr-8.5 {
|
||||
execsql {SELECT CURRENT_DATE==date('now');}
|
||||
} 1
|
||||
do_test expr-8.6 {
|
||||
execsql {SELECT CURRENT_TIMESTAMP==datetime('now');}
|
||||
} 1
|
||||
}
|
||||
set sqlite_current_time 0
|
||||
|
||||
finish_test
|
||||
|
Loading…
Reference in New Issue
Block a user