SQLite

Check-in [56314b6b53]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Only run preupdate-hook tests in incrblob4.test if the preupdate-hook is enabled in the build.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 56314b6b53c86ae131f780e20b62bdeabccba6d62dda41becc1c4b2e87cee07b
User & Date: dan 2025-07-07 20:47:23.343
Context
2025-07-07
20:47
Only run preupdate-hook tests in incrblob4.test if the preupdate-hook is enabled in the build. (Leaf check-in: 56314b6b53 user: dan tags: trunk)
16:19
Rework the fix to the problem described by forum post b9647a113b so that it provides a more complete fix that covers cases that were not resolved by the original fix, and so that it does not cause performance regressions. (check-in: 28db0d152d user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to test/incrblob4.test.
104
105
106
107
108
109
110


111
112
113
114
115
116
117
do_test 4.4 {
  sqlite3_extended_errcode db
} {SQLITE_LOCKED}
close $blob

#-------------------------------------------------------------------------



reset_db
do_execsql_test 5.1 {
  CREATE TABLE t2(a INTEGER PRIMARY KEY, b);
  INSERT INTO t2 VALUES(1000, 'abcdefghijklmnopqrstuvwxyz');
  INSERT INTO t2 VALUES(2000, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
  INSERT INTO t2 VALUES(3000, 'abcdefghijklmnopqrstuvwxyz');
}







>
>







104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
do_test 4.4 {
  sqlite3_extended_errcode db
} {SQLITE_LOCKED}
close $blob

#-------------------------------------------------------------------------

ifcapable preupdate {

reset_db
do_execsql_test 5.1 {
  CREATE TABLE t2(a INTEGER PRIMARY KEY, b);
  INSERT INTO t2 VALUES(1000, 'abcdefghijklmnopqrstuvwxyz');
  INSERT INTO t2 VALUES(2000, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
  INSERT INTO t2 VALUES(3000, 'abcdefghijklmnopqrstuvwxyz');
}
189
190
191
192
193
194
195
196
197
198
199


200
do_test 5.4.4 {
  puts -nonewline $blob "world"
  list [catch { flush $blob } msg] $msg
} "1 {error flushing \"$blob\": I/O error}"
catch { close $blob }
catchsql { ROLLBACK }

do_test 5.3.3 {
  set ::preupdate_count
} {2}



finish_test







|



>
>

191
192
193
194
195
196
197
198
199
200
201
202
203
204
do_test 5.4.4 {
  puts -nonewline $blob "world"
  list [catch { flush $blob } msg] $msg
} "1 {error flushing \"$blob\": I/O error}"
catch { close $blob }
catchsql { ROLLBACK }

do_test 5.4.5 {
  set ::preupdate_count
} {2}

}

finish_test