drh
0fe456bb29
A proposed fix for the DESC ORDER BY bug of ticket [4dd95f6943fbd18].
...
Seems to work, but lots more testing is needed prior to moving to trunk.
FossilOrigin-Name: 614a038ad2fe111687d2bc1c0aa716d7eb8fdd7c
2013-03-12 18:34:50 +00:00
dan
881bd79293
Define _BSD_SOURCE when building on OpenBSD. This is required for fchmod().
...
FossilOrigin-Name: f9027cb47bdec8dcebf1f038921b28d9e9928c18
2013-03-11 13:37:52 +00:00
dan
b606ec52c7
Fixes for compiling with SQLITE_OMIT_AUTOVACUUM and/or SQLITE_OMIT_TRIGGER defined.
...
FossilOrigin-Name: 1da15adba8f6eec69c24ec6385d6f1a7905a388f
2013-03-11 11:57:30 +00:00
dan
09ff9e1664
Fixes for compiling with SQLITE_OMIT_AUTOVACUUM and/or SQLITE_OMIT_TRIGGER defined.
...
FossilOrigin-Name: 938b91e8552516772060d4e55e2f79cca4c13e27
2013-03-11 11:49:03 +00:00
dan
3da0df9d18
Add a test case for the problem fixed by the previous commit.
...
FossilOrigin-Name: e899b058a703158012c054974bd9a909d75144d8
2013-03-09 14:49:07 +00:00
dan
6d235cb8d8
Fix a problem with resolving "db.view.column" references that appear in UPDATE or DELETE statements executed against views.
...
FossilOrigin-Name: ddee56c9b2b591b9386b1072c3b3a699f7c1f853
2013-03-09 14:40:24 +00:00
dan
994ff6f587
If SQLITE_OMIT_UTF16 is defined, avoid setting the 'enc' field of Schema objects to any value except SQLITE_UTF8. Otherwise, assert() statements may fail or spurious SQLITE_NOMEM errors may be returned at the vdbe level later on.
...
FossilOrigin-Name: f2fecfb2d32cf666e16a87032042dc163ac30250
2013-03-08 18:16:33 +00:00
dan
dbd4d5fc77
If SQLITE_OMIT_UTF16 is defined, avoid setting the 'enc' field of Schema objects to any value except SQLITE_UTF8. Otherwise, assert() statements may fail or spurious SQLITE_NOMEM errors may be returned at the vdbe level later on.
...
FossilOrigin-Name: 69746ef787680a4b7590bd1d3c86b229d9d0dac4
2013-03-08 07:10:37 +00:00
drh
fe7a5d11b6
Fix the char() function so that it works even if SQLITE_OMIT_UTF16 is defined.
...
FossilOrigin-Name: af542c82e8e7f0415530b639fa397429c5f377f6
2013-03-07 14:00:04 +00:00
mistachkin
5acefe7dbe
Skip tests that require UTF-16 support when compiled with SQLITE_OMIT_UTF16.
...
FossilOrigin-Name: e39391422e748407d74853d3de297dc1ea6b991d
2013-03-07 09:39:18 +00:00
mistachkin
ef593f293e
Fix two compilation issues, one warning and one error, that occur only when SQLITE_OMIT_UTF16 is defined.
...
FossilOrigin-Name: 10ace06be7fbe9a76a201c418b2af453c7a69043
2013-03-07 06:42:53 +00:00
dan
42c4bd02f4
Fix a problem in incrvacuum_ioerr.test. Do not run ioerr6.test with an in-memory journal.
...
FossilOrigin-Name: 66576b450a0f0329571e344280994a964c967f8f
2013-03-06 11:44:57 +00:00
drh
459f63e7ed
Fix a bug (ticket [fc7bd6358f59]) that caused incorrect query results in
...
three way queries that involved comparing INTEGER and TEXT columns for
equality.
FossilOrigin-Name: 7097241c1220ada318f8eda938c3e3430b94a606
2013-03-06 01:55:27 +00:00
drh
a0272d8255
Add the SQLITE_READONLY_ROLLBACK extended error code.
...
Do not try to set the permissions on journal or wal files except if the
filesize is initially zero (indicating that it is a new file.)
FossilOrigin-Name: ce4ac66a4b623a3cee1a63089dd5ba8341244f1e
2013-03-06 01:48:20 +00:00
drh
cfc176973e
Fix an operator precedence problem on the [1d8086902e] check-in.
...
FossilOrigin-Name: 4f5f3aebe81c3cbe539db3e33ec38fa3de47e90b
2013-03-06 01:41:53 +00:00
dan
77dfe91662
Merge experimental branch with trunk.
...
FossilOrigin-Name: 4e6e07a60e543d5d1727cde27ab11e156202a1b8
2013-03-05 16:54:45 +00:00
dan
b83c21e600
Do not attempt to set the permissions on an existing journal or wal file. Do this only immediately after creating a new file (or opening one zero bytes in size).
...
FossilOrigin-Name: 1d8086902ee96347491bce5ec04dc92ccd42efa1
2013-03-05 15:27:34 +00:00
dan
e3664fb03c
Add extended error code SQLITE_READONLY_ROLLBACK. Returned if a read-only connection cannot read the database because doing so would require it to roll back a hot-journal.
...
FossilOrigin-Name: 39247b14a52b0c0222fe5a848bf0aef0854058c4
2013-03-05 15:09:25 +00:00
dan
e1df4e31ec
Fix a bug in the recent incremental-vacuum related changes.
...
FossilOrigin-Name: 717863fca6d58828bf9321bc8b169e385ad4263f
2013-03-05 11:27:04 +00:00
drh
edf9a17b47
Simplified error message on the showdb utility.
...
FossilOrigin-Name: 8e0ced1af78d8c25a06423a8e7e337ac845155cc
2013-03-05 01:46:26 +00:00
dan
84fb4c22b9
Omit a test that uses the progress handler callback from view.test if OMIT_PROGRESS_HANDLER is defined.
...
FossilOrigin-Name: f40552ada57622825d2974d392356aa34612d5ee
2013-03-04 17:41:32 +00:00
dan
e0ac363c62
Remove an assert() statement that has been incorrect since the recent incremental-vacuum related changes in [26e235b7a4].
...
FossilOrigin-Name: 090a47127fde90616a92a324d26bf9ddd4053120
2013-03-04 16:35:06 +00:00
drh
7015698b81
Add the test_fs.c test module to Makefile.in. Adjust the success criteria
...
on index5-1.3 so that it works under auto_vacuum configurations.
FossilOrigin-Name: b457c8870ac5ef58f2b7f8daed723c0cf0c07340
2013-03-03 20:26:46 +00:00
drh
82e647d7c3
Update comments on the free-page allocator to accurately reflect the
...
latest implementation. Add new asserts to the free-page allocator.
FossilOrigin-Name: 9a135e37b696b8544da8dbddf9d1041b8fa6f1c2
2013-03-02 03:25:55 +00:00
drh
1d59d036de
Complete the initialization of the loadable extension thunk table. Also
...
fix other (harmless) compiler warnings.
FossilOrigin-Name: 780d06c5e54590f677f993fa9c313989c2eab8c7
2013-03-01 23:40:26 +00:00
drh
1488052d38
Update the cygwin interface to use the newer 1.7 APIs instead of the
...
1.5 APIs. Also shorten over-length source code lines in os_win.c.
FossilOrigin-Name: 6b2838336a31e34c540210ccc9c934d4ba94757c
2013-03-01 23:24:04 +00:00
mistachkin
6e8a54fbd2
Prevent Tcl file encoding issues in the tests for the unicode() and char() functions.
...
FossilOrigin-Name: c9c2b82c86fff457a0b32d5be84ec66639065ae1
2013-03-01 23:13:37 +00:00
drh
6ffb4975f7
Fix an overly restrictive assert() in the pager.
...
FossilOrigin-Name: f476eace86102fd5442cfbba169c18f6ee44eae2
2013-03-01 21:01:05 +00:00
drh
de97724827
Fix the handling of UTF16 surrogate pairs in the char() function.
...
FossilOrigin-Name: ff67d87894eeb0036374235c5723e267536909f9
2013-03-01 15:02:52 +00:00
drh
503a686e09
Always use strncmp() rather than memcmp() when comparing strings where one
...
or other string might be less than the length parameter, since optimized
versions of memcmp() might read past the first difference and in so doing
generate an access violation.
FossilOrigin-Name: d73435587ba7459e2e2c32980d0e17abdeceb4bc
2013-03-01 01:07:17 +00:00
mistachkin
016fff2b6e
In the incrvacuum3 test, add missing call to the Tcl close command.
...
FossilOrigin-Name: cd8067238439638bcfd3966d55d2a3990f36d702
2013-02-26 18:54:18 +00:00
drh
dd1dd489d9
When comparing names during name resolution, make sure the names match
...
exactly and that one name isn't merely a prefix of the other.
Fix for ticket [7a31705a7e6c95d51].
FossilOrigin-Name: c2d5a23b1ab39918e97c596cf75c42f86a5fe2b7
2013-02-26 12:57:42 +00:00
dan
9cf37e718c
Change the way test script incrvacuum3.test copies database files in order to avoid trying to read the (locked) 512 byte 'pending-byte' region.
...
FossilOrigin-Name: fa1842e462049b1366909fe36d6d81b634be3953
2013-02-26 06:14:27 +00:00
mistachkin
8d0b81d764
Prevent Tcl file encoding issues in the tests for the unicode() and char() functions.
...
FossilOrigin-Name: d2e7dfca5a92074a7984032deb6a4e3681389c72
2013-02-26 05:44:33 +00:00
mistachkin
c9545442f9
Remove extra use of the sqlite3_value_int64() function.
...
FossilOrigin-Name: 6d7973524a7d3bf3158fdac58975945da7f51740
2013-02-26 05:42:30 +00:00
drh
fbc1ddf079
Add new SQL functions unicode() and char().
...
FossilOrigin-Name: be2493905281e12c7f4c146ab17c8872e52da350
2013-02-25 14:39:47 +00:00
drh
c6a67173bd
Strengthen the final test case in index5.test. Also provide additional
...
diagnostic information out the output.
FossilOrigin-Name: 47b6418242bb2cd718d1a73b0cb73a43ee74e503
2013-02-25 13:55:59 +00:00
dan
132d93838d
Fix an error in test script index5.test.
...
FossilOrigin-Name: d87e5acf2802d2887e20f79a8bd4990b2cd47b91
2013-02-25 13:44:56 +00:00
dan
f2874b0e1d
Merge the incr-vacuum-opt branch with the trunk.
...
FossilOrigin-Name: 26e235b7a4cd4d0dc9725774d70174c4d369cb98
2013-02-25 13:31:30 +00:00
dan
295fc442b5
Add test file incrvacuum3.test. No code changes.
...
FossilOrigin-Name: bf57534188e044fb341315bfc05b7927e66a04e0
2013-02-25 12:06:55 +00:00
dan
896f99e942
Catch a dropped error code in backup.c.
...
FossilOrigin-Name: ac8ca3ecee4d81bf522b330033e5d85638063670
2013-02-25 07:12:40 +00:00
dan
9138471141
Fix a case where database corruption may cause an assert() to fail.
...
FossilOrigin-Name: ba33bb059ed4f4547da2880dbc8bd827c06fae34
2013-02-24 11:50:43 +00:00
dan
e0b605917e
Fix a case in the incremental vacuum code where database corruption was going unreported.
...
FossilOrigin-Name: 4cd30c72629a7f44b18026a70103aa0bb8a3b959
2013-02-23 19:43:47 +00:00
dan
22d2730047
Fix a cut-and-paste bug causing the library to fail to report database corruption in a few cases.
...
FossilOrigin-Name: f921df59560d536f5b80eef8c995cbe3ff591bae
2013-02-23 19:11:47 +00:00
dan
b88e24fd59
Enhancements to test scripts. No code changes.
...
FossilOrigin-Name: ccab94c10d54e585de918bbf82dec188287d93b2
2013-02-23 18:58:11 +00:00
dan
87ade19eb9
Fix off-by-one bug in [c3939d2491] uncovered by th3.
...
FossilOrigin-Name: 66f9faa9a969d004486ee38d492fb3eda6cdebab
2013-02-23 17:49:16 +00:00
dan
bc1a3c6ce2
If a rollback mode transaction reduces the size of the database file, avoid actually truncating the file until after the transaction has been committed (but before the db has been unlocked). This means pages that are removed from the database by truncating the file need not be journalled.
...
FossilOrigin-Name: b73847f17b7ae1298dfc52de6c4c4bc809bc77a3
2013-02-23 16:40:46 +00:00
dan
f38b65a85d
Fix a problem with the previous commit.
...
FossilOrigin-Name: 720a3ceafc35b81936ed2eb1f07a7187d104f0a0
2013-02-22 20:57:47 +00:00
dan
51f0b6d568
Avoid moving pages more than once in an incremental vacuum operation.
...
FossilOrigin-Name: c3939d249119b47bd57baa11a5ed7cc6014fc795
2013-02-22 20:16:34 +00:00
drh
d495d8c9a3
Two new SQL functions: unicode() and char().
...
FossilOrigin-Name: 209b21085b9767f10f6ffb7c7cac756fcb74ded5
2013-02-22 19:34:25 +00:00