drh
516ae18005
Merge the fix to ticket [f7b4edece25c99485] into the sessions branch.
...
FossilOrigin-Name: 1b736ac2934f2361dee5062e9033cbf26b41fc3a
2011-03-19 02:37:38 +00:00
drh
8ce0261d09
Add a test case to verify that ticket [f7b4edece25c994857] is fixed.
...
FossilOrigin-Name: eedbcf0a0ba91bb8b9cd3d115081ba297e9959fe
2011-03-19 02:04:02 +00:00
drh
c2a75551ef
Add a generation counter to the Schema object and enhance OP_VerifySchema
...
to also check the Schema generation. Fix for
ticket [f7b4edece25c99].
FossilOrigin-Name: 36c04dd1695f0899b53ce58738181b146fc005ed
2011-03-18 21:55:46 +00:00
dan
4c22025225
Hold the database mutex for the duration of an sqlite3changeset_apply() call. Also for the duration of all sqlite3session_xxx() calls.
...
FossilOrigin-Name: c615c38c3283e21c33550c093099a793761123a7
2011-03-18 18:03:13 +00:00
drh
304637c026
Fixes for compiler warnings. Minor code cleanup.
...
FossilOrigin-Name: 9604d13001e0a195718c7f03fc0e73e352226caa
2011-03-18 16:47:27 +00:00
dan
2635a3be20
Further improvements to documentation in sqlite3session.h.
...
FossilOrigin-Name: 07019bb9e8d8f2445d1e0342f74ab520e9804cb5
2011-03-18 16:13:53 +00:00
drh
ea022cffdd
Fix a memory allocation issues in the preupdate hook so that the hook.test
...
script runs clean in valgrind.
FossilOrigin-Name: bd94f4c8b1c4590c437030f0122015f1a37e2582
2011-03-18 15:13:31 +00:00
dan
c21111daff
Update comments in sqlite3session.h. More to come.
...
FossilOrigin-Name: e73e9082f3b14088752717193a10dd7657deb8af
2011-03-18 13:05:15 +00:00
drh
0639c34ecd
Merge all the latest trunk enhancements into the sessions branch.
...
FossilOrigin-Name: 94fd5bb6da5ef4d850c2ed4ad38afabc5569dae6
2011-03-18 12:35:36 +00:00
dan
e8d5648e16
Change to the session module to use user-defined primary keys instead of rowids when collecting changes.
...
FossilOrigin-Name: 6614cfcb9c41da71ddec3c44a3de0d4d849e1cdd
2011-03-17 19:20:27 +00:00
drh
d416fe7995
Update the implementation of ".testctrl" in the command-line shell to use
...
a look-up table rather than a long sequence of if-elses. Shorten source
code lines of shell.c to 80 characters or less.
FossilOrigin-Name: 54bacb95dd6e2d6ac4971391a40484ccb9126d29
2011-03-17 16:45:50 +00:00
drh
ac8eb11375
Comment enhancement to better explain the logic in the "x IS NULL"
...
optimization.
FossilOrigin-Name: 869f894798a65f8bc0e0b083866a784fa0189f68
2011-03-17 01:58:21 +00:00
drh
1f9c7663ce
Enhances to the query planner such that "x IS NULL" constraints take the
...
STAT2 statistics into account, just like "x=VALUE" constraints.
FossilOrigin-Name: 2353176811f752a16c1f2351a3d3431919b062a9
2011-03-17 01:34:26 +00:00
dan
37db03bf73
Add the sqlite3_preupdate_new() API, for retrieving the new.* values from within a pre-update callback.
...
FossilOrigin-Name: 526545c49f64d9063d1b888cfc14ece62fa3c13c
2011-03-16 19:59:18 +00:00
drh
2f8ebdde3e
Additional interpretation of flags and constants in the VFS trace output.
...
FossilOrigin-Name: 3e984195f1f6d28734456dd726d226cedf207da2
2011-03-16 18:54:23 +00:00
drh
2b625e243e
Add the -vfstrace option to the usage error message in the shell.
...
FossilOrigin-Name: baca45c549e1c144257ee657258939640120e094
2011-03-16 17:05:28 +00:00
drh
97ae8ffb7a
Add the VFS-trace shim.
...
FossilOrigin-Name: f49a9ef3387bd4453f5654ebe83fea445c03cf4d
2011-03-16 16:56:29 +00:00
dan
6566ebe1b6
Remove the sqlite3_transaction_hook() API.
...
FossilOrigin-Name: b0015a1cfe63c924ee5f250aa08460522882009b
2011-03-16 09:49:14 +00:00
drh
7719711b81
Make the "unix-excl" VFS work exactly like "unix" if the database
...
file is read-only.
FossilOrigin-Name: d9846834993079fb2e42d6bd2644b2154ef324d1
2011-03-15 19:08:48 +00:00
drh
77ec9ba3f8
Fix an out-of-order variable declaration in shell.c.
...
FossilOrigin-Name: 725708465072fc63736e99610cc9cb0ac336145a
2011-03-15 18:35:44 +00:00
dan
296c76589f
Fix some bugs and other code issues in the session module.
...
FossilOrigin-Name: f2930840e4af3d7d9cb199d316502932fcbbb867
2011-03-15 16:37:27 +00:00
shaneh
9d677e1599
Fix cut-and-paste typo in debugging print statement in winMutexTry().
...
FossilOrigin-Name: def98fd23e42bda13547e38ab13fed0e6554ce99
2011-03-15 02:55:28 +00:00
dan
0c698471d1
Fix handling of return values from the conflict handler. Document the conflict handler arguments and return codes in sqlite3session.h.
...
FossilOrigin-Name: cbbb274e500237dbf7155a51d4f9c17583d704ea
2011-03-14 19:49:23 +00:00
drh
0d8abc84fa
Merge the unix-excl VFS into the trunk. This merge also adds the -vfs
...
option to the command-line shell.
FossilOrigin-Name: 3934b004e93852c89b937ec20431de96a2e99440
2011-03-14 13:54:01 +00:00
drh
3cb9339a6c
In the "unix-excl" VFS, use the heap for shared memory, since only a single
...
process is able to read or write the database.
FossilOrigin-Name: a05a6d40875df674f9c2b46e33128c6878d4edaa
2011-03-12 18:10:44 +00:00
dan
37f133ec31
Fix some issues with UPDATE changes in the session module.
...
FossilOrigin-Name: 57862efe718fdc93401998f9058511292a0e1a50
2011-03-12 17:22:46 +00:00
drh
a7e61d8b24
Add the new optional "unix-excl" VFS. This VFS grabs an exclusive lock on
...
the database preventing other processes from accessing it, but continues to
allow other database connections from the same process.
FossilOrigin-Name: 00051c3296e11211b2bb5ae28f016b17dca857d7
2011-03-12 17:02:57 +00:00
shaneh
11c58f7d8e
More tests for SQLITE_OMIT_UNIQUE_ENFORCEMENT and minor change to implementation.
...
FossilOrigin-Name: b86999436ec2414c990ba720441fe316f647eef6
2011-03-12 04:58:55 +00:00
dan
d5f0767c9c
Add the sqlite3changeset_apply() function. Does not yet handle all cases.
...
FossilOrigin-Name: 2b19be7bf753c7dd12e1c3b384981a3ea1bc8145
2011-03-11 19:05:52 +00:00
drh
ca6b9d5bbe
Remove an unused field from the unix sqlite3_file object.
...
FossilOrigin-Name: f957f23a8a392bb1720720960bda2c7b24de9663
2011-03-11 16:15:48 +00:00
shaneh
fbf34bf794
Simplification of tests and more added for SQLITE_OMIT_UNIQUE_ENFORCEMENT tests.
...
FossilOrigin-Name: 75a38411a89bd2969ec5cecca13c13a390b3d478
2011-03-10 21:48:02 +00:00
shaneh
e08160bdc1
Skip unique constraint enforcement if compiled with SQLITE_OMIT_UNIQUE_ENFORCEMENT.
...
FossilOrigin-Name: ba85bf8cb88f7ae220d919f5c23f51d9dcedc843
2011-03-10 21:13:18 +00:00
shaneh
9324794e1e
Minor clean-up of previous mem5 allocator fix.
...
FossilOrigin-Name: 3643842316239ff7859f0ec522736a2b9c03d22c
2011-03-10 03:54:55 +00:00
shaneh
a6ec892b5b
Fix issue with mem5 allocator when min request size is larger thatn 2^30.
...
FossilOrigin-Name: d7dae06fb2d57ed6b9555b774712f42077ae4155
2011-03-09 21:36:17 +00:00
drh
95e037ba39
Omit unnecessary OP_Next and OP_Prev operators when uniqueness constraints
...
guarantee that the code will only make one pass through the loop.
FossilOrigin-Name: f000c9b2b7348238fe2085140d2dd05294a19709
2011-03-09 21:02:31 +00:00
dan
91ddd5595b
Add a function to the session extension invert a changeset.
...
FossilOrigin-Name: 75d5dff725dbb66d67d56ad042926f1daae56dbe
2011-03-09 11:17:05 +00:00
drh
a1df4bfc1a
Updates to the OS/2 implementation from Rich Walsh.
...
FossilOrigin-Name: dc46156a2237701679433779b871844f4f2abe4b
2011-03-09 11:04:07 +00:00
dan
4fccf43aae
Add start of sessions feature.
...
FossilOrigin-Name: 269a81a37d7dbdcdec3c2322074916af0fbac91c
2011-03-08 19:22:50 +00:00
drh
6f6e689c90
Merge the syscall-override changes into trunk.
...
FossilOrigin-Name: 36d79e6f54cdc4129c6e6366a49722e2cf1cccbd
2011-03-08 16:39:29 +00:00
drh
66d655b409
Unix errno integer can vary from one system to the next. So do not
...
depend on specific errno values in test cases.
FossilOrigin-Name: ddb747d33a004c7fe532a661e879ccba68c79c59
2011-03-08 14:05:07 +00:00
drh
87e79aefef
Fix two compiler warnings. No functional code changes.
...
FossilOrigin-Name: c829868aa2254c5e2268cdb803462cc6ec5cb71e
2011-03-08 13:06:41 +00:00
drh
d50ffc416f
Fix additional cases of possible signed integer overflow, especially with
...
regard to negation.
FossilOrigin-Name: 2d5800bd8cfc7d7f5578a71b1aeaa74b2ec4b372
2011-03-08 02:38:28 +00:00
drh
2327275b8c
Another minor simplification brought to light by clang.
...
FossilOrigin-Name: 3bfbf026dd6a0eeef07f8f5f1ebf74c9cfebcd61
2011-03-06 21:54:33 +00:00
drh
c126e63e4f
Remove dead code identified by the clang static analyzer.
...
FossilOrigin-Name: 01a79d5a7af48fb7e50291c0c7c6283d3fb359d0
2011-03-06 21:28:32 +00:00
drh
d7255a207e
Simplifications to the overflow-free multiplier. Also remove some commented-out
...
code that was left in that subroutine by mistake on the previous check-in.
FossilOrigin-Name: 55fc25fdab61e6094289e068c343e012fec10439
2011-03-05 21:41:34 +00:00
drh
158b9cb965
Fix all known instances of signed-integer overflow. Within SQL expressions,
...
integer overflow now forces coercion to floating point. The shift operators
work with any integer right-hand operand with negative values reversing
the direction of the shift.
FossilOrigin-Name: abf21394124a0af46f072793718964cee2ce55d0
2011-03-05 20:59:46 +00:00
drh
cfd654bf2a
Fix an instance of signed arithmetic overflow and an one bit-shift overflow.
...
Mark six other signed arithmetic overflow locations that need fixing.
FossilOrigin-Name: 04abab71ecd52f6070b9f84781a3df3d6dba7722
2011-03-05 13:54:15 +00:00
drh
ad4f1e5415
Handle EINTR errors from open().
...
FossilOrigin-Name: a7d176b27cd73791d45eb3a31df78187ae10ce20
2011-03-04 15:43:57 +00:00
drh
92e4feb74c
Do a better job of choosing the join table order when the tables having
...
very different numbers of rows.
FossilOrigin-Name: 952f5e8c69904c48f2decfabf8ea60a2e9f3e134
2011-03-04 00:56:58 +00:00
dan
21e8d0126d
Add the experimental sqlite3_transaction_hook() API.
...
FossilOrigin-Name: 093d8cd8e2f3a6af5d40cf810e396f4919eb5cef
2011-03-03 20:05:59 +00:00