mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
When opening a zero-size database on unix, write one byte into the file before
interrogating the inode number. This works around issues with msdos filesystems mounted on OS-X. Ticket #3260. (CVS 5504) FossilOrigin-Name: a480a8845fb3b49967de0790b30e6250c824b9be
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.16 2008/05/01 18:01:47 drh Exp $
|
||||
# $Id: io.test,v 1.17 2008/07/30 17:28:04 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -375,7 +375,9 @@ ifcapable pager_pragmas {
|
||||
db eval {
|
||||
PRAGMA auto_vacuum=OFF;
|
||||
}
|
||||
file size test.db
|
||||
# File size might be 1 due to the hack to work around ticket #3260.
|
||||
# Search for #3260 in os_unix.c for additional information.
|
||||
expr {[file size test.db]>1}
|
||||
} {0}
|
||||
do_test io-3.2 {
|
||||
execsql { CREATE TABLE abc(a, b) }
|
||||
|
Reference in New Issue
Block a user