mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Merge the latest trunk changes into the reuse-schema branch.
FossilOrigin-Name: 5149d50f3473f2035fe6a9b0e25e33e58f95149a7a39bd19e678ed4cc7de6ccf
This commit is contained in:
@@ -117,6 +117,15 @@ do_test func-2.9 {
|
||||
do_test func-2.10 {
|
||||
execsql {SELECT substr(a,2,2) FROM t2}
|
||||
} {{} {} 45 {} 78}
|
||||
do_test func-2.11 {
|
||||
execsql {SELECT substr('abcdefg',0x100000001,2)}
|
||||
} {{}}
|
||||
do_test func-2.12 {
|
||||
execsql {SELECT substr('abcdefg',1,0x100000002)}
|
||||
} {abcdefg}
|
||||
do_test func-2.13 {
|
||||
execsql {SELECT quote(substr(x'313233343536373839',0x7ffffffffffffffe,5))}
|
||||
} {X''}
|
||||
|
||||
# Only do the following tests if TCL has UTF-8 capabilities
|
||||
#
|
||||
@@ -339,6 +348,9 @@ ifcapable floatingpoint {
|
||||
do_test func-4.39 {
|
||||
string tolower [db eval {SELECT round(1e500), round(-1e500);}]
|
||||
} {inf -inf}
|
||||
do_execsql_test func-4.40 {
|
||||
SELECT round(123.456 , 4294967297);
|
||||
} {123.456}
|
||||
}
|
||||
|
||||
# Test the upper() and lower() functions
|
||||
|
@@ -26,20 +26,22 @@ sqlite3_initialize
|
||||
sqlite3 db test.db
|
||||
|
||||
|
||||
# Configure the sorter to use 3 background threads.
|
||||
#
|
||||
# EVIDENCE-OF: R-19249-32353 SQLITE_LIMIT_WORKER_THREADS The maximum
|
||||
# number of auxiliary worker threads that a single prepared statement
|
||||
# may start.
|
||||
#
|
||||
do_test sort4-init001 {
|
||||
db eval {PRAGMA threads=5}
|
||||
sqlite3_limit db SQLITE_LIMIT_WORKER_THREADS -1
|
||||
} {5}
|
||||
do_test sort4-init002 {
|
||||
sqlite3_limit db SQLITE_LIMIT_WORKER_THREADS 3
|
||||
db eval {PRAGMA threads}
|
||||
} {3}
|
||||
if {![string match *MAX_WORKER_THREADS=0* [db eval {PRAGMA compile_options}]]} {
|
||||
# Configure the sorter to use 3 background threads.
|
||||
#
|
||||
# EVIDENCE-OF: R-19249-32353 SQLITE_LIMIT_WORKER_THREADS The maximum
|
||||
# number of auxiliary worker threads that a single prepared statement
|
||||
# may start.
|
||||
#
|
||||
do_test sort4-init001 {
|
||||
db eval {PRAGMA threads=5}
|
||||
sqlite3_limit db SQLITE_LIMIT_WORKER_THREADS -1
|
||||
} {5}
|
||||
do_test sort4-init002 {
|
||||
sqlite3_limit db SQLITE_LIMIT_WORKER_THREADS 3
|
||||
db eval {PRAGMA threads}
|
||||
} {3}
|
||||
}
|
||||
|
||||
|
||||
# Minimum number of seconds to run for. If the value is 0, each test
|
||||
|
@@ -78,8 +78,8 @@ do_test sqllimits1-1.23 {
|
||||
# Minimum value for SQLITE_LIMIT_LENGTH is 30
|
||||
#
|
||||
do_test sqllimits1-1.30 {
|
||||
sqlite3_limit db SQLITE_LIMIT_LENGTH 1
|
||||
sqlite3_limit db SQLITE_LIMIT_LENGTH 1000000000
|
||||
set prior [sqlite3_limit db SQLITE_LIMIT_LENGTH 1]
|
||||
sqlite3_limit db SQLITE_LIMIT_LENGTH $prior
|
||||
} 30
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user