mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix a problem with journal files being created unnecessarily when doing
an atomic write in exclusive access locking mode. Fix a test script problem. (CVS 5075) FossilOrigin-Name: 70e708660fec0b6f6c41efc2e29f1d7ae6785b7e
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
# IO traffic generated by SQLite (making sure SQLite is not writing out
|
||||
# more database pages than it has to, stuff like that).
|
||||
#
|
||||
# $Id: io.test,v 1.15 2008/03/28 17:41:14 drh Exp $
|
||||
# $Id: io.test,v 1.16 2008/05/01 18:01:47 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -346,14 +346,12 @@ do_test io-2.11.0 {
|
||||
PRAGMA locking_mode;
|
||||
}
|
||||
} {exclusive exclusive}
|
||||
breakpoint
|
||||
do_test io-2.11.1 {
|
||||
execsql {
|
||||
INSERT INTO abc VALUES(11, 12);
|
||||
}
|
||||
file exists test.db-journal
|
||||
} {0}
|
||||
breakpoint
|
||||
|
||||
do_test io-2.11.2 {
|
||||
execsql {
|
||||
|
@ -14,7 +14,7 @@
|
||||
# Make sure IEEE floating point NaN values are handled properly.
|
||||
# SQLite should always convert NaN into NULL.
|
||||
#
|
||||
# $Id: nan.test,v 1.1 2008/04/29 00:15:21 drh Exp $
|
||||
# $Id: nan.test,v 1.2 2008/05/01 18:01:47 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -34,6 +34,8 @@ set inf [string repeat 9 5000].0
|
||||
|
||||
do_test nan-1.1 {
|
||||
db eval {
|
||||
PRAGMA auto_vacuum=OFF;
|
||||
PRAGMA page_size=1024;
|
||||
CREATE TABLE t1(x FLOAT);
|
||||
}
|
||||
db eval "INSERT INTO t1 VALUES($nan)"
|
||||
|
Reference in New Issue
Block a user