drh
126afe6b59
Fix a formatting errror in I/O logging. (CVS 3914)
...
FossilOrigin-Name: 2d37687a08a7b6b3a7f77f55a7c2e29a1f8731a8
2007-05-04 12:01:02 +00:00
drh
110daac9a1
Add compile-time option -DSQLITE_MIXED_ENDIAN_64BIT_FLOAT=1 that uses
...
mixed-endian doubles. This is needed on ARM7 to make database file
formats compatible with all other processors. Tickets #2278 and #2335 . (CVS 3913)
FossilOrigin-Name: 2a178d0c7950c9d403c0bc43c2043de945fb24e0
2007-05-04 11:59:31 +00:00
danielk1977
da10719890
Rework accessPayload() function for clarity. (CVS 3912)
...
FossilOrigin-Name: 42d07c70ec1eb6dd9619c97d753c9d2824aeae32
2007-05-04 08:32:13 +00:00
danielk1977
f1819244aa
Test some more incremental IO error cases. (CVS 3910)
...
FossilOrigin-Name: 64705410bdf43b6283f7a7e59ce8c20d09cd46e4
2007-05-03 18:14:10 +00:00
drh
ae5e445b34
Improvements to I/O tracing output. Require -DSQLITE_ENABLE_IOTRACE when
...
compiling shell.c in order to link in the I/O tracing capability. (CVS 3909)
FossilOrigin-Name: 8a43e1676fdd29903e0b3f9d3b05d217d42962b8
2007-05-03 17:18:36 +00:00
danielk1977
8cbadb0211
Test cases and minor bugfixes for incremental blob APIs. (CVS 3907)
...
FossilOrigin-Name: e12c522383bd40af375a52d2e68612c4dc7fd4db
2007-05-03 16:31:26 +00:00
danielk1977
44e6c8d3cf
Fix a bug where accessPayload() was calling PagerWrite() on the wrong page handle. Ticket #2332 . (CVS 3906)
...
FossilOrigin-Name: cf9eeba7be64ad29cddd320832db10c799fb6e8e
2007-05-03 13:11:32 +00:00
drh
f68d7d17a1
Use memmove() instead of memcpy() when moving between memory regions that
...
might overlap. Ticket #2334 . (CVS 3905)
FossilOrigin-Name: 678d672b73cc7b7f563c15daee3831cb5bbd890e
2007-05-03 13:02:26 +00:00
danielk1977
20713f34a5
Minor bugfixes for incrblob mode. (CVS 3903)
...
FossilOrigin-Name: db54a9466e3bea9c03740ce0b755cfa02bafaccd
2007-05-03 11:43:33 +00:00
drh
b7af4452d9
Allow CREATE TABLE to occur while other queries are running. DROP TABLE is
...
still prohibited, however, since we do not want to delete a table out
from under an running query. (CVS 3902)
FossilOrigin-Name: 5b4bf1fce4d589337cfb1b46d75c751bbdc607d5
2007-05-02 17:54:55 +00:00
danielk1977
9f8d64009e
Combine the internal btree functions BtreePutData() and getPayload(). (CVS 3901)
...
FossilOrigin-Name: a100a5304b0e7cbbdb6dac71a39c78eb71d44a03
2007-05-02 17:48:45 +00:00
drh
ae7e151a24
More fixes and improvements to the zeroblob() mechanism. (CVS 3900)
...
FossilOrigin-Name: 83ab25014e890b1cc6ea08ca1ebeeee0078da466
2007-05-02 16:51:59 +00:00
danielk1977
2dec97077b
Cache the location of overflow pages in cursors used for incremental blob IO. (CVS 3899)
...
FossilOrigin-Name: 349f1ea7895f06c40affc985a13aa6686dfdea07
2007-05-02 16:48:37 +00:00
drh
fdf972a9ba
Add support for zero-blobs to the OP_MakeRecord opcode.
...
First test cases of zeroblob functionality. (CVS 3897)
FossilOrigin-Name: e6d560ddeeb48fb0cbd9f5a10612280b055baef7
2007-05-02 13:30:27 +00:00
danielk1977
d04417963f
Use the pointer-map pages to make the incremental blob API more efficient. (CVS 3896)
...
FossilOrigin-Name: 93a3bf71d576096f4b5a3db256ca6f9b5521d137
2007-05-02 13:16:30 +00:00
drh
8cff382e7d
Fix some compiler warnings. Add the (untested) zeroblob() SQL function. (CVS 3895)
...
FossilOrigin-Name: 6f4f8ba7ec15f214f36fa78e593dd4522ab717f5
2007-05-02 02:08:28 +00:00
drh
b026e05eb2
Begin adding the zeroblob API to support incremental blob i/o. (CVS 3894)
...
FossilOrigin-Name: 7a01836dde45098796693bc6cb6045c4059adf1a
2007-05-02 01:34:31 +00:00
danielk1977
b4e9af9ff9
First approximation of incremental blob IO API. (CVS 3892)
...
FossilOrigin-Name: c444836e7b690c16dd6acff571c613a23beb42dc
2007-05-01 17:49:49 +00:00
drh
c80f058db3
The pager takes the sector size to be the larger of the sector size
...
reported by sqlite3OsSectorSize() and the page size. (CVS 3890)
FossilOrigin-Name: e5e6af55ccc5c1a8a9206b42f1dd7bf547cb97ca
2007-05-01 16:59:48 +00:00
drh
276fdbfd61
Fix a potential segfault following a malloc() failure during a call
...
to sqlite3_prepare() where the nBytes parameter is positive but less than
the length of the input SQL string. (CVS 3888)
FossilOrigin-Name: 27bf3fc3cf3c9c7acdbf9281a4669c9f642b0097
2007-04-30 21:39:16 +00:00
danielk1977
8c0a959f35
Try to avoid reading pages when moving overflow chains to the free-list. (CVS 3886)
...
FossilOrigin-Name: 8cccec68bd9073b2b19d3d31cf0b77b0ce76172e
2007-04-30 16:55:00 +00:00
danielk1977
b4626a3e16
Add some tests (and 2 resulting bug fixes) to incr vacuum mode. (CVS 3885)
...
FossilOrigin-Name: 89b1b3f897bda1fffceb9cf72fa4d42b809ccb8e
2007-04-28 15:47:43 +00:00
drh
d1e3a616ca
Internationalize the TRIM functions. Ticket #2323 . (CVS 3883)
...
FossilOrigin-Name: ff1f4e744728c8f55afae265246797b30fe98fb0
2007-04-27 21:59:52 +00:00
drh
9310ef23e2
Make sure sqlite3_value_bytes() does not reformat the content after a
...
call to sqlite3_value_blob(). Add documentation to explain this hazard.
Add many new tests. Ticket #2321 . (CVS 3880)
FossilOrigin-Name: e92bd97a3726bbb7978489e2994747127c4aefcf
2007-04-27 17:16:20 +00:00
danielk1977
e5321f0e75
Modifications to btree integrity check so that it can be run inside a transaction after an incr vacuum. (CVS 3878)
...
FossilOrigin-Name: 4d4180d6474d8d74460fb9333580b9b60c89f353
2007-04-27 07:05:44 +00:00
drh
709cff33dc
The replace() function should return NULL if the second argument is an
...
empty string. Ticket #2324 . (CVS 3877)
FossilOrigin-Name: e6a0c90dd9b4f7efe2153dd0c899b6e3d9846bd8
2007-04-27 01:18:02 +00:00
danielk1977
dddbcdcc68
Add largely untested code for the incremental vacuum function. (CVS 3876)
...
FossilOrigin-Name: f6a6d2b8872c05089810b1e095f39011f3035408
2007-04-26 14:42:34 +00:00
drh
d33d5a8978
In the pager, load the content of pages which were initialized with
...
noContent==1 if they are subsequently requested with noContent==0. (CVS 3875)
FossilOrigin-Name: d0745a43b6e037d16e1ec38c7c4d961a80d1ef48
2007-04-26 12:11:28 +00:00
drh
7a521cfb79
Fix segfaults that can occur if a malloc failure happens just before
...
a built-in function calls sqlite3_value_text(). (CVS 3874)
FossilOrigin-Name: 9cb0ed6ee9827bc6884a0195044d5b6ad0de698e
2007-04-25 18:23:52 +00:00
drh
e0e11e2df6
Fix a bug in the sqlite3_changes() function reported on the mailing list. (CVS 3868)
...
FossilOrigin-Name: 58ea768c3e9905bd9db137f1b31dd3dd6c6001d0
2007-04-25 11:28:16 +00:00
drh
1831f18c84
This fixes a missed case in check-in (3866). Do not apply patch (3866)
...
without also applying this patch. (CVS 3867)
FossilOrigin-Name: 66c2fa0836089f360b1c3343df84b73e8d89b293
2007-04-24 17:35:59 +00:00
drh
309169a118
When the write_version flag in the database header is larger than what
...
the library understands, make the database read-only. The old behavior
was to make the database unreadable. (CVS 3866)
FossilOrigin-Name: 10648e99929b4f640855433b6e47702687039286
2007-04-24 17:27:51 +00:00
drh
af30469d67
Get the build working with -DSQLITE_OMIT_UTF16=1. Ticket #2314 . (CVS 3865)
...
FossilOrigin-Name: 25c1c7aaa8ef203120c2c242cf72ce4750f78abd
2007-04-23 23:56:31 +00:00
drh
cad651e022
Remove the ARRAYSIZE macro from where.c to avoid a name conflict with
...
microsoft header files. Ticket #2311 (CVS 3863)
FossilOrigin-Name: 9389a15f35f854c88440e365d85b48af3ff76b00
2007-04-20 12:22:01 +00:00
danielk1977
0b83fa8297
Better fix than (3860) for the same problem. (3860) could leave file-handles open in some circumstances. (CVS 3861)
...
FossilOrigin-Name: 5ad645339b2a3a280651447dceda67645ff8e96d
2007-04-19 14:48:37 +00:00
danielk1977
4ea0d2e528
Fix a crash that can occur if an error happens in a virtual table xSync() function. (CVS 3860)
...
FossilOrigin-Name: d1afdd8c9c756409275c116e662fc1e04bbe829e
2007-04-19 14:28:08 +00:00
danielk1977
7e29e9561c
Fix a bug whereby sqlite3_prepare_v2() could return both an out-of-memory error and a valid statement handle. (CVS 3858)
...
FossilOrigin-Name: 8795d11c3c5bb39d34bc5194621ce97097a320e7
2007-04-19 11:09:01 +00:00
drh
e960153ba2
Get the build working with SQLITE_OMIT_SHARED_CACHE. Ticket #2307 . (CVS 3857)
...
FossilOrigin-Name: b623538c559498b858fd9088faf0f3457b024968
2007-04-19 00:24:34 +00:00
drh
5ffb3ac844
Fix a && where & was intended. This is a real problem, but it would be
...
very difficult to devise a test case where it might lead to an unexpected
result. Ticket #2306 . (CVS 3856)
FossilOrigin-Name: 7f9f0444ed1a85ed682b604fded535bff5be1535
2007-04-18 17:07:57 +00:00
danielk1977
7fa5dd1a8f
Better handle malloc() failures in the "echo" virtual table test module. (CVS 3855)
...
FossilOrigin-Name: 6881f9212fea0e0a98045b0acc60151eeaf5839e
2007-04-18 17:04:00 +00:00
drh
83968c44a5
The sqlite3_step() routine reports SQLITE_ERROR after a commit failure,
...
not SQLITE_DONE. This fix only effects the legacy sqlite3_prepare()
interface. It already worked correctly with sqlite3_prepare_v2(). (CVS 3854)
FossilOrigin-Name: 165dc72d7024258e225c8a7d60118071282f0f44
2007-04-18 16:45:24 +00:00
danielk1977
417d724069
Fix an assertion failure caused by (3851). (CVS 3852)
...
FossilOrigin-Name: 24683f1d29c5d312d6cabe2dde52d7c0424f629a
2007-04-18 14:47:23 +00:00
danielk1977
0125683288
Minor changes (mainly to assert() macros) to handle malloc failure in vtab operations. (CVS 3851)
...
FossilOrigin-Name: 175156d1fcaadab3b955597abb27f6b9043bbb5b
2007-04-18 14:24:32 +00:00
danielk1977
896e792463
Avoid reloading the db schema after a failed OP_VerifyCookie if the in-memory schema cookie already matches the database file. (CVS 3849)
...
FossilOrigin-Name: 61c1d06d10257575e1406303af331bcc4d00deb0
2007-04-17 08:32:33 +00:00
drh
5ea2df9107
Fix a memory leak introduced by (3842) associated with ticket #2296 . (CVS 3848)
...
FossilOrigin-Name: cdc7608b8d590b2ca19be37f94f2cd17423ba8ac
2007-04-16 17:07:55 +00:00
danielk1977
113e545f45
Add test cases to make sure virtual tables cannot be used in shared-cache mode. (CVS 3847)
...
FossilOrigin-Name: 66e468adfcf0132e558a666b847ce7c1e024d6fd
2007-04-16 15:49:41 +00:00
danielk1977
a04a34ff1a
Ensure sqlite3_finalize() can be called from within the xDisconnect() method of virtual tables. (CVS 3845)
...
FossilOrigin-Name: 8d6c3bfc4dfdd380a2915d778e256d3e49d22d72
2007-04-16 15:06:25 +00:00
drh
86a88114fa
Detect database file changes using a 128-bit segment of the file header
...
that includes the change counter. Ticket #2303 . (CVS 3844)
FossilOrigin-Name: e44995debf2456e55b502783849e93a045a527c8
2007-04-16 15:02:19 +00:00
drh
94ccde58d0
Match ORDER BY terms to columns using names in compound queries. Make sure
...
this works for subqueries, especially in the right-hand side of an IN
operator. Ticket #2296 . (CVS 3842)
FossilOrigin-Name: cfc6f933dc60ca88ae848f7f0c402e820437c2ff
2007-04-13 16:06:32 +00:00
drh
d215acf1f4
Fix a bug in autovacuum introduced by (3839). (CVS 3841)
...
FossilOrigin-Name: e39efa195a28f1cd7431b0811bd908dc7af3c8b1
2007-04-13 04:01:58 +00:00