1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Limit the range of integer unix timestamps in date4.test, since some systems

(RaspberryPI) cannot deal with timestamp values that exceed pow(2,31).

FossilOrigin-Name: 765290663b28e90a0494997baf023f9610a4ed32f0ff0099bf9fc3d485733fca
This commit is contained in:
drh
2023-10-28 16:19:21 +00:00
parent 50862112b9
commit 5269e846dc
3 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@ if {$tcl_platform(os)=="Linux"} {
} else {
set FMT {%d,%e,%F,%H,%I,%j,%p,%R,%u,%w,%W,%%}
}
for {set i 0} {$i<=86400} {incr i} {
for {set i 0} {$i<=24854} {incr i} {
set TS [expr {$i*86401}]
do_execsql_test date4-$i {
SELECT strftime($::FMT,$::TS,'unixepoch');