Commit Graph

4026 Commits

Author SHA1 Message Date
drh
023ae03a72 Begin adding code to explicitly limit the size of strings and blobs. (CVS 3943)
FossilOrigin-Name: 031a5915b68ec6827fee38b8b9dc74a9e0e09302
2007-05-08 12:12:16 +00:00
drh
7a7364cee8 Fix a bug in the test logic introduced by check-in (3928). (CVS 3942)
FossilOrigin-Name: 47d1678d2d795196e51b7f0f185198f2b338636b
2007-05-08 11:27:15 +00:00
drh
c797d4dccd Begin implementing a new system of upper bounds on the capabilities
of SQLite.  By clearly defining the upper bounds, we make those
upper bounds explicitly testable.  This check-in is just infrastructure.
The upper bounds are not yet enforced. (CVS 3941)

FossilOrigin-Name: 93b623b232a43f78d2c90bfa2389dd5b28ad7280
2007-05-08 01:08:49 +00:00
drh
02d858364b Fix an NULL deref in the randomblob() function following a malloc failure. (CVS 3940)
FossilOrigin-Name: 011e7db253f9a60c19977215eab1687930f15637
2007-05-07 19:31:15 +00:00
danielk1977
7de68a097e Add a version of the LIKE operator to the icu extension. Requires optimisation. (CVS 3939)
FossilOrigin-Name: 3e96105c1f084a4ab4dad4de6f4759e43fc497f7
2007-05-07 16:58:02 +00:00
danielk1977
a393c03686 Change the name of create_collation_x() to create_collation_v2(). Also add some tests for it. (CVS 3938)
FossilOrigin-Name: ddc4e4797ff902692c4f0d86ec5f4e94cc7f0741
2007-05-07 14:58:53 +00:00
drh
9e91c756a1 Fix typo in Makefile.in. Ticket #2343 (CVS 3937)
FossilOrigin-Name: db51f59a7bb7530f919858e2c51057839f6c9f4d
2007-05-07 13:11:10 +00:00
danielk1977
2559136971 Add interface to configure SQLite to use ICU collation functions. (CVS 3936)
FossilOrigin-Name: b29a81b4fbb926fa09186340342848b9fe589033
2007-05-07 11:53:13 +00:00
drh
6885390791 Change sqlite3_snprintf() so that it does not write a zero-terminator if
the buffer size argument is less than 1.  Ticket #2341.  Added documentation
about the sqlite3_snprintf() function. (CVS 3935)

FossilOrigin-Name: f3ae4ac5fe0bfa2f91e76a6def86c444e51fe80b
2007-05-07 11:24:30 +00:00
danielk1977
a9808b31a8 Add the experimental create_collation_x() api. (CVS 3934)
FossilOrigin-Name: ff49d48f2f025898a0f4ace1fc227e1d367ea89f
2007-05-07 09:32:45 +00:00
drh
a58906a8dd Fix missing word in the copyright.html web page. (CVS 3933)
FossilOrigin-Name: 2d1348dda2cbdf958a15267432063f359550c303
2007-05-06 21:20:43 +00:00
drh
ad91c6cd40 Do not flatten subqueries that are part of a compound SELECT and which
have both an ORDER BY and a LIMIT clause.  Ticket #2339. (CVS 3932)

FossilOrigin-Name: 9600a998043c6dd1d5ecb03d1ee9a9273910243d
2007-05-06 20:04:24 +00:00
danielk1977
83852acc44 Add the start of the ICU extension. (CVS 3931)
FossilOrigin-Name: f473e8526770b6a332dfde3e1fd1ddf8df493e9a
2007-05-06 16:04:11 +00:00
drh
d230f648de Add "Powered By SQLite" logo contributed by Alberto Simoes. (CVS 3930)
FossilOrigin-Name: 25cfa7740a0899511d9200d99c2617c45ff00f32
2007-05-05 22:45:00 +00:00
drh
db6f6a7737 Fix a header problem introduced in the previous check-in. (CVS 3929)
FossilOrigin-Name: bece7a6bae3a52da03c25b577e15a648eb91805a
2007-05-05 18:49:53 +00:00
drh
16a9b8363d Factor out btree test logic into a separate test_btree.c file. (CVS 3928)
FossilOrigin-Name: d51274f1cc3a75f6a03e90259ce829ac1dacf78f
2007-05-05 18:39:25 +00:00
drh
59df4cda00 Fix a sprintf() problem introduced by (3916). (CVS 3927)
FossilOrigin-Name: 54a1d275aa0154a88d433a3c4df538d52c2c3ecb
2007-05-05 12:06:24 +00:00
drh
c4c6b2a23d Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from
util.c.  Expect much more to follow. (CVS 3926)

FossilOrigin-Name: ad549a40ed3500fb3d552ed19ff791d1280e0b62
2007-05-05 11:48:52 +00:00
drh
a315289571 Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from
util.c.  Expect much more to follow. (CVS 3925)

FossilOrigin-Name: 16041116aaaa2d52a289aa02a24bef579ba60896
2007-05-05 11:48:52 +00:00
drh
4500c430b0 Add documentation on the incremental vacuum feature. (CVS 3924)
FossilOrigin-Name: b3e2cdaed3638f033437b5561705cb253449c392
2007-05-04 19:16:30 +00:00
danielk1977
32a0d8bb8c Fix compilation and testing with OMIT_INCRBLOB defined. (CVS 3923)
FossilOrigin-Name: a0f8adc692839d0645daf0630533a87b0543f6e8
2007-05-04 19:03:02 +00:00
danielk1977
dcbb5d3f47 Test interaction of incremental io and other database writes. (CVS 3922)
FossilOrigin-Name: 4516416b4d38679ea7d259155f241e54c4c58d7d
2007-05-04 18:36:44 +00:00
drh
ca5557f91d Change incremental vacuum to be triggered by a pragma rather than a command.
We have a lot to learn about this yet and we do not want to paint ourselves
into a corner by commiting to specific syntax too early. (CVS 3921)

FossilOrigin-Name: b13e497a326697ab42b429993a1eee7df3c0c3eb
2007-05-04 18:30:40 +00:00
drh
744f2f4658 Tighter compression of the keyword hash table. (CVS 3920)
FossilOrigin-Name: 681216767d7fabfccb0b12f6a81b18b6d1c252bf
2007-05-04 17:07:52 +00:00
drh
9c61cd77a5 Optional parameter in the INCREMENTAL VACUUM statement specifies how many
pages to vacuum from the database. (CVS 3919)

FossilOrigin-Name: ed713f9ccb5d0f306a79ab9931e43db2327fb435
2007-05-04 16:14:38 +00:00
drh
847d3ab43d Get tests working with SQLITE_OMIT_AUTOVACUUM=1. (CVS 3918)
FossilOrigin-Name: b94d39e4d903bc34a9d0bbedd971677abc0ddfc0
2007-05-04 14:36:22 +00:00
drh
4f5c74e6ec Make "incremental" a fallback token so that you can set
"auto_vacuum=incremental"
without having to quote the "incremental". (CVS 3917)

FossilOrigin-Name: 9d7a2e2bb41e7baed2cdcf199cb04d7aef19c010
2007-05-04 14:14:45 +00:00
drh
5bb3eb9b9a Eliminate all uses of sprintf() and strcpy(). These were not being
misused.  But getting rid of them removes a library dependency.  And
it avoids warnings from the OpenBSD compiler.  Ticket #2336. (CVS 3916)

FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
2007-05-04 13:15:55 +00:00
danielk1977
92d4d7a92e Test cases and corrections to IO and malloc() error handling in incremental blob IO functions. (CVS 3915)
FossilOrigin-Name: 641e55284e1ba6070073c83ac6ed78ffb29f7e60
2007-05-04 12:05:56 +00:00
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
vapier
acf1a933ca fix from Gentoo for allowing TCLLIBDIR to be overridden in env (CVS 3911)
FossilOrigin-Name: e54a49e264ecd54083587f8d3b17cce4c811fddc
2007-05-03 20:06:11 +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
drh
3f75584a30 Get the amalgamation builder working with incremental I/O. (CVS 3908)
FossilOrigin-Name: 92b53601657be3f1be70873b2960cd97b97f72a1
2007-05-03 16:55:32 +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
cdf1c4d21f Minor bugfixes for incrblob mode. (CVS 3904)
FossilOrigin-Name: b84d597c902d60341607bc405440603868ac52c8
2007-05-03 11:43:34 +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
7a928d75f4 Fix an invalid UTF8 encoding in the tests for the trim function. (CVS 3898)
FossilOrigin-Name: 4dbbfff4a7d4be197aac19c80400dafe10dd5e58
2007-05-02 15:36:01 +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
shess
290283fe69 Enable prefix-search in query-parsing and snippet generation. If the
character immediately after the end of a term is '*', that term is
marked for prefix matching.  Modify term comparison in
snippetOffsetsOfColumn() to respect isPrefix.  fts2n.test runs prefix
searching through some obvious test cases. (CVS 3893)

FossilOrigin-Name: 7c4c65924035d9f260f6b64eb92c5c6cf6c04b7b
2007-05-01 18:25:52 +00:00
danielk1977
b4e9af9ff9 First approximation of incremental blob IO API. (CVS 3892)
FossilOrigin-Name: c444836e7b690c16dd6acff571c613a23beb42dc
2007-05-01 17:49:49 +00:00
shess
cc3e986643 Modify loadSegmentLeavesInt() to correctly handle prefix searching.
The new function docListUnion() is used to accumulate a union of the
hits for the matching terms, which will be merged across segments
using docListMerge(). (CVS 3891)

FossilOrigin-Name: 72c796307338c2751a91c30f6fb16989afbf3816
2007-05-01 17:14:59 +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
shess
0b6212090f Propagate prefix flag through implementation of doclist query code.
Also implement correct prefix-handling for traversal of interior nodes
of segment tree.  A given prefix can span multiple children of an
interior node, and from there the branches need to be followed in
parallel. (CVS 3889)

FossilOrigin-Name: cae844a01a1d87ffb00bba8b4e7b62a92e633aa9
2007-04-30 22:09:36 +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
shess
f055154108 Lift docListMerge() call out of loadSegmentLeavesInt() for prefix
search.  Doclists from multiple prefix matches will need a union merge
function, which will have to logically happen across a segment before
doclists are merged between segments. (CVS 3887)

FossilOrigin-Name: 7ddb82668906e33e2d6a796f2da1795032e036d5
2007-04-30 17:52:51 +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
shess
8ffcadb57e Break interior-node and leaf-node readers apart in loadSegment().
Previously, the code looped until the block was a leaf node as
indicated by a leading NUL.  Now the code loops until it finds a block
in the range of leaf nodes for this segment, then reads it using
LeavesReader.  This will make it easier to traverse a range of leaves
when doing a prefix search. (CVS 3884)

FossilOrigin-Name: 9466367d65f43d58020e709428268dc2ff98aa35
2007-04-27 22:02:57 +00:00
drh
d1e3a616ca Internationalize the TRIM functions. Ticket #2323. (CVS 3883)
FossilOrigin-Name: ff1f4e744728c8f55afae265246797b30fe98fb0
2007-04-27 21:59:52 +00:00
shess
ac7b2dd518 Lift code to traverse interior nodes out of loadSegment().
Refactoring towards prefix searching. (CVS 3882)

FossilOrigin-Name: 25935db73877c0cb132acb30c2fed2544d0e5e32
2007-04-27 21:24:18 +00:00
shess
1c7ebb0805 Refactor fts2 loadSegmentLeaf() in preparation for prefix-searching.
Prefix-searching will want to accumulate data across multiple leaves
in the segment, using LeavesReader instead of LeafReader is the first
step in that direction. (CVS 3881)

FossilOrigin-Name: 22ffdae4b6f3d0ea584dafa5268af7aa6fdcdc6e
2007-04-27 21:01:59 +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
ba6d351486 Extra tests for incremental vacuum. (CVS 3879)
FossilOrigin-Name: 40ba6493e9e8ba135552a2a0943ab499713ac001
2007-04-27 07:55:37 +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
0b3d55d4f9 Disable tests in misc7 that do not work on windows due to limitations of
the windows file system. (CVS 3873)

FossilOrigin-Name: 66646d6fda067e19240808aef65fafd8fa177cdd
2007-04-25 15:42:25 +00:00
drh
c9d96efd0b Version 3.3.17 (CVS 3872)
FossilOrigin-Name: 16979f4525652bfd6c6e5306eafc883bef3880aa
2007-04-25 12:07:22 +00:00
drh
2824d55a99 Fix a file descriptor leak in the exclusive2 test script. (CVS 3871)
FossilOrigin-Name: 2d2e68da74459340c262a6454fdd05149bc94c59
2007-04-25 12:06:58 +00:00
drh
cd9b721eb6 Preparing for the release of 3.3.17. (CVS 3870)
FossilOrigin-Name: e278c4ef601eebeb5a4f89baf8b29a6794c403f1
2007-04-25 11:42:32 +00:00
drh
b556ce15ca Fix duplicate test IDs in the test suite. No changes to code. Ticket #2319. (CVS 3869)
FossilOrigin-Name: 0935cdf82a0be599421881117a981d315933bb7e
2007-04-25 11:32:30 +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
6ed34c59c5 Add the ability to turn the FTS2 module into an amalgamation. (CVS 3864)
FossilOrigin-Name: 94374654ccabb391f5dcccfc88176ca677c5804e
2007-04-21 16:37:48 +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
shess
3b2f10cd8f Fix bug in fts2 handling of OR queries. When one doclist ends before
the other, the code potentially tries to read past the end of the
doclist.  http://www.sqlite.org/cvstrac/tktview?tn=2309 (CVS 3862)

FossilOrigin-Name: dfac6082e8ffc52a85c4906107a7fc0e1aa9df82
2007-04-19 18:36:32 +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
drh
5f7b5bf419 Comment changes in the ioerr tests. No changes to code. (CVS 3859)
FossilOrigin-Name: b7ed0e1e88a019c830f56abb14658104a30a1c43
2007-04-19 12:30:54 +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
drh
bc3d2b6ac9 Version 3.3.16 (CVS 3853)
FossilOrigin-Name: 8c6b5adb5c9e0322098e15a162e80a98259d7f60
2007-04-18 15:33:52 +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
drh
0403f54a8a Bump the version number and update documents in preparation for 3.3.16. (CVS 3850)
FossilOrigin-Name: 852100a332d9f602e5f6285d2b7e19a3060c6162
2007-04-18 13:49:37 +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
drh
505a112384 Make it clear in the docs that virtual tables and shared cache do not
play well together. (CVS 3846)

FossilOrigin-Name: 62ef2b1127e76eae0f76ac51f8238446763a3aac
2007-04-16 15:35:23 +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
9e4e6e502f Update the whentouse.html document to mention that less bitmap memory
is used for larger page sizes. (CVS 3843)

FossilOrigin-Name: 2c8e2a5be34cdfe11ef22bd6f78ec0519f497392
2007-04-14 12:04:39 +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
drh
6558db80c0 Additional tests designed to detect future performance regressions. (CVS 3840)
FossilOrigin-Name: 764e7262b93a7a5073128ecd4db265b0c728a701
2007-04-13 03:23:21 +00:00
drh
538f570cd1 Fix multiple performance regressions (ticket #2298 among them)
and add tests to make sure they do not come back. (CVS 3839)

FossilOrigin-Name: 32bb2d5859906b4fb0f6083eedd7f3a81b9cf5e2
2007-04-13 02:14:30 +00:00
drh
994c80af27 Changes toward fixes for tickets #2296 and #2291. (CVS 3838)
FossilOrigin-Name: 0dd3e2e47b09156838edfa4dea0d82f9cf22d94d
2007-04-12 21:25:01 +00:00
drh
6c1426fd14 Get the column affinities right when processing an IN operator where
the right-hand side is a subquery with an ORDER BY clause.  Ticket #2295.
This bug has likely been present since version 3.0.0 and it has just now
been noticed, so it seems to be a obscure case. (CVS 3837)

FossilOrigin-Name: 4062ddf3c7f4fd150292304fa33ca76dc35571a1
2007-04-12 03:54:38 +00:00
drh
694b19d86e Blind check-in of changes to fix #2294 - I have no ability to test.
Gentle wince users: please test this change and if it works leave a remark
on the #2294 ticket.  Tnx. (CVS 3836)

FossilOrigin-Name: ca56c3e2250eda0b312ab6f801b0fd95fb136bfa
2007-04-11 17:54:03 +00:00
drh
f33c9fad35 Preliminary fix for ticket #2291. This fixes the immediate problem. But
we really need to write more tests for the xfer optimization in order to
look for other related problems before closing this ticket. (CVS 3835)

FossilOrigin-Name: 34fec312fd1aeabb04e07d6aa061991775c7b8a1
2007-04-10 18:17:55 +00:00
drh
1eb2538a33 Be careful not to use the result of sqlite3_value_blob() after changing
the representation of an object.  Ticket #2290. (CVS 3834)

FossilOrigin-Name: e14374e4e6f14a90ecb53c2e7c86908a220c6d68
2007-04-10 13:51:17 +00:00
shess
6b6ab13353 Fix crash in delete when existing row has null fields. Previous code
assumed that the row had values in all columns, sigh.  Fixes bug
http://www.sqlite.org/cvstrac/tktview?tn=2289 . (CVS 3833)

FossilOrigin-Name: 81be7290a4db7b74a533aaf95c7389eb4bde6a88
2007-04-09 20:45:40 +00:00
drh
431e853715 Fix stack buffer overrun problem in the test harness. (CVS 3832)
FossilOrigin-Name: cad9faf3ad99b68be4618dff4b3497b15b9e6d9d
2007-04-09 20:30:11 +00:00
drh
a7e9c97a5a Version 3.3.15 (CVS 3831)
FossilOrigin-Name: ba5f4a55fad183a1698555b256f43f63451f5fc6
2007-04-09 13:49:33 +00:00
drh
860d3af3b6 Perparations for the release of 3.3.15. (CVS 3830)
FossilOrigin-Name: 8d0dea873d00404ad252d056422da2630f5e525f
2007-04-09 13:18:46 +00:00
drh
f53454438a Fix an obscure pager refcnt leak that occurs following a transient I/O
error. (CVS 3829)

FossilOrigin-Name: ce6f56ece8eab743d20cd2c0a84b4a266c4da2ff
2007-04-09 12:45:02 +00:00
danielk1977
9038bb647f Have the pager call xReiniter() instead of xDestructor() to restore btree level state after rolling back a page. (CVS 3828)
FossilOrigin-Name: 4e8941333ef053442877a2a696a2c68d403c7f4d
2007-04-09 11:20:54 +00:00
drh
e6895112fb Work around buggy TCL implementations in the exclusive2 test file. Ticket #2287 (CVS 3827)
FossilOrigin-Name: 5424fcc5f82e864e0a85a71e0ae39209200386c6
2007-04-08 16:52:22 +00:00
drh
271d8cb003 Make sure autovacuum is turned off for malloc5.test. (CVS 3826)
FossilOrigin-Name: 105a7efb090a5619e82a7e2931d4d3e080e6465a
2007-04-07 17:44:27 +00:00
danielk1977
f35843b578 For filesystem databases, do not store a list of pages in the statement journal in main memory. (CVS 3825)
FossilOrigin-Name: 0af764a02695281b0a7d70ef4e7f8229fd3d6a30
2007-04-07 15:03:17 +00:00
drh
1e9daa6ab5 Changes to test scripts to support alternative configurations. (CVS 3824)
FossilOrigin-Name: 3471a2269fb6b3769b59b70992e6da3bdebea7df
2007-04-06 21:42:22 +00:00
drh
bb5f18d2ca Additional coverage testing. (CVS 3823)
FossilOrigin-Name: 26b2e1aede3f776134b2d6e941d17a907843e650
2007-04-06 18:23:17 +00:00
drh
15926590ed Binary file I/O infrastructure added and used to increase test coverage
for detection of corrupt database files. (CVS 3822)

FossilOrigin-Name: 479b3d965b19c3ec4cb72542718751debf8ff75c
2007-04-06 15:02:13 +00:00
drh
60218d2a0e The FOR EACH STATEMENT clause in a trigger is now a syntax error. It used
to be silently ignored.  STATEMENT is no longer a keyword. (CVS 3821)

FossilOrigin-Name: 8e2559b4da6329d7c21925d0850f7f91a3731975
2007-04-06 11:26:00 +00:00
drh
05f7c19a6e Test coverage improvements. Over 90% of branches are now executed in
both directions. (CVS 3820)

FossilOrigin-Name: a776d93ccae3bfa6e992cdd1387571dd21561f98
2007-04-06 02:32:33 +00:00
drh
77a2a5e73c Changes to increase test coverage. (CVS 3819)
FossilOrigin-Name: fd4da6b13499af2397d52cb0f25f8ff6f2192431
2007-04-06 01:04:39 +00:00
drh
8c4d3a6b42 Make sure the sqlite3BtreePrevious() routine terminates properly if the
table is deleted out from under it.  Ticket #2286.  This bug was discovered
while trying to increase test coverage from 98.5% to 99% - once again
showing the value of full coverage testing. (CVS 3818)

FossilOrigin-Name: bebf8d2f886ed9fe1b96e4cb11ab3de2f2f7d2c8
2007-04-06 01:03:32 +00:00
drh
bd08af4871 Fix the amalgamation so that it works with -DSQLITE_ENABLE_REDEF_IO. Change
tclsqlite.c so that it can be appended to the amalgamation.  Create a new
amalgamation of header files for use by projects that want to redefine their
own I/O interface using -DSQLITE_ENABLE_REDEF_IO. (CVS 3817)

FossilOrigin-Name: f2caff870c81c08ec85aae72986c231ee986b251
2007-04-05 21:58:33 +00:00
drh
93d57531f7 Add a target to the autoconf-generated makefile for amalgamation. (CVS 3816)
FossilOrigin-Name: 204e7d38aeb40d126b80a869958ca79cd0902d83
2007-04-05 18:34:58 +00:00
drh
c6ba55f4e0 New testfixture command: sqlite3_pager_refcounts. Returns a list of
integers which is the pager refcount for each pager in the database. (CVS 3815)

FossilOrigin-Name: 7338e68e0fd9263236f12f8911cb8293747dd1a4
2007-04-05 17:36:18 +00:00
danielk1977
e180dd9396 Always truncate the pager cache when truncating the database file. Also reorganize the code to check the change-counter after first obtaining a shared lock. (CVS 3814)
FossilOrigin-Name: 9dc4100eff71be579480ce7939c7da712d28f0ae
2007-04-05 17:15:52 +00:00
danielk1977
38ec0cb263 Use the MEMDB macro instead of OMIT_MEMORYDB in pager_recycle(). (CVS 3813)
FossilOrigin-Name: 97c5159816e211d9c71aa68db7c5e01df535d6a4
2007-04-05 14:29:42 +00:00
danielk1977
c551edc2c3 Avoid attempting to reclaim memory from in-memory databases in sqlite3_release_memory(). (CVS 3812)
FossilOrigin-Name: c20f7563c0ffa1df47df5464f1f1cc4703ffa9b4
2007-04-05 13:12:13 +00:00
danielk1977
5bb16fe41b Add some assert() statements to pager.c. (CVS 3811)
FossilOrigin-Name: 973b2a5fb56a1ed1fd10d062edcb6e6dad13f001
2007-04-05 11:54:42 +00:00
drh
7c4ac0c555 Improvements to coverage testing. (CVS 3810)
FossilOrigin-Name: 38af156da83a8469080ddb75a9a286be33ff6bef
2007-04-05 11:25:58 +00:00
danielk1977
3997b9bb6b Catch an IO error case introduced by (3808). (CVS 3809)
FossilOrigin-Name: 383a08e26083964e79bfe22156f5f554522fa1fb
2007-04-05 08:40:32 +00:00
danielk1977
2026cefaf8 Zero cached pages located beyond the end of the file before returning them. Ticket #2285. (CVS 3808)
FossilOrigin-Name: 5180810eeaa3dfe3d934af0732a920ae117ec69f
2007-04-05 05:46:14 +00:00
drh
5f9c1a2cbd Test coverage improvements. (CVS 3807)
FossilOrigin-Name: 25f49acc5662ed8dd321b83a60aeeab93a37e129
2007-04-04 01:27:44 +00:00
danielk1977
3fb79c8346 Add Tcl (flush) commands to exclusive2.test, which is failing on some systems but not others. (CVS 3806)
FossilOrigin-Name: 9e004c519a30257fe3230ac7af630d296e139c9e
2007-04-03 16:13:51 +00:00
drh
3f400ea5da Fix to Makefile.in so that "make test" works. (CVS 3805)
FossilOrigin-Name: f592dd2d997064cda57b549901a2bcc14498b650
2007-04-02 22:19:38 +00:00
drh
bdcc276e94 Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804)
FossilOrigin-Name: 96b678818c9a536b77f10b25256facf4bff1ff65
2007-04-02 18:06:57 +00:00
drh
c94d9c776c Fix a union initializer so that it works with the Borland compiler. (CVS 3803)
FossilOrigin-Name: a067f78bf6a45d68ee1337115704cda2041919f4
2007-04-02 17:54:56 +00:00
danielk1977
8d96eb0fac Add a different form of I/O tests. So far has failed to expose new bugs. (CVS 3802)
FossilOrigin-Name: 9e1295428f476dba21c28149c7983f66a9134559
2007-04-02 16:46:23 +00:00
drh
ee2ce18189 If preprocessor macro OS_OTHER is defined, then ignore OS_UNIX, OS_WIN, and
OS_OS2.  This makes it easier to add proprietary backends.. (CVS 3801)

FossilOrigin-Name: 4fdafd3f583b1ec4aa7fb6a9b5de2f52a375832b
2007-04-02 16:45:12 +00:00
drh
8fd5bd3608 Provide a compile-time option to enable exclusive access mode by default. (CVS 3800)
FossilOrigin-Name: 93a41510f02dc5649dbbc22c4e4fbee545bd76d8
2007-04-02 16:40:37 +00:00
drh
4cfaceb8b0 Version 3.3.14 (CVS 3799)
FossilOrigin-Name: 3dbf4f98accf3f4fd78e39448e68dd3bd85bdf10
2007-04-02 15:31:48 +00:00
drh
aaecb467e9 Changes to the download page. (CVS 3798)
FossilOrigin-Name: de8055bcd678034b1ba1fe40d46a7fb60ee598f8
2007-04-02 15:29:32 +00:00
drh
611c8caec3 Update the build scripts and the homepage in preparation for version 3.3.14. (CVS 3797)
FossilOrigin-Name: a154224b329423aef622be539f6e7dfb76dc4c21
2007-04-02 15:04:34 +00:00
danielk1977
aeba431fa9 Cover an extra case in sqlite3PagerMovepage(). (CVS 3796)
FossilOrigin-Name: 7313688bd03141381067c36800edf1621a2ea05e
2007-04-02 14:19:16 +00:00
danielk1977
cd1aa9000f Fix for #2281. This was a problem with the test-case only. (CVS 3795)
FossilOrigin-Name: c036db6251ca4671fc3388a4f37955c18adeca1d
2007-04-02 12:29:01 +00:00
danielk1977
ead8e3f45e Cover a corrupt-db case in pager.c. (CVS 3794)
FossilOrigin-Name: 84077fa1602756339a262bc4ab51b6b487edc637
2007-04-02 12:28:27 +00:00
drh
a55ca9e109 In the amalgamation, put date.c before os.c so that the time_t typedef
can be correctly resolved by windows compilers. (CVS 3793)

FossilOrigin-Name: 9c5697c70fa850ea700e8cc0c918791a1628ab10
2007-04-02 12:22:44 +00:00
drh
01fa4c349f If an IO error is encountered on a commit, close the journal so that it
persists and can (hopefully) rollback the failed transaction later. (CVS 3792)

FossilOrigin-Name: 22e10cc24e4407feb276abfa8cc9964f20c6e54a
2007-04-02 11:22:22 +00:00
danielk1977
08d31a2a6d Correctly handle the obscure case of a read-only hot-journal file. (CVS 3791)
FossilOrigin-Name: 4d8c6bf44ec00ec04e615983cb33425ca2c3998a
2007-04-02 11:08:58 +00:00
danielk1977
241687280b Fix a resource leak introduced by the change-counter optimisation. Also add some test coverage. (CVS 3790)
FossilOrigin-Name: ba0538a4977aefd6645554f1989f0a98b540b9cd
2007-04-02 05:07:47 +00:00
drh
3057aaaa9c Update the version number and change comments in preparation for the
release of 3.3.14. (CVS 3789)

FossilOrigin-Name: d9f6fdb72b29354921e6de40df5ed4f86b158a01
2007-04-02 00:53:18 +00:00
drh
61fc595fdd Fix some warnings about unused and uninitialized variables. (CVS 3788)
FossilOrigin-Name: 18aec1ddfb08b74f0ef9cf1215eac7af71449db3
2007-04-01 23:49:51 +00:00
drh
2c547df6cf Make unix builds threadsafe by default. (CVS 3787)
FossilOrigin-Name: ddfc3b2df0b37be66fc55bb216cdcb6ba67aa7fd
2007-04-01 18:46:19 +00:00
drh
19df335841 Fix typos in the amalgamation builder script. (CVS 3786)
FossilOrigin-Name: a5070a2d11b4dad550a889d5fc005302208b6d75
2007-04-01 01:57:41 +00:00
drh
dd92431a03 Improvements to the output of the speed tests. (CVS 3785)
FossilOrigin-Name: 1a4d8024b06488f17831b5d3d47e41c5f1134800
2007-03-31 22:34:16 +00:00
drh
e1521f4c05 Remove unreachable code from util.c. (CVS 3784)
FossilOrigin-Name: 82b7a6f05c737f6ad4a21f354e55ec268fa1b032
2007-03-31 22:33:48 +00:00
drh
98495b4a91 Add the amalgamation generator to the makefile. (CVS 3783)
FossilOrigin-Name: a0f3c960fa3e958e12bc488451ee2d637562909b
2007-03-31 22:29:05 +00:00
drh
970f72478a Fix the amalgamation so that it can be compiled with REDEF_IO enabled. (CVS 3782)
FossilOrigin-Name: 6a3d6142d8be18bf2a9913f0329bcce48867304b
2007-03-31 16:29:06 +00:00
drh
38def05454 Increase test coverage by statically defining SQLITE_BIGENDIAN and related
macros for ix86 platforms.  Still a run-time test for other architectures.
Need to add additional cases to cover other popular processors. (CVS 3781)

FossilOrigin-Name: 476e7c3fcc69d8b21d161c758aaa5ef7163abb15
2007-03-31 15:27:59 +00:00
drh
b3738b6c85 Improved test coverage for printf.c. (CVS 3780)
FossilOrigin-Name: c2badb208ff1207a1471410965947893b070ea50
2007-03-31 15:02:49 +00:00
drh
bd36ba69b0 The XFER optimization works if the target table lacks an integer primary
key and is not empty as long as it has no indices.  It always has and
continues to work if the target table was empty. (CVS 3779)

FossilOrigin-Name: 2c62ffcb865655e8b91aaf81601548ea540c6088
2007-03-31 13:00:26 +00:00
danielk1977
393f068912 More coverage for pager.c. (CVS 3778)
FossilOrigin-Name: 665b119a241a5a95f236b3ace1b25fc18ae6f0a3
2007-03-31 10:00:48 +00:00
drh
93553ad05b Fix a long-standing memory leak in the hash table. The leak only appears
following a malloc failure of a hash that copies its keys, which rarely
happens and so we have not previously noticed it. (CVS 3777)

FossilOrigin-Name: 2aae1964572f4d4d1eae090a997e0bd9a82a69b2
2007-03-31 03:59:23 +00:00
drh
bf700f3d3d Fix a large memory leak in the btree layer
that occurs following an I/O error when in shared cache mode. (CVS 3776)

FossilOrigin-Name: dce4cb84930116db99275f77141fd933bc84288e
2007-03-31 02:36:44 +00:00
drh
b63a53dcf7 Fix memory leaks in WHERE clause processing and in TRIGGER parsing. (CVS 3775)
FossilOrigin-Name: 6736f4547c0cc2123d1a19ed2d6915712718d22e
2007-03-31 01:34:44 +00:00
drh
331e8d6216 Remove vestiges of SQLITE_PROTOCOL from the test scripts. (CVS 3774)
FossilOrigin-Name: e5e8d56397acf041aeaf5361381eb22eb1554759
2007-03-30 20:46:13 +00:00
drh
4f0ee686c5 Remove vestiges of the SQLITE_PROTOCOL error. (CVS 3773)
FossilOrigin-Name: 6dfd4a12a8a03c204505e7a211e179b7dd47e4fb
2007-03-30 20:43:40 +00:00
drh
0e3a6f3f53 Fix a memory leak that occurs after a malloc failure in trigger parsing. (CVS 3772)
FossilOrigin-Name: 407a85e69b7a1229218a5ce9a9e31255c7070294
2007-03-30 20:40:34 +00:00
drh
c416ba97bf Fix a memory leak in multi-database commit. Also enhance a comment that
explains why a particular valgrind error is harmless. (CVS 3771)

FossilOrigin-Name: 28c7ed1eb799203a569cdae97da974b347f39579
2007-03-30 18:42:55 +00:00
danielk1977
3546947df3 Coverage testing for a few lines in pager.c. (CVS 3770)
FossilOrigin-Name: c1aca18fad35be60066a08f5bd09772d24375af6
2007-03-30 18:21:52 +00:00
drh
1abd422d99 Remove asserts on the existing of journal files in pager - asserts that
are not valid for certain kinds of simulated I/O errors or for async I/O. (CVS 3769)

FossilOrigin-Name: f5fad52a97a16faddc2701ea0e05a301974eda1a
2007-03-30 17:18:50 +00:00
drh
a817e42a21 Get the memleak.test script working again after recent changes. (CVS 3768)
FossilOrigin-Name: cd6ca078e3402f06836b6b510a4a431f576f7219
2007-03-30 17:17:51 +00:00
danielk1977
95b289b684 Coverage tests for some pragmas. (CVS 3767)
FossilOrigin-Name: eec7ab63beed875a3b16c3bf8d28ac4f296dfb4c
2007-03-30 17:11:12 +00:00
drh
369339db34 Always enable exclusive access mode for TEMP databases. This cannot be
changed.  The locking_mode pragma has not effect on the TEMP database. (CVS 3766)

FossilOrigin-Name: 04d3b9098ed06d5be24253edde50ea61b4641df8
2007-03-30 16:01:55 +00:00
danielk1977
9bb8aecc35 Coverage improvements for where.c. (CVS 3765)
FossilOrigin-Name: df64894bacd8023cf3c5939f062c8463ff5cdc04
2007-03-30 14:56:34 +00:00
danielk1977
780b1d9416 Coverage improvements for where.c. (CVS 3764)
FossilOrigin-Name: 7e0aa964129612e2bad6fa45139d124f19cacd48
2007-03-30 14:56:34 +00:00
drh
3cdd7d37c6 Tease apart the two phases of pager commit. (CVS 3763)
FossilOrigin-Name: e5f17078a28b6a47d6943d40c526390c36258392
2007-03-30 14:46:01 +00:00
drh
80e35f4640 Refactoring the btree and pager routines into distinct two-phase commit
routines.  We've always done a two-phase commit - this change is just
making that more apparent in the code. (CVS 3762)

FossilOrigin-Name: 66b3ad09ea657d25d48cb75ec2671ea2dc1b6005
2007-03-30 14:06:34 +00:00
drh
b601861cc3 Make yypMinor available to the stack overflow callbacks in lemon
generated parsers.  This does not effect SQLite. (CVS 3761)

FossilOrigin-Name: 70c8c7e2ce5213778e63c200a6637849920deea6
2007-03-30 13:35:05 +00:00
drh
073d3efae4 Avoid using the "clock" command in test scripts since it is a proc in Tcl8.5
and is thus not available to testfixture. (CVS 3760)

FossilOrigin-Name: 339941d83ae397d69084f41483afb1ea44d44967
2007-03-30 13:01:32 +00:00
drh
a16313e505 Move the sqlite3_temp_directory global variable out of the OS porting layer
and into main.c so that it is more accessible to non-standard OS porting
layers. (CVS 3759)

FossilOrigin-Name: 23653f7aab6609f69948a7366bef9ebd0fd4d0b1
2007-03-30 11:29:32 +00:00
drh
3c024d6973 Remove the anonymous union from the sqlite3_value structure since some
compilers are unable to deal with it. (CVS 3758)

FossilOrigin-Name: 6b995259bc974519379dee55c1ef00d28c76bf21
2007-03-30 11:23:45 +00:00
drh
6e34599b33 Comment changes in btree.c and added a missing "else" in pragma.c. (CVS 3757)
FossilOrigin-Name: 9a7d7e31908e9bac14a68bbc2fb4e1ca593ea234
2007-03-30 11:12:08 +00:00
danielk1977
935ed5eafd Test coverage a few extra lines in where.c. (CVS 3756)
FossilOrigin-Name: ea49ddf64aa6073b8018dc2faaf199704d359412
2007-03-30 09:13:13 +00:00
danielk1977
b5584c0c69 Extra test cases to improve coverage of main.c. (CVS 3755)
FossilOrigin-Name: 19fc3d78962d225d42372b9298be5921ec1fc8a1
2007-03-30 07:10:50 +00:00
drh
e2396a1090 Assume any return code from fcntl() other than -1 is success. Formerly we
only assumed that 0 was success.  Ticket #2173. (CVS 3754)

FossilOrigin-Name: 8d0073c0e8408558dae39f789ac3fa2622b52365
2007-03-29 20:19:58 +00:00
drh
19c9e5694c Fix to token destructors in Lemon. This does not impact SQLite. Ticket #2175. (CVS 3753)
FossilOrigin-Name: 6195af49828bf04b61d24f116339780d3eb926a1
2007-03-29 20:13:53 +00:00
drh
a92993ca13 Add the sqlite3_clear_bindings() API to the loadable extension interface.
Ticket #2135. (CVS 3752)

FossilOrigin-Name: 3111b43ec333f3342f9609bf441160040f3d1501
2007-03-29 18:46:00 +00:00
shess
06c69d2ed6 Buffer updates per-transaction rather than per-update. If lots of
updates happen within a single transaction, there was a lot of wasted
encode/decode overhead due to segment merges.  This code buffers
updates in memory and writes out larger level-0 segments.  It only
works when documents are presented in ascending order by docid.
Comparing a test set running 100 documents per transaction, the total
runtime is cut almost in half. (CVS 3751)

FossilOrigin-Name: 0229cba69698ab4b44f8583ef50a87c49422f8ec
2007-03-29 18:41:03 +00:00
drh
3ceeb75680 Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make
the new OS-layer interface routine for finding sector size optional. (CVS 3750)

FossilOrigin-Name: 0fb9af1d6e20bf25511c6d2097937cc11137776e
2007-03-29 18:19:52 +00:00
drh
2ecad3b443 Make sure the strftime() date conversions put in leading zeros correctly.
Ticket #2276. (CVS 3749)

FossilOrigin-Name: e853067ec4db3eedfb4adcdd4172de2c55b9ac58
2007-03-29 17:57:21 +00:00
danielk1977
7152de8dd2 Avoid calling OsDelete() on journal files when they are opened for temporary databases. Fix for #2255. (CVS 3748)
FossilOrigin-Name: e746832f5f3e1c58e6f6456866156824d23dd846
2007-03-29 17:28:14 +00:00
danielk1977
69b637b56b Add a couple of test cases to improve coverage testing. (CVS 3747)
FossilOrigin-Name: 0b22ce3637f87c453084c5bd994b6b19a0b014c0
2007-03-29 17:07:52 +00:00
shess
194f8972d5 Don't call ctype functions on hi-bit chars. Some platforms raise
assertions when this occurs, and it's almost certainly not the right
thing to do in the first place. (CVS 3746)

FossilOrigin-Name: f6c3abdc6c5e916e5366ba28fb1cd06ca3554303
2007-03-29 16:30:38 +00:00
danielk1977
ae7fc49def Assume the malloc-failed flag cannot already be set when calling sqlite3_errmsg(16)(). (CVS 3745)
FossilOrigin-Name: 54fa22273d551e00e1abd86992ff7c62ec4e0daf
2007-03-29 15:00:52 +00:00
drh
42242ded5e Fix a bug in XFER optimization introduced by check-in (3736). (CVS 3744)
FossilOrigin-Name: 3714ac173289e580a0302a5a3beac05823d92c5b
2007-03-29 13:35:35 +00:00