Increase the upper bound on SQLITE_MAX_ATTACHED from 30 to 62.
FossilOrigin-Name: 7aaf8772274422f5020fad9eea490e195170720f
This commit is contained in:
+20
-16
@@ -152,14 +152,16 @@ do_test attach-1.18 {
|
||||
ATTACH 'test.db' as db11;
|
||||
}
|
||||
} {0 {}}
|
||||
do_test attach-1.19 {
|
||||
catchsql {
|
||||
ATTACH 'test.db' as db12;
|
||||
}
|
||||
} {1 {too many attached databases - max 10}}
|
||||
do_test attach-1.19.1 {
|
||||
db errorcode
|
||||
} {1}
|
||||
if {$SQLITE_MAX_ATTACHED==10} {
|
||||
do_test attach-1.19 {
|
||||
catchsql {
|
||||
ATTACH 'test.db' as db12;
|
||||
}
|
||||
} {1 {too many attached databases - max 10}}
|
||||
do_test attach-1.19.1 {
|
||||
db errorcode
|
||||
} {1}
|
||||
}
|
||||
do_test attach-1.20.1 {
|
||||
execsql {
|
||||
DETACH db5;
|
||||
@@ -179,14 +181,16 @@ do_test attach-1.21 {
|
||||
ATTACH 'test.db' as db12;
|
||||
}
|
||||
} {0 {}}
|
||||
do_test attach-1.22 {
|
||||
catchsql {
|
||||
ATTACH 'test.db' as db13;
|
||||
}
|
||||
} {1 {too many attached databases - max 10}}
|
||||
do_test attach-1.22.1 {
|
||||
db errorcode
|
||||
} {1}
|
||||
if {$SQLITE_MAX_ATTACHED==10} {
|
||||
do_test attach-1.22 {
|
||||
catchsql {
|
||||
ATTACH 'test.db' as db13;
|
||||
}
|
||||
} {1 {too many attached databases - max 10}}
|
||||
do_test attach-1.22.1 {
|
||||
db errorcode
|
||||
} {1}
|
||||
}
|
||||
do_test attach-1.23 {
|
||||
catchsql {
|
||||
DETACH "db14";
|
||||
|
||||
Reference in New Issue
Block a user