drh
9afedcc0b8
Improved documentation on the VFS methods. Ticket #3925 . (CVS 6791)
...
FossilOrigin-Name: f66fc7713ec5ff8cf92e875e904f079d724b0477
2009-06-19 22:50:31 +00:00
drh
9eb8cbe5c0
Do now allow a COMMIT to occur while even a single write operating is
...
in progress. (CVS 6790)
FossilOrigin-Name: 605520ec04061e389226fbec59f7aedf674b3c4e
2009-06-19 22:23:41 +00:00
drh
bf66446972
Fix the comment on the sqlite3PExpr() subroutine. Ticket #3924 . (CVS 6789)
...
FossilOrigin-Name: 4bb96db6b4d2cfa71430a2646c1082a494e3519f
2009-06-19 18:32:54 +00:00
danielk1977
d6bee2174c
If a call is made to sqlite3PagerAcquire when there are no outstanding references to any pages and the pager is in the error-state, try to exit the error-state at this point. Previously this was only attempted if the pager was configured to use exclusive mode. (CVS 6788)
...
FossilOrigin-Name: 62db08bc0de936e4a418ae583a3bdbbf33d7787e
2009-06-19 17:50:01 +00:00
drh
8bfd719065
Make sure group_concat() ignores initial NULL values. (CVS 6787)
...
FossilOrigin-Name: 90c3b23ccac8a9e7fc1cc831e43888e4e43badc9
2009-06-19 16:44:41 +00:00
drh
8bfdf72136
Reorganize and cleanup the prepared statement object. Remove code that has
...
been commented out for ages and is no longer relevant to anything. (CVS 6786)
FossilOrigin-Name: 37ae5f5e8feb34a8e6e8b34aa18df1e9a1ce55cb
2009-06-19 14:06:03 +00:00
drh
0472b5ad3f
Fix a possible segfault when backing up an encrypted database. (CVS 6785)
...
FossilOrigin-Name: 7d8f178c8145b90da31f6557f7cd99d154eb676e
2009-06-19 02:25:48 +00:00
drh
37b89a0186
Make sure the sqlite3VdbeGetOp() subroutine works even when SQLite is
...
compiled with SQLITE_OMIT_TRACE. (CVS 6784)
FossilOrigin-Name: 1c8ec2a6e4efbb3fdc58f999b7b725fa5dc4d0e9
2009-06-19 00:33:31 +00:00
drh
0719ee29b6
Changes to the backup functionality so that it works better with codecs. (CVS 6783)
...
FossilOrigin-Name: 87d6796d986e4d5238252e704d936ab4407a0265
2009-06-18 20:52:47 +00:00
drh
fa9601a9a6
Move codec management from database connections into the pager so that it
...
will work together with shared cache. (CVS 6782)
FossilOrigin-Name: ed08b53cd64c4ff2c94ef4e48441c5236041c9ca
2009-06-18 17:22:39 +00:00
drh
ccf6d0934d
Update the filefmt.test test script to conform to the previous check-in. (CVS 6781)
...
FossilOrigin-Name: 40a40e81b3ad80114422d6a48146e5fb27e2551d
2009-06-18 11:34:42 +00:00
drh
b33e1b99b0
Reduce the minimum usable page space to 480 byte from 500 bytes. (CVS 6780)
...
FossilOrigin-Name: db4fb835363c9c7e38c891e01188a6e2db88472d
2009-06-18 11:29:20 +00:00
drh
830ecf9197
Remove the P3 operand from OP_IsNull since it was not being used. (CVS 6779)
...
FossilOrigin-Name: 767ef1e4a1b31abef479368d9f960ecfd6fa08c6
2009-06-18 00:41:55 +00:00
drh
a0c0652111
Avoid an assertion fault if an out-of-memory error occurs while trying
...
to run the string-concatentation operator on a zero-blob. (This is an
absurd thing to do, but even so, we still should not fault.) (CVS 6778)
FossilOrigin-Name: 0def0b76b9f4de9ee259ab1cbe71051fd58b73be
2009-06-17 22:50:41 +00:00
drh
3a9cf17d7c
Fix a problem in vdbe.c that could cause a double-free of memory if the
...
SQLITE_LIMIT_LENGTH is changed after a statement is prepared but before
it is run. Also remove debugging statements from tkt3841.test. (CVS 6777)
FossilOrigin-Name: 3d7327fd6af983d5ce9bc9a2ba869b23c44cc8e6
2009-06-17 21:42:33 +00:00
drh
94c3a2b16f
Use caution to avoid integer overflow when doing real to integer affinity
...
operations. Ticket #3922 . (CVS 6776)
FossilOrigin-Name: 392559465d499f491907ef7f42d37a1a6c699511
2009-06-17 16:20:04 +00:00
drh
042d6a1f0f
Fix a potential segfault following database corruption. Problem
...
made visible by check-in (6772). (CVS 6775)
FossilOrigin-Name: 69eb0ff817cff6266c53b79047bcff5e5d54b618
2009-06-17 13:57:16 +00:00
drh
0d588bbc38
Suppress some -Wextra compiler warnings from GCC. (CVS 6774)
...
FossilOrigin-Name: 59ec937ce226bbf6c48c5e0466d3bab48873c9ea
2009-06-17 13:09:38 +00:00
danielk1977
11a8a8660c
Fix a bug affecting secure-delete mode introduced by (6768). (CVS 6773)
...
FossilOrigin-Name: a433ca821c134caeac0fa16416eb95c647416b95
2009-06-17 11:49:52 +00:00
danielk1977
e576521d96
Fix for #3918 . Also, fix the TRACE macros in balance_nonroot(). (CVS 6772)
...
FossilOrigin-Name: 368e44ec2e648b04f3b817f82586ccd864e60c89
2009-06-17 11:13:28 +00:00
drh
b5092d18a4
A minor simplification to the tokenizer. (CVS 6771)
...
FossilOrigin-Name: 18f2076ac21dd0ab343a79461837f5591f9d4d87
2009-06-17 01:17:13 +00:00
drh
58fbb314ae
Changes to prepare.c and callback.c to promote better test coverage. (CVS 6770)
...
FossilOrigin-Name: 08cca219f16efab93cb00f04d2e2f8033893e5f1
2009-06-17 00:35:30 +00:00
drh
9da742f969
Changes sqlite3_prepare_v2() (and related routines) so that if it fails due
...
to a missing table and the schema is out of date, it retries once before
returning SQLITE_SCHEMA. Other changes to prepare.c to facilitate coverage
testing. (CVS 6769)
FossilOrigin-Name: 256ec3c6af41c2324db82e4deb54edbba5b581e8
2009-06-16 17:49:36 +00:00
danielk1977
4dbaa89005
Changes to balance_nonroot() and BtreeDelete() to simplify delete operations and reduce stack/heap usage while balancing b-tree structures. (CVS 6768)
...
FossilOrigin-Name: 092b276e7d89bbfa3d8637a90ee5d458935a12a9
2009-06-16 16:50:22 +00:00
shane
e26fa4c959
Fix a link error and warning that can occur in where.c when compiling under MSVC with SQLITE_OMIT_VIRTUALTABLE defined. Ticket #3914 . (CVS 6767)
...
FossilOrigin-Name: 793c93be16af535e102dba147125384f6814cf5f
2009-06-16 14:15:22 +00:00
danielk1977
0d7d3a3315
Leave out a redundant line in build.c. Ticket #3916 . (CVS 6766)
...
FossilOrigin-Name: d9f997aeb7a2195d0e16fe1555626918902b4f91
2009-06-16 04:35:39 +00:00
danielk1977
cb55799952
Remove a duplicate assert from btree.c. Ticket #3915 . (CVS 6765)
...
FossilOrigin-Name: d89542cd8b2efaea7c6be6cd7787d183c55ae36a
2009-06-16 04:31:49 +00:00
drh
f7828b5cd6
Additional updates to the symbol resolver and expression tree walker to
...
facilitate test coverage. (CVS 6764)
FossilOrigin-Name: a49c2d4befcc33dd98543fe7b4d4f0bae56f1a90
2009-06-15 23:15:59 +00:00
drh
0b3bf92417
Changes to allow a clean compile with no floating-point instructions
...
generated when SQLITE_OMIT_FLOATING_POINT is used. (CVS 6763)
FossilOrigin-Name: 1591b8322babebc45df3b799cc5e457288f28594
2009-06-15 20:45:34 +00:00
drh
73c0fdc7fa
Updates to resolve.c to facilitate full coverage testing. (CVS 6762)
...
FossilOrigin-Name: c50f0f28df1dfdccf1d159c983b616cd9b823955
2009-06-15 18:32:36 +00:00
shane
8509570763
Fix compiler warnings with MSVC build. (CVS 6761)
...
FossilOrigin-Name: e1e6430752449a34671b6c89326b03ac36ea6d9a
2009-06-15 16:27:08 +00:00
drh
1faecd9c50
Version 3.6.15 (CVS 6760)
...
FossilOrigin-Name: aff34826aa4667d24f0dbc8bea828dc0f84d2108
2009-06-15 03:28:57 +00:00
drh
0444610098
Update the configuration script for version 3.6.15. (CVS 6759)
...
FossilOrigin-Name: 14df65dc04e1a944baf4fb7185a0df5a96059346
2009-06-15 00:04:06 +00:00
drh
eac74428c1
Detect database corruption and abort balance_nonroot() before the
...
corruption causes problems. (CVS 6758)
FossilOrigin-Name: 3448b39dcd580880a9326414e7e4952c4fbc313d
2009-06-14 12:47:11 +00:00
drh
c53eed1703
Change lemon so that it does not generate yytestcase() macros on destructor
...
cases since destructors are commonly unreachable in a reasonable grammar.
For the reduce-rule switch, gather all no-ops into the "default:" case. (CVS 6757)
FossilOrigin-Name: caebfe82cb1b1215a85ed48fe97360c5422c52e0
2009-06-12 17:46:19 +00:00
drh
7501301e8d
The previous check-in ((6755)) put in more yytestcase() macros than are
...
called for. This check-in addresses that problem. (CVS 6756)
FossilOrigin-Name: a5b182f93b9e57754c8b9507cf491a7bbf0fd127
2009-06-12 15:47:34 +00:00
drh
8a415d3743
The lemon parser generator now inserts yytestcase() macros on reduce action
...
and on each destructor, to verify that all have been executed. yytestcase()
is a no-op by default but can be set to something more useful inside
of %include. (CVS 6755)
FossilOrigin-Name: fe9c9177340a3dc372ffa1b851030d005e0c46db
2009-06-12 13:53:51 +00:00
drh
1441f3e083
In lemon: omit unused entries from the end of the yyFallback array. (CVS 6754)
...
FossilOrigin-Name: 9cfbe2ba68470a2850a7d7a64eb088f7b422a3e5
2009-06-12 12:50:50 +00:00
drh
994704d1cb
Enable the SQLITE_LIMIT_FUNCTION_ARG limiter. (CVS 6753)
...
FossilOrigin-Name: a17e3317176772446abdc8ebe6fb6f0d3b7ac018
2009-06-12 12:04:16 +00:00
drh
8be4f639d9
Remove a C++-ism from the code. Ticket #3912 . (CVS 6752)
...
FossilOrigin-Name: bc729bc3e6f6e3570103e646080eb119311b0fa7
2009-06-12 11:42:11 +00:00
drh
13d32d196e
An additional memory leak in the parser fixed. Ticket #3911 . (CVS 6751)
...
FossilOrigin-Name: 6197b492714e16396941ae6ba61f90f708d54728
2009-06-12 03:47:36 +00:00
drh
c3a8402a94
Make sure nested queries with USING clauses do not leak memory.
...
Preliminary fix for ticket #3911 . (CVS 6750)
FossilOrigin-Name: bd341a103c25395b1189d05edebfe4af8a943941
2009-06-12 03:27:26 +00:00
drh
d3ec02d38e
Modifications to the parser to eliminate unreachable code. (CVS 6749)
...
FossilOrigin-Name: 457e0b245b1833c0d297bc6f4ff9785e6a2cee02
2009-06-12 02:27:14 +00:00
drh
aed2460877
Honor the SQLITE_OPEN_READONLY flag even on a :memory: or temporary database,
...
even though such a database is pointless. Ticket #3908 . (CVS 6748)
FossilOrigin-Name: 73ba841ac1ed39fb09b3917bafe0ce349e88eb04
2009-06-11 17:32:45 +00:00
drh
2c1a0c568f
Add an ALWAYS() to a conditional in where.c. (CVS 6747)
...
FossilOrigin-Name: 1fdb3e1e9af0672072f133dde06594fea2ef13c5
2009-06-11 17:04:28 +00:00
drh
85d2bd22f1
Changes to reenable codec operation and to handle memory allocation
...
failures within a codec. (CVS 6746)
FossilOrigin-Name: 43a6ca98b1a6aff1f0f674ecabdc929efb314db7
2009-06-11 00:47:20 +00:00
drh
5901b571d4
Do not let the reverse_unordered_selects pragma force the use of an index that
...
would not otherwise be used. Ticket #3904 .
Also: remove an test which is always true. (CVS 6745)
FossilOrigin-Name: 78a391dca05dbe3ad1d8124b80b31bc2ce75778f
2009-06-10 19:33:28 +00:00
drh
85119c32ad
Remove a NEVER() that can sometimes occur on an OOM error. (CVS 6744)
...
FossilOrigin-Name: c27f23bbafd2e4fa453c8e3b83667ea8173183a7
2009-06-10 11:07:00 +00:00
danielk1977
e56b60ecb8
Minor tweak to balance_quick() to save a few instructions. (CVS 6743)
...
FossilOrigin-Name: 9ace995910c8b0b9e95dc20fd70be487199e37af
2009-06-10 09:11:06 +00:00
drh
6860da015f
Remove the actual checks that verify that memory pools (such as set up
...
using SQLITE_CONFIG_HEAP) are 8-byte aligned. But document that 8-byte
alignment is required. (CVS 6742)
FossilOrigin-Name: e9b55ccc8b6d4f21c9c8f8e7ba053475833fc833
2009-06-09 19:53:58 +00:00
shane
75ac1de0ad
Fix compiler warnings with MSVC build. (CVS 6741)
...
FossilOrigin-Name: 0bd84e7387802c58c820369ff27ef54adbdf2e96
2009-06-09 18:58:52 +00:00
shane
68c0273755
Avoid a false failure report in the test scripts caused by the vdbe stack "compression" script. (CVS 6740)
...
FossilOrigin-Name: 9d3329891c2227a1a3ded1c636ac615864010ca7
2009-06-09 18:14:18 +00:00
drh
39bf74a288
Require that the buffer specified by SQLITE_CONFIG_HEAP be 8-byte aligned. (CVS 6739)
...
FossilOrigin-Name: 18b78068cc94de51f081824c93f7b14c7c35726d
2009-06-09 18:02:10 +00:00
drh
19f81f6cdd
Changes to tokenize.c to facilitate full coverage testing. (CVS 6738)
...
FossilOrigin-Name: 5e8c48cff7e96e6030b796dba409844f4c758a60
2009-06-09 18:01:37 +00:00
danielk1977
b46d004548
Change savepoint4.test to limit database growth. Otherwise the test can take a very long time to run, depending on the prng. (CVS 6737)
...
FossilOrigin-Name: ed1d4f47ee9a2bcafdee92ee6bfcb2b0d1758f76
2009-06-09 15:25:33 +00:00
drh
9bb6697ac6
Modify mkkeywordhash.c so that it puts the original text of each token in
...
a comment beside the "testcase()" macros. (CVS 6736)
FossilOrigin-Name: a7d0817c176832a88788cc973c0aae8dcab57364
2009-06-09 14:27:41 +00:00
drh
3b2a3fa42e
Enable cell overflow checking in sqlite3BtreeInitPage() using the
...
compile-time option SQLITE_ENABLE_OVERSIZE_CELL_CHECK. Change the tests
so that they recognize different error messages depending on the setting
of this macro. (CVS 6735)
FossilOrigin-Name: 56bff6eb2fc5f0afbd96afc986671ec744bd40e1
2009-06-09 13:42:24 +00:00
danielk1977
80929b3de9
Avoid calling fillInCell() to create an internal node intkey cell from balance_nonroot(). A single putVarint() does the same thing more quickly. (CVS 6734)
...
FossilOrigin-Name: 2e5d42aeb40c3c6eea373a9ae3fbdf4e8087cd58
2009-06-09 11:34:10 +00:00
drh
f061be9c6f
Only do the cell overread checks in sqlite3BtreeInitPage if
...
SQLITE_OVERREAD_CHECK is defined at compile-time. (CVS 6733)
FossilOrigin-Name: 49f544ebae8dc3cf7cf6189536c56ebb7d258a86
2009-06-09 10:37:03 +00:00
danielk1977
6067a9bbfe
Do not clear the MemPage.nFree variable when insertCell() adds an overflow cell to a page. Not doing this means balance_quick() can avoid a call to sqlite3BtreeInitPage(). (CVS 6732)
...
FossilOrigin-Name: 8f1c1f61f7bc5270212725cf0a056872df983f49
2009-06-09 09:41:00 +00:00
drh
254993e2e5
Additional comments to clarify the operation of the LIKE optimizer in
...
where.c. (CVS 6731)
FossilOrigin-Name: cc9c12170c3f6f0f485977e47e7fbb75c50e82b1
2009-06-08 19:44:36 +00:00
drh
4e8be3bb5d
Clarification of the operation of the OR-term optimizer in where.c. (CVS 6730)
...
FossilOrigin-Name: 6b42dc3d04e98f91c203c277926ed6ead62a9270
2009-06-08 17:11:08 +00:00
danielk1977
a50d9aa784
Change the btree balance code so that it does not call balance_nonroot() recursively. (CVS 6729)
...
FossilOrigin-Name: 7863db904d6fc36417c923e3d135eb2c145b9013
2009-06-08 14:49:45 +00:00
drh
b054068d21
Increase the version number to 3.6.15 in preparation for the next release. (CVS 6728)
...
FossilOrigin-Name: 456ea541d67221a573b63e264c83f4448f2ed569
2009-06-08 12:52:47 +00:00
drh
c4ac22e905
Disable the LIKE optimization if the affinity of the LHS column is
...
not TEXT. Ticket #3901 . (CVS 6727)
FossilOrigin-Name: a255c645c46ae03b65f862858fe57e462076e1fc
2009-06-07 23:45:10 +00:00
drh
49008596ed
Update the error message on one of the corruption tests to account for the fact
...
that we are finding the corruption sooner. (CVS 6726)
FossilOrigin-Name: ba9848e7b89df1fb6bf6db2b9d66cd3ffce375df
2009-06-06 19:21:13 +00:00
danielk1977
08746af43b
Fix an error in the malloc.test test script causing a small buffer overread. (CVS 6725)
...
FossilOrigin-Name: 4d129bee696f3a537f7ea5501a387012fc08c27e
2009-06-06 16:08:22 +00:00
drh
125feffc89
Make sure the result of sqlite3VdbeGetOp() is not used as an array following
...
an OOM error, since after (6691) it might be a single-entry dummy opcode. (CVS 6724)
FossilOrigin-Name: 127b13981960a9690de09e8f9d0b38a4bd76015f
2009-06-06 15:17:27 +00:00
danielk1977
41f5b04ceb
When building in debug mode with gcc, force the nullMem variable in function columnMem() to be aligned to an 8-byte boundary. Otherwise an assert() statement may fail. (CVS 6723)
...
FossilOrigin-Name: 3fd6c72da599347af70897b30b86a4ba641d4cd9
2009-06-06 14:13:26 +00:00
drh
acfc72bea4
Detect when database corruption causes an attemp to set the pointer map
...
value for a pointer map page and report the corruption. (CVS 6722)
FossilOrigin-Name: 3ae4880bee3a0312c61cdd36f4fa50286cc2ef48
2009-06-05 18:44:15 +00:00
drh
dda70fe38e
Remove leftover "breakpoint" commands from test scripts. Also remove blank
...
lines at the end of scripts. (CVS 6721)
FossilOrigin-Name: 1fef16ec2b89981770cf44f606a420fbe031a7a4
2009-06-05 17:09:11 +00:00
drh
bfb19dc698
Do not cast an unsigned int into an int for comparison. (CVS 6720)
...
FossilOrigin-Name: 302ab855e62dfae8507800302dae479e0494b81a
2009-06-05 16:46:53 +00:00
drh
35cd643cc7
Take care that a corrupt variable-length integer does not cause 32-bit
...
integer overflow when parsing a record format, nor cause excessively large
memory allocations. (CVS 6719)
FossilOrigin-Name: 38b20327a80996c7044b88be32161ac4ac0ec3a9
2009-06-05 14:17:21 +00:00
drh
1662b5a6f9
Earlier detection of freelist corruption in the page allocation routines. (CVS 6718)
...
FossilOrigin-Name: e557c8e5846f9c4eaaeb3bd07614ac101bb0b3d0
2009-06-04 19:06:09 +00:00
drh
d46b6c23d3
Fix an assertion fault in balance_quick() that occurs when an interior
...
btree node has zero cells due to database corruption. Also update the
corrupt7.test result vectors for a couple of cases where the error report
on database corruption changed due to earlier detection. (CVS 6717)
FossilOrigin-Name: 1335e4440f5a3d24ce9ce187e0e23fc9b166ca98
2009-06-04 17:02:51 +00:00
drh
c85240dbf6
If the root page of a btree is empty and is also not a leaf page and the
...
page is not page 1, then report database corruption. (CVS 6716)
FossilOrigin-Name: 52b02ca5f3e5fdf2f3e02e9d8e016028d0842818
2009-06-04 16:14:33 +00:00
danielk1977
6f235cc5de
Reduce the stack usage of balance_quick(). (CVS 6715)
...
FossilOrigin-Name: e7ad68e93b19b59cb16205c4b48fd9d6492dbb02
2009-06-04 14:46:08 +00:00
shane
e71169ba30
Minor updates to comments in test scripts. (CVS 6714)
...
FossilOrigin-Name: 453ff88f73a01a54ff464563effdb63014b1972c
2009-06-04 02:47:03 +00:00
shane
bbc795fdaf
Minor tweak to test script to ensure every byte in file touched at least once. (CVS 6713)
...
FossilOrigin-Name: bc6c2d894b711361808a19b673803186d3a28369
2009-06-04 02:46:19 +00:00
drh
c5e47ac238
Fix two instances where a malformed header in a database file (in other words
...
a corrupt database file) can lead to an assertion fault. (CVS 6712)
FossilOrigin-Name: 4e92c7f20afa51849128aa1d784ab885b517a73d
2009-06-04 00:11:56 +00:00
drh
69e931e7bb
Change the pcache1.c implementation so that the "header" occurs at the end
...
of page buffer, not at the beginning. This insures that the 20 bytes
immediately following the page buffer are mapped if a read of the page
buffer overruns due to a malformed cell. (CVS 6711)
FossilOrigin-Name: c54de1f54080de7e134d7b562498abb5337a0a46
2009-06-03 21:04:35 +00:00
danielk1977
93c829c110
Add corruptD.test, a container for testing the "cell overflow" problem. Also shuffle a small amount of code in BtreeInitPage() to check that the page header pointer to the start of the cell offset array is set to a sane value. (CVS 6710)
...
FossilOrigin-Name: 7fa5d3cb0fa05f7d901bcc139c2c037ce5944caa
2009-06-03 17:26:17 +00:00
danielk1977
0d19f7ac57
Define a set of constants to use as the "index" argument to sqlite3BtreeGetMeta and UpdateMeta. This makes some parts of the code easier to follow. (CVS 6709)
...
FossilOrigin-Name: 6dbf4eca00f845baa7200aba421d0bc158ba96aa
2009-06-03 11:25:07 +00:00
drh
50d654da3b
Additional changes to reduce stack usage. The SQLITE_SMALL_STACK compile-time
...
option is now available. (CVS 6708)
FossilOrigin-Name: baea79fd0cfeb860973846c3f2776776c87f0ae3
2009-06-03 01:24:54 +00:00
drh
e98c9049a0
Further reductions in the amount of stack space required. (CVS 6707)
...
FossilOrigin-Name: 04bad9eb6dd8bf7cafc9f3918b676e95d5b1c984
2009-06-02 21:31:38 +00:00
drh
c54a617e1f
Tweaks to vdbe.c to further reduce stack space requirements. (CVS 6706)
...
FossilOrigin-Name: 6f2aab3f7be12710b703eda22b1d5c0e8f85f814
2009-06-02 16:06:03 +00:00
drh
e4a96be62b
Add a test case for ticket #3893 and ticket #3894 . (CVS 6705)
...
FossilOrigin-Name: 2472f6db95cd537a908bdbbbbc41bad2bd987b2f
2009-06-02 15:47:37 +00:00
drh
856c10375d
Add the vdbe-compress.tcl script which automatically refactors the
...
sqlite3VdbeExec() routine to use less stack space. Use this script
when constructing the amalgamation. (CVS 6704)
FossilOrigin-Name: 7f43391831b03e53d967acee6ae02089740aaedb
2009-06-02 15:21:42 +00:00
drh
6ee700c32c
Avoid allocating large objects on the stack in the incremental BLOB I/O
...
interface. (CVS 6703)
FossilOrigin-Name: ea7dfde700fb57ed0ecb5000a55abbf45aa1e09d
2009-06-01 19:53:30 +00:00
drh
e7b3470705
Malloc for space to hold the Parse object in sqlite3_prepare() and friends.
...
Or, if compiled with SQLITE_USE_ALLOCA, obtain space for the object from
alloca(). (CVS 6702)
FossilOrigin-Name: c7c0c58e472cd8277b2ad58bb60834190bace4fa
2009-06-01 18:18:20 +00:00
shane
ddfefca736
Added assert to verify winMutex system is inited before "static" mutexes are used. (CVS 6701)
...
FossilOrigin-Name: b126013b5a1d6526810139d19acbec7fd0ab8168
2009-06-01 17:10:22 +00:00
shane
61b82d6aa5
Ensure that "static" mutexes are deleted on shutdown so that they are not leaked across restarts. (CVS 6700)
...
FossilOrigin-Name: 4e75897ee177bd24145f9dbfccd41a03c108440f
2009-06-01 17:06:07 +00:00
shane
cf6973963a
Fix compiler warnings with MSVC build. (CVS 6699)
...
FossilOrigin-Name: 0791588520603d106aa0b8ce24d68b740b7b80c8
2009-06-01 16:53:09 +00:00
shane
739a277031
Fix a couple of Windows only issues with test scripts. (CVS 6698)
...
FossilOrigin-Name: 0f6bc5e1ba6937b36df08ed3b5903839389021bb
2009-06-01 16:42:17 +00:00
drh
d6b8c43474
Code simplifications to facilitate coverage testing following the recent
...
changes to the Expr object. (CVS 6697)
FossilOrigin-Name: ee9a144d448a76f29c3ca03851c1aeef539068e2
2009-05-31 21:21:40 +00:00
drh
de7446bd85
Fix the ".genfkey" command of the CLI so that it does not leak memory
...
if sqlite3_realloc() fails. Ticket #3891 . (CVS 6696)
FossilOrigin-Name: a028d69c70ae961f418052a91aa1518e80a8ddf5
2009-05-31 17:16:09 +00:00
drh
20bc393c6a
Fix typo reported by ticket #3888 . Other minor edits to facilitate
...
coverage testing. (CVS 6695)
FossilOrigin-Name: 164adf261d2536f16c83e44f6482dfb3d04a45d5
2009-05-30 23:35:43 +00:00
drh
33cd490992
Simplifications to the expr.c source module resulting from structural
...
testing. (CVS 6694)
FossilOrigin-Name: f760bb7a0372d11ac7e3287b8a56fc4261e6371c
2009-05-30 20:49:20 +00:00
drh
f7bca5740d
Fix for ticket #3887 . Other unrelated bits of code cleanup in the expr.c
...
source module. (CVS 6693)
FossilOrigin-Name: 00e7250f11e190cd915870438d172f574d110e6d
2009-05-30 14:16:31 +00:00
danielk1977
43996e858b
In vacuum.c use "PagerIsMemdb(X)" instead of "PagerFile(X)->pMethods==0". (CVS 6692)
...
FossilOrigin-Name: 874295ce71380da3f4c9296df0e0ce5ece136220
2009-05-30 10:46:10 +00:00
drh
20411ea700
Enhance the sqlite3VdbeGetOp() routine so that it always returns a pointer
...
to VdbeOp, even following an OOM fault. This simplifies error handling in
callers. Cleanup to the column cache logic and the expr.c source module. (CVS 6691)
FossilOrigin-Name: ede06dacdf7acab23cd9666a0a0d092a637bcb78
2009-05-29 19:00:12 +00:00
drh
fd773cf970
Refinements in expression handling logic that have resulted from recent
...
structural testing. (CVS 6690)
FossilOrigin-Name: bd89f2c29b00e6b473f30c2e929d2f626721ad92
2009-05-29 14:39:07 +00:00
drh
9fe769f129
Still more refinements to the hasHotJournal() fix of ticket #3883 . (CVS 6689)
...
FossilOrigin-Name: 726b425e43e5d864e7e83853bdf134debc1ffb59
2009-05-29 11:57:38 +00:00
drh
cc0acb261e
The hasHotJournal() fix of check-in (6687) causes some minor problems in
...
various alternative operating modes, such as locking_mode=EXCLUSIVE. This
additional patch attempts to fix those concerns. Ticket #3883 . (CVS 6688)
FossilOrigin-Name: a2ba61d927a06c390a9a818a013328092b802222
2009-05-29 10:55:29 +00:00
drh
f0039ad815
Modify the hasHotJournal() routine to return a false-positive if it is
...
unable to open the journal file to check its header due to a race
condition. Processing downstream of hasHotJournal() already knows how to
deal with false-positives. Ticket #3883 . (CVS 6687)
FossilOrigin-Name: d6b5d8e1ab8e5d3348ace560230702718a2a8af9
2009-05-29 00:30:30 +00:00
drh
b74b101766
Remove references to deleted function sqlite3ExprRegister(). Changes to
...
the expr.c source module to promote better testing. (CVS 6686)
FossilOrigin-Name: 6ae4ad6ebee4db88c411df97bb1de574708dd53c
2009-05-28 21:04:37 +00:00
drh
2c220455b9
Fix a NULL pointer dereference following an OOM error in the column name
...
resolver. (CVS 6685)
FossilOrigin-Name: 3b46142532934d17aa136c2e56e58e7828df0f54
2009-05-28 14:34:49 +00:00
drh
0b0745ae37
Make sure the column name resolver does not try to duplicate Expr.u.zToken
...
when the Expr.u.iValue union member is the element being used. (CVS 6684)
FossilOrigin-Name: 376ecf0d87e4a2329f5861401f83ed9ceb35d528
2009-05-28 12:49:53 +00:00
danielk1977
4b0aa4cf3e
Workaround the need for internal API sqlite3BtreeCursorDb(). It was only being used for an assert() statement, which can be done differently. (CVS 6683)
...
FossilOrigin-Name: 5904af6e6df3effdaaa30e7cf96ee316fc09b28d
2009-05-28 11:05:57 +00:00
drh
33e619fc1c
Additional refinements to Expr handling. Restore compression of trigger
...
expressions. Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue.
Remove an unnecessary ExprDup from CHECK constraint processing. And so forth. (CVS 6682)
FossilOrigin-Name: 4ac2bdfbb4230b6ceaae87e738fa61036bbe03cb
2009-05-28 01:00:55 +00:00
drh
b7916a78ff
Simplifications to the Expr object: Remove Expr.span completely and convert
...
Expr.token into a char* Expr.zToken. Also simplify the Token object by
removing the Token.dyn and Token.quoted fields. (CVS 6681)
FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3
2009-05-27 10:31:29 +00:00
drh
38a2c01b09
Fix the rtree test module so that it works even if the ext/ subfolder is
...
omitted from the tree. (CVS 6679)
FossilOrigin-Name: 086206e1f51e22ce7b9f45865b370088db126cd2
2009-05-25 14:17:35 +00:00
drh
5cd792399a
When pinning a temp register after it is reused by the column cache, make
...
sure all instances of that register in the cache are pinned so that the
register is never reused for a different purpose. Ticket #3879 . (CVS 6676)
FossilOrigin-Name: 5f358e63712e8de93bd6fecc5131badeef0292be
2009-05-25 11:46:29 +00:00
danielk1977
d17fe2a352
Add a test case for ticket #3879 . (CVS 6675)
...
FossilOrigin-Name: 5b9b66f47b0b8178427806149958387d32b70dc2
2009-05-25 11:46:10 +00:00
drh
09943b53dd
Additional clarification of the 3rd parameter to sqlite3_create_function().
...
Documentation change only; no changes to code. Ticket #3875 . (CVS 6674)
FossilOrigin-Name: dd75e376e8fed4f2e347672d483ee7c1929007cf
2009-05-24 21:59:27 +00:00
drh
091bc7bb16
In the previous, the upper bound on the number of function arguments is
...
127, not 255. Ticket #3876 (CVS 6673)
FossilOrigin-Name: 4fe4c5fac51c0a5b50f839a3f43d786e1ff4a4e0
2009-05-24 11:08:49 +00:00
drh
97602f8593
Correct and clarify the documentation on the third parameter to
...
sqlite3_create_function(). (CVS 6672)
FossilOrigin-Name: 6b7929ed36fa14291b6cb09de5808100945ad7a0
2009-05-24 11:07:49 +00:00
danielk1977
e672c8ed91
Do not transform a WHERE clause of the form "a = ? OR a = ?" to "a IN (?, ?)" if "a" is a column of a virtual table. Ticket #3871 . (CVS 6671)
...
FossilOrigin-Name: fad88e71cf195e703f7b56b13f0c1818fd0dac84
2009-05-22 15:43:26 +00:00
drh
dd1f4321ab
Add an assert() to pcache1.c to double-check that page cache buffer memory
...
is never allocated if pcache1 is not enabled. Ticket #3872 (CVS 6670)
FossilOrigin-Name: 93369d91abe10975507ea9302c145e3ddd0c2c76
2009-05-22 11:12:23 +00:00
drh
f4622dc176
Additional changes to pcache1 to prevent the page buffer memory from being
...
configured if pcache1 is not enabled. Ticket #3872 . (CVS 6669)
FossilOrigin-Name: 5153ad19daf0f3b0334b2a06655142899203abbf
2009-05-22 11:10:24 +00:00
drh
b093719a17
Make sure sqlite3_shutdown() completely disables the default pager cache
...
mechanism in pcache1.c. Ticket #3872 . Also fix some comments associated
with configuring the page cache. (CVS 6668)
FossilOrigin-Name: 6240992cef5cb867d7a638f1906d05aa8efd0652
2009-05-22 10:53:29 +00:00
drh
4fb0866d58
Add omitted word in the documentation for total_change_count().
...
ticket #3870 . (CVS 6667)
FossilOrigin-Name: 3f6fd16f92a16445891142b0a7dc9f6d6dc06546
2009-05-22 01:02:26 +00:00
drh
49145af9f2
Fix an 8-byte alignment problem on HP/UX. Ticket #3869 (CVS 6666)
...
FossilOrigin-Name: fc64f8509299a398ac1513e1778f271083e3eabc
2009-05-22 01:00:12 +00:00
drh
51f49f1745
Simplifications to expr.c in support of full coverage testing. (CVS 6665)
...
FossilOrigin-Name: 309adb5e22af2735b69460c164d870aea99c6da3
2009-05-21 20:41:32 +00:00
drh
157e29a9e3
In the CLI in the ".dump" command, do not attempt to clear the sqlite_sequence
...
table until the first row of content of that table is seen. Ticket #3867 (CVS 6664)
FossilOrigin-Name: bedd5ad1942021ef2b3defde3ff3e8aead86137e
2009-05-21 15:15:00 +00:00
drh
4f32476cea
In the CLI, always "dump" the sqlite_sequence table last. Ticket #3867 (CVS 6663)
...
FossilOrigin-Name: a0028d4808275cb1d020d56344d90b2a04603f4d
2009-05-21 14:51:03 +00:00
danielk1977
1ed93e9085
Add conditional 'extern "C"' block to sqlite3async.h. Ticket #3866 . (CVS 6662)
...
FossilOrigin-Name: e4d1b117c90dca341bfa74291c7dfc2afca38cc6
2009-05-21 04:42:19 +00:00
drh
748ce21115
Fix a memory leak that occurs when an out-of-memory error occurs while
...
preparing a statement that has multiple virtual table updates within
triggers. Other virtual table changes to support full-coverage testing. (CVS 6661)
FossilOrigin-Name: 02b77a582c65e0eb45eb1a9abbdeef11f52d7ce6
2009-05-20 20:10:47 +00:00
drh
9e27890ed9
Remove unused, undocumented, and untested error reporting logic from the
...
xFindFunction interface in virtual tables. (CVS 6660)
FossilOrigin-Name: 55d6ced262f5281076e4a68097ed21e150a9c225
2009-05-20 16:22:02 +00:00
drh
7aaa878619
Updates to the extension loading logic to support full coverage testing. (CVS 6659)
...
FossilOrigin-Name: 929cfbc66f6e2ea6b44417305d0f4ae36567c9bf
2009-05-20 02:40:45 +00:00
drh
43152cf85f
Changes to select.c to facilitate full coverage testing. (CVS 6658)
...
FossilOrigin-Name: f678ed34faab88f4e126e553119773386c7c84fa
2009-05-19 19:04:58 +00:00
drh
367882c27c
Improvements to the SQLITE_INT_TO_PTR macro to reduce the number of
...
warnings. For some platforms it might be necessary to compile with
the -DHAVE_STDINT_H flag. Ticket #3860 . (CVS 6657)
FossilOrigin-Name: 1b0ee9d188c000a2331caae2e9c8b89b0bcbc0b0
2009-05-19 14:21:28 +00:00
drh
e255086bb2
Update the showdb.c utility so that it works with databases larger than 4GiB. (CVS 6656)
...
FossilOrigin-Name: 9675b6223645fe01b202cbefae63f3209a50efcc
2009-05-19 03:21:52 +00:00
danielk1977
8d76ff9fe9
Fix memdb.test so that it works when OMIT_AUTOVACUUM is defined. (CVS 6649)
...
FossilOrigin-Name: 8c3c0c24c82606df41653dbf7324bf9f166c933a
2009-05-18 16:04:38 +00:00
drh
ccfcbcea60
Changes to select.c in support of full coverage testing. (CVS 6647)
...
FossilOrigin-Name: e225f365bd9353f753161887e05fe1eccaf9be1d
2009-05-18 15:46:07 +00:00
drh
5e49edcabb
Fix a typo on a comment associated with check-in (6641) and ticket #3860 . (CVS 6646)
...
FossilOrigin-Name: 43051e0315246d734a81ccef2cf1a0cc159f239b
2009-05-18 13:34:37 +00:00
drh
d2c52f1cfd
Remove debugging code accidently left in check-in (6642). Ticket #3862 . (CVS 6645)
...
FossilOrigin-Name: 0d974613473b9d2af71638248a57036f903ef387
2009-05-17 15:29:31 +00:00
drh
03949bac60
Take care to free the memory for the ORDER BY clause on SELECT statements
...
containing errors and contained within triggers. Ticket #3863 . (CVS 6644)
FossilOrigin-Name: dd665eac8c04259e44a95827ebd1f037460fe1b2
2009-05-17 15:26:20 +00:00
drh
554b3830db
Fix a typo in the sqlite3_blob_open() documentation. (CVS 6643)
...
FossilOrigin-Name: 92866482ef7cc91b5ac7bebec7e6edf900aa64c6
2009-05-17 12:07:47 +00:00
drh
373cc2dd08
Tweaks and simplifications to select.c to facility full coverage testing. (CVS 6642)
...
FossilOrigin-Name: e3ccbc69babd05d45db8065f6612751eda1aa645
2009-05-17 02:06:14 +00:00
drh
875e9e7d88
Attempt to provide a version of the SQLITE_INT_TO_PTR macro that works
...
on both llvm-gcc-4.2 and MSVC. Ticket #3860 . (CVS 6641)
FossilOrigin-Name: ddee7ff23e9a396cab89d20ff9fc4cf3dfd4561c
2009-05-16 17:38:21 +00:00
danielk1977
74632880b7
Re-enable file locking in async4.test. (CVS 6640)
...
FossilOrigin-Name: f7098187280866a56563c7614513a40becd172e0
2009-05-15 14:41:40 +00:00
drh
abda611770
Documentation enhancements for sqlite3_update_hook(), sqlite3_commit_hook(),
...
and the various incremental blob I/O routines. No changes to code. (CVS 6639)
FossilOrigin-Name: e8ca932d8c7e1753c159041499355724d3e78b35
2009-05-14 22:37:47 +00:00
drh
dcd7db5dc9
Change the sqlite3_backup_finish() interface so that calling it with
...
a NULL pointer is a harmless no-op. One other change to backup.c to facilitate
full coverage testing. (CVS 6638)
FossilOrigin-Name: 06bc89177b3af20751d9567a68551d2d31c3fe8b
2009-05-14 19:26:51 +00:00
shane
089b0a4d9c
Documentation updates to better explain the SQLITE_OPEN_EXCLUSIVE flag. Ticket #3855 . (CVS 6637)
...
FossilOrigin-Name: 6bd44f36f46810eb9ce30c7780de6bcfe4aadf5f
2009-05-14 03:21:28 +00:00
drh
8af73d4154
Additional simplifications to build.c in support full coverage testing. (CVS 6636)
...
FossilOrigin-Name: 913d11149396d3dc797f1efeb4f7e60865483399
2009-05-13 22:58:28 +00:00
drh
b7f24de283
Remove incorrect NEVER() macro in the previous check-in (6634). (CVS 6635)
...
FossilOrigin-Name: c684957991fe45cbcb188d2a419501c3f1fdc93f
2009-05-13 17:35:23 +00:00
drh
0449171e0c
Changes to build.c to help facilitate full coverage testing. (CVS 6634)
...
FossilOrigin-Name: 264ace50bbaec3468de0e42b2b8cebf9ce1d6682
2009-05-13 17:21:13 +00:00
danielk1977
24d4b29d5b
Do not run async4.test as part of the "journaltest" permutation. It specifically tests that the asynchronous IO backend can be configured to violate the assumptions made by journaltest. (CVS 6633)
...
FossilOrigin-Name: b19bf39bbae96aeb6e742fb9fb1c33d0e251ad7f
2009-05-13 14:46:09 +00:00
danielk1977
e70f4f6482
When locking a database file, check if any backup objects need to be restarted even if the page cache is empty. Ticket #3858 . (CVS 6632)
...
FossilOrigin-Name: 90309008c35494c7a075fe76f7eb96b09a01d01b
2009-05-13 07:52:06 +00:00
drh
8b4aff3919
Remove debugging comments left in the prior check-in by mistake. (CVS 6631)
...
FossilOrigin-Name: 8207056036e17b99ab660edd650c5a6de1353299
2009-05-12 18:00:37 +00:00
drh
d300171150
Move the sqlite3MinimumFileFormat() routine from build.c over to alter.c
...
since alter.c is the only code that uses it. Additional changes and
cleanup to build.c to facility coverage testing. (CVS 6630)
FossilOrigin-Name: 6fe3750a30ab432ed476c2ae6b58972187abc624
2009-05-12 17:46:53 +00:00
drh
b25a9f4618
Make sure the SQLITE_OPEN_EXCLUSIVE flag is ignored by sqlite3_open_v2().
...
That flag is to be used by the VFS interface only. Ticket #3855 . (CVS 6629)
FossilOrigin-Name: c37f0279ebfaf76b4086e6d16b6e12633424c27d
2009-05-12 13:35:11 +00:00
drh
768578ee2a
Tweaks to build.c to facilitate coverage testing. (CVS 6628)
...
FossilOrigin-Name: 6572b438a02cc44546174e132dfbdc1d141cd451
2009-05-12 00:40:12 +00:00
drh
55f04f281b
If a virtual table constructor returns SQLITE_NOMEM, set the mallocFailed
...
flag in the corresponding database connection to insure that the error
is propagated back to the top layer. (CVS 6627)
FossilOrigin-Name: 5635666f20358e854a76d244768198734afd4299
2009-05-11 23:37:59 +00:00
drh
c4a64facce
Rework the logic that generates a schema for tables created using
...
"CREATE TABLE ... AS SELECT ...". Instead of trying to copy the raw
datatype string from the right-hand side, just make the type one
of TEXT, INT, REAL, NUM, or nothing. This is much simpler than
trying to parse and quote datatype strings. Other minor
implifications to build.c are bundled with this change. (CVS 6626)
FossilOrigin-Name: 33cf83591e6e13875ef6ada5b8ac8ab07619d8bc
2009-05-11 20:53:28 +00:00
drh
aaac8b4e1b
Enhance the parser to allow nested parentheses in the module argument of
...
a CREATE VIRTUAL TABLE statement. (CVS 6625)
FossilOrigin-Name: 93772bd7f56a5158eb46a992ba932f4695cb219f
2009-05-11 18:22:30 +00:00
drh
782b873bf5
Convert an always-true condition in hash.c into an assert(). (CVS 6624)
...
FossilOrigin-Name: 4237299935b8bf8c346aacba021113224813bcb9
2009-05-09 23:29:12 +00:00
drh
f3af63f941
Add the SQLITE_TESTCTRL_ASSERT and SQLITE_TESTCTRL_ALWAYS codes for the
...
sqlite3_test_control() interface. (CVS 6623)
FossilOrigin-Name: 38df91c2edebee22d02b5f84260ee9e5e14db48e
2009-05-09 18:59:42 +00:00
drh
28414ee952
Change sqlite_blob_open() so that it zeros the output pBlob pointer when
...
it fails. The other sqlite3_blob interfaces accept a NULL pointer as
input. (CVS 6622)
FossilOrigin-Name: 999d507b4432b518cfc7e02e5b0a2473cf1980f6
2009-05-09 15:17:47 +00:00
drh
9ab4c2e880
Changes to the trigger.c module that facilitate full coverage testing. (CVS 6621)
...
FossilOrigin-Name: 567ccc68cc8c73b952a91c71a0e00b08bb25c689
2009-05-09 00:18:38 +00:00
danielk1977
50c55a90d5
Fix a warning in the osx-specific part of os_unix.c. Ticket #3847 . (CVS 6620)
...
FossilOrigin-Name: 254ca3273cfbd833de82296b4859e1ec5535e8be
2009-05-08 11:34:37 +00:00
danielk1977
ea24ac4b23
Correctly update the cache page-count when discarding pages in the xTruncate() method of the default pcache implementation. Otherwise the effective configured size of the cache shrinks each time xTruncate() is called. Fix for #3844 . (CVS 6619)
...
FossilOrigin-Name: 88211ceeec01ee0d3e55231512be26dd672db099
2009-05-08 06:52:47 +00:00
drh
79f02cef78
If compiling FTS3 in the amalgamation, include the ctype.h header file.
...
Ticket #3843 . (CVS 6618)
FossilOrigin-Name: 660108ef7a3c45f735789ba1039be2c37a8b0d0e
2009-05-07 14:11:52 +00:00
drh
dff6c173dd
Change the sqlite3_create_function() family of routines to return
...
SQLITE_MISUSE instead of SQLITE_ERROR if their parameters are incorrect. (CVS 6617)
FossilOrigin-Name: 866f13e28c6fdb98947e1c7a89b7855bb5bbdb96
2009-05-07 13:43:49 +00:00
drh
cdd0376a55
Make sure the iteration counter on aggregate functions is reset each
...
time the aggregate is used in an correlated subquery. Ticket #3841 . (CVS 6616)
FossilOrigin-Name: 4a86de35d57a0c8720772c29431c86cd9be1fb9b
2009-05-07 12:17:33 +00:00
drh
7f720d542d
Version 3.6.14 (CVS 6615)
...
FossilOrigin-Name: 469ad1ded35f5ff8ab2f6e8f776d73a9cea73527
2009-05-07 02:26:07 +00:00
drh
b2f9efc3f0
Fix compiler warning found with gcc -Wextra. (CVS 6614)
...
FossilOrigin-Name: 93bdbc5e2f9771a30358cde03f0d3cb708d73d48
2009-05-06 19:03:13 +00:00
shane
60a4b53823
Changes to silence compiler warnings under MSVC. (CVS 6613)
...
FossilOrigin-Name: df599237e1ca8b4f361477a712cf761aa1fac3df
2009-05-06 18:57:09 +00:00
drh
6a863cdad8
Fix three variable initialization problems found by valgrind. (CVS 6612)
...
FossilOrigin-Name: 37428435978027f6baffa552306dd5dc29ce5cd5
2009-05-06 18:42:21 +00:00
chw
73ccf01737
updated vxworks makefile for 3.6.14 release (CVS 6611)
...
FossilOrigin-Name: 5d4bffaabbf6a809938f115de266b382183a0a96
2009-05-06 15:24:04 +00:00
drh
310bd20a81
Add a short pause to force a context swap while waiting for a separate process
...
to clear its lock in the lock4.test script. (CVS 6610)
FossilOrigin-Name: 4357e76d53f692cb7495fbde61b4b7580560f816
2009-05-06 00:52:40 +00:00
drh
dc70e4c365
Fix the test case misc3-6.11 so that it works correctly on UTF16 databases
...
after the fix of for ticket #3838 , check-in (6603) (CVS 6609)
FossilOrigin-Name: c1e739e39b1df205f3beb4088ce7760a0d56359f
2009-05-06 00:49:00 +00:00
drh
76aeb34f0f
Minor changes to the sqlite3_exec() implementation in legacy.c
...
to facility full coverage testing. (CVS 6608)
FossilOrigin-Name: 9e3016c1846174a64833394a00a09335e8446de8
2009-05-05 20:02:47 +00:00
drh
70b6367cd9
Bump the version number up to 3.6.14. (CVS 6607)
...
FossilOrigin-Name: f4549904b22ff2340a5830cd67ed001d1c4730a1
2009-05-05 18:01:58 +00:00
drh
5dc348a2e2
Changes to vacuum.c to facilitate full coverage testing. (CVS 6606)
...
FossilOrigin-Name: 866284654c1f163af4164fe8c698d30af32e4eaa
2009-05-05 17:37:22 +00:00
drh
3500ed6650
Make sure the left-shift operator never overflows. (CVS 6605)
...
FossilOrigin-Name: 300da30178c46ab9f2ceb0c3e3ee3eac73d5d8e1
2009-05-05 15:46:43 +00:00
drh
e289d6069a
Changes to update.c to facilitate full coverage testing. (CVS 6604)
...
FossilOrigin-Name: 25a11b9ecae1befd3f58958d68f6346f1e1e47ad
2009-05-05 15:46:09 +00:00
drh
e3b9bfe6ab
Make sure the default value on a column added using ALTER TABLE has the
...
correct encoding. Ticket #3838 . (CVS 6603)
FossilOrigin-Name: 7f89a860b7cd0993c36a8b0482c2bac950a875d6
2009-05-05 12:54:50 +00:00
drh
eeb23a4c24
Make sure va_arg() does not occur on the same line as any "if" statement
...
or "?" operator. (CVS 6602)
FossilOrigin-Name: 3543be6e34ebff48b1b0c1710ae6fec557b09b52
2009-05-04 20:20:16 +00:00
danielk1977
11c327aabe
Avoid parsing cells that fit entirely on the b-tree page when searching a b-tree index. (CVS 6601)
...
FossilOrigin-Name: 77a8239548722f702ead9d7c60df0d68180948fb
2009-05-04 19:01:26 +00:00
drh
eba661f88f
Changes to auth.c to promote full coverage testing. (CVS 6600)
...
FossilOrigin-Name: c7615b44583c4b3afa45b57c6047478c18c234e9
2009-05-04 18:01:39 +00:00
danielk1977
de630353d8
Speed up INSERT operations that add data to UNIQUE or PRIMARY KEY indexes by rationalizing duplicate seek operations. (CVS 6599)
...
FossilOrigin-Name: cac4f3d812f0a02ca5c1fa78d366f694403929a8
2009-05-04 11:42:29 +00:00
drh
ce9b0157f0
Work toward cleaning up the authorizer interface. Work is on-going. This
...
is an incremental check-in. (CVS 6598)
FossilOrigin-Name: 694662f7860179403e0cc55b45ae8afa45aa7dfb
2009-05-04 01:58:31 +00:00
drh
dee0e404d6
Changes to facility full coverage testing of util.c. (CVS 6597)
...
FossilOrigin-Name: a612299092a48b38c5f9cf430bbcaf41777cbcb3
2009-05-03 20:23:53 +00:00
drh
1b7ecbb4ce
More changes to insert.c to facilitate full coverage testing. (CVS 6596)
...
FossilOrigin-Name: 46c4ec968bc22843c65744ab4a01ec7ac605567b
2009-05-03 01:00:59 +00:00
drh
098d1684d7
Simplifications to the uniqueness constraint failure error message
...
generation code. (CVS 6595)
FossilOrigin-Name: 8f3cac7682a0c992f95f7453aaf9a29b1fe35d6f
2009-05-02 15:46:46 +00:00
drh
e61922a6a1
Remove the aFKey hash table, which was not being used. Simplify the
...
FKey object. Simplify the hash.c module since the copyKey parameter
formerly used only by aFKey is now no longer required. (CVS 6594)
FossilOrigin-Name: 80c43a355c6e482457abc2f9c3ad3a565cec55fb
2009-05-02 13:29:37 +00:00
drh
7895fdd452
Reduce the size of an integer literal in rowhash.tcl so that the test
...
is able to run with the default TCL installation on Mac OS 10.5. (CVS 6593)
FossilOrigin-Name: 2229accef308db9feac4e1de16b57e7f680dbb1a
2009-05-02 12:02:01 +00:00
danielk1977
3f632d5bd2
When a cursor points at the last entry of an intkey btree after an insert, leave it there (instead of moving it to the tree root node). This speeds up statements of the form "INSERT INTO ... SELECT ..." that use auto-generated rowids. (CVS 6592)
...
FossilOrigin-Name: 9950c0a79c82eb7d8495b0b1a8fe117d566e2387
2009-05-02 10:03:09 +00:00
danielk1977
9c3acf3cfe
Do not reset the cursor before seeking it in sqlite3BtreeInsert(). This speeds up INSERT operations that use auto-generated rowid values. (CVS 6591)
...
FossilOrigin-Name: 20c4acc291def33980f584f882c76e85ee1c8238
2009-05-02 07:36:49 +00:00
drh
3f6e781d6a
When checking indices for xfer compatibility, compare collating sequences
...
by string, not by pointer. (CVS 6590)
FossilOrigin-Name: 7d2b80c7addc2d03d49647da9c6df9113f01349d
2009-05-02 00:28:19 +00:00
drh
24fb627afa
Record within the Token structure itself whether or not the token has
...
been dequoted. This steals one bit from the length of a token and
thus limits the size of tokens to 1GiB. (CVS 6589)
FossilOrigin-Name: 12bcb03d9b9e1a31c1a3c67cbb4263cc0af2f3d0
2009-05-01 21:13:36 +00:00
drh
d51397a614
Fix an error message that is generated if the number of columns do not
...
match on an INSERT into a virtual table with hidden columns. (CVS 6588)
FossilOrigin-Name: 795b453c9a03c32d9d4cdf62823d2b9dd667cc44
2009-05-01 15:17:48 +00:00
drh
b56cd55b9a
Update PRAGMA integrity_check so that it treats SQLITE_IOERR_NOMEM errors
...
from underlying components the same as SQLITE_NOMEM errors. (CVS 6587)
FossilOrigin-Name: 26444f2a4426d2e51464ef69ed83d3c78be2c11f
2009-05-01 13:16:54 +00:00
danielk1977
ff340d8e39
Change lock2.test so that it does not enter a busy loop if the child process exists unexpectedly. (CVS 6586)
...
FossilOrigin-Name: 164a7f5a45c3e7f7a73899678c374535b270b130
2009-05-01 10:55:34 +00:00
danielk1977
e979565473
Remove a NEVER() clause from a condition that is true at least once when running attachmalloc.test. (CVS 6585)
...
FossilOrigin-Name: 514efc7312d725c3fe35741e8c000526f3bdb3a6
2009-05-01 06:19:21 +00:00
danielk1977
bd2edd676b
Fix for tempdb.test so that it passes when running the inmemory_journal permutation test. (CVS 6584)
...
FossilOrigin-Name: 0256187b512c5849ffae0644e6a42ec0ca2de894
2009-05-01 05:23:17 +00:00
drh
7fe45908cc
Fix processing of BEFORE triggers on INSERT statements with RHS SELECTs
...
that insert a NULL into the INTEGER PRIMARY KEY. Ticket #3832 . (CVS 6583)
FossilOrigin-Name: 4a1f6a3a9ac8b476c86edac83b555adeef0be4e6
2009-05-01 02:08:04 +00:00
shane
eb4ac06f4e
More cleanup, etc. to support MSVC compiles. (CVS 6582)
...
FossilOrigin-Name: 2cd9655e7313671f2bbe8d4a6f13246cbbf61205
2009-04-30 17:45:33 +00:00
drh
0038e0c08f
Disable an always-false test in the attach.c module. (CVS 6581)
...
FossilOrigin-Name: 92b69481bd0eedf06599c40623b38a6f4990010a
2009-04-30 17:38:37 +00:00
danielk1977
f9d1a21421
Fix a problem with in-memory sub-journals and exclusive locking mode. Also a test script problem introduced by (6575). (CVS 6580)
...
FossilOrigin-Name: d67af3f5a21329e133aa6cf2be745a9f8c1a6562
2009-04-30 16:41:00 +00:00
drh
959b530d64
Documentation updates for sqlite3_set_authorizer(). No changes to code. (CVS 6579)
...
FossilOrigin-Name: 41f39c3145f2659fdb636cae07cdd424a10ac6e9
2009-04-30 15:59:56 +00:00
drh
c47fd8e031
Disallow attaching the same database multiple times to the same db connection
...
in shared cache mode, since doing so leads to deadlock. (CVS 6578)
FossilOrigin-Name: 715f14f1dcaf604d4794bf3e18e245d4f8c5d5a9
2009-04-30 13:30:32 +00:00
drh
9b3c24d15d
Fix apparent typo on exclusive.test in the (6575) check-in. (CVS 6577)
...
FossilOrigin-Name: 95d22405e096355ce815cdb0908c4ef04107b490
2009-04-30 12:25:58 +00:00
drh
1c5141484c
Changes sqlite3TempInMemory() to take a const parameter. (CVS 6576)
...
FossilOrigin-Name: aa29a14ca040db25dadbca787aa75be3b7588415
2009-04-30 12:25:10 +00:00
danielk1977
d829335e42
When SQLite is configured to use in-memory temp files (either by setting SQLITE_TEMP_STORE during compilation or using the temp_store pragma at run time), store statement/savepoint journals in memory also. Ticket #3825 . (CVS 6575)
...
FossilOrigin-Name: 38f8c5a14cd221af9e115a0fea689f2ff39e30e5
2009-04-30 09:10:37 +00:00
drh
6c19747549
Fix a memory leak introduced in the previous check-in. (CVS 6574)
...
FossilOrigin-Name: f082bf36051fef92ddda0339777a00cd1f0ba988
2009-04-30 05:40:34 +00:00
drh
9ae7a7406d
Take care not to leave a zombie attached database if the attachment fails
...
due to an encoding mismatch. Update attach logic to always use dynamically
allocated error message strings. (CVS 6573)
FossilOrigin-Name: a6cb4002ada311b56fa2b7430b98b9a0fa698a01
2009-04-30 05:19:04 +00:00
drh
c0b61810ed
Remove always-true tests from attach.c. In btree.c, always test the return
...
from sqlite3PagerSetPagesize() since it might return SQLITE_NOMEM. (CVS 6572)
FossilOrigin-Name: 8bf60b24ffcf6ac15f41eaa7f976b810e0c66734
2009-04-30 01:22:41 +00:00
drh
bbb5e4e073
Remove an always-true test from delete.c. Move the sqlite3OpenTable()
...
routine from delete.c to insert.c since it is not used in delete.c. (CVS 6571)
FossilOrigin-Name: 71756dc870910665ef5fdbc7343bc3eedbe3ce65
2009-04-30 00:11:09 +00:00
shane
a3628d14d7
Fixed compile for MSVC; removed compiler warnings; changes for NDEBUG build; minor code tweaks. (CVS 6570)
...
FossilOrigin-Name: e98b12425ff036b36165dfd2002e0530ca27a677
2009-04-29 18:11:59 +00:00
danielk1977
fad9194453
Modify the assemblePage() function in btree.c so that it runs slightly faster. (CVS 6569)
...
FossilOrigin-Name: 7ec42e989f1d4abdc6d52f8feebf51985f36b2bd
2009-04-29 17:49:59 +00:00
drh
d9c20d71c2
Update the documentation on the sqlite3_changes() and sqlite3_total_changes()
...
functions. (CVS 6568)
FossilOrigin-Name: 58c7bdb21c719bf06713ff8ffa7ee51cf1973712
2009-04-29 14:33:44 +00:00
danielk1977
6eacd28a28
Fix a case in where.c where a crash can follow a malloc failure. Also modify test code in test8.c to check a return code that was being dropped (causing a test in vtab_err.test to fail). (CVS 6567)
...
FossilOrigin-Name: 9664e2b6c69271a7ca55af7812a186773a7c6592
2009-04-29 11:50:53 +00:00
danielk1977
ae5558b2ae
Add a version of cellSizePtr() that is faster than using sqlite3BtreeParseCellPtr(). This speeds up balance_nonroot(). (CVS 6566)
...
FossilOrigin-Name: e8f7f7b787fe941093edaea44db4d361fad1e002
2009-04-29 11:31:47 +00:00
danielk1977
7b801388f5
Simplify a conditional expression in btree.c. (CVS 6565)
...
FossilOrigin-Name: fc3a5ac2353142082fe14d47f9c2b662407ea3f7
2009-04-29 06:27:56 +00:00
drh
8ad38a7d18
Fix an out-of-order test number in blob.test. Cosmetic change. No
...
changes to code. Ticket #3830 . (CVS 6564)
FossilOrigin-Name: e855654283a23d903fd531162655a8c4fa01775b
2009-04-28 18:00:27 +00:00
drh
0d59d17c41
Fix asserts in hash.c so that zero-length symbols can be used. (CVS 6563)
...
FossilOrigin-Name: fe9f00aa369051beee09ab3d1a2e046a1f679a40
2009-04-28 17:33:16 +00:00
danielk1977
8be0245db4
When testing with TEMP_STORE=3 and the test pcache, only run 20 iterations in trans.test. Otherwise the test pcache runs out of memory. (CVS 6562)
...
FossilOrigin-Name: 0799b729a7fe50ee935ac3bd9f95118288d33f6e
2009-04-28 16:37:59 +00:00
drh
b82400132d
Remove an unused function declaration from hash.h. (CVS 6561)
...
FossilOrigin-Name: fcf70bb8b8ab7682d46fa7e75338dfd8ecf472a3
2009-04-28 16:35:42 +00:00
danielk1977
2e90567890
Further adjustment to rowhash.test to account for rowid collisions. (CVS 6560)
...
FossilOrigin-Name: 94a23f993381412c7533878d44faa2f8e47e58ce
2009-04-28 15:48:08 +00:00
drh
8a1e594c9f
Simplifications to the symbol table implementation in hash.c. For very small
...
symbol tables (less than 10 entries) a simple linked list is used instead
of a hash table. Number of hash table buckets is limited to prevent large
allocations. (CVS 6559)
FossilOrigin-Name: 5c737835dec9e6038b304c198aa14337a6f23c1c
2009-04-28 15:43:45 +00:00
danielk1977
ebb329397c
Have sqlite3_create_collation() return MISUSE if passed an encoding value other than SQLITE_UTF8, SQLITE_UTF16LE, SQLITE_UTF16BE, SQLITE_UTF16 or SQLITE_UTF16_ALIGNED. (CVS 6558)
...
FossilOrigin-Name: 7975b6f2ec7736b3656a264c2f7e7e95ce7a78e4
2009-04-28 15:35:38 +00:00
drh
a83ccca794
Do not store the zero string terminator as part of the name when holding
...
symbols in the symbol table. (CVS 6557)
FossilOrigin-Name: 23d67af39227aeade2ea0292e1b8844eea580993
2009-04-28 13:01:09 +00:00
danielk1977
c1f4a19bfa
Another fix to the same assert as in (6555). It can also fail after a malloc error. (CVS 6556)
...
FossilOrigin-Name: e096f90a57f0e0d1dbeaafc72762035ca55ab803
2009-04-28 12:08:15 +00:00
danielk1977
f0d0a8dc4a
Fix an assert that could fail after a parse error in expr.c. (CVS 6555)
...
FossilOrigin-Name: a37d1174eb80e9a09522b236afdb47283f312d06
2009-04-28 11:10:39 +00:00
danielk1977
f761f76262
Avoid changing the pager journal-mode once a write-transaction is open, even if no database pages have been modified. (CVS 6554)
...
FossilOrigin-Name: ad8aba3eff90d42b936e3644f10cbbd431eebad8
2009-04-28 05:27:20 +00:00
drh
1691cd4bc0
Add test cases for sqlite3_complete with an EXPLAIN QUERY PLAN on a
...
CREATE TRIGGER statement. Ticket #3828 . (CVS 6553)
FossilOrigin-Name: 6b86b40edadb9c9cbc0db5a43a8277434f9d7171
2009-04-28 04:51:29 +00:00
drh
e0d0f8ee4d
Make sure sqlite3_open16() always zeros the db return pointer if
...
SQLite initialization fails. (CVS 6552)
FossilOrigin-Name: 057c7d171397e19c8f3ac2362ea45f2b4a50530c
2009-04-28 04:47:31 +00:00
drh
709915da2a
Enhance sqlite3_complete() so that it understands EXPLAIN QUERY PLAN.
...
Ticket #3828 . Testing is done in TH3. (CVS 6551)
FossilOrigin-Name: 3ac1b15f552fe005630e43a92fffa6a4abd6675d
2009-04-28 04:46:41 +00:00
drh
51c7d86476
Bring the documenation and implementation of sqlite3_collation_needed() into
...
agreement. Use a more efficient implementation of sqlite3ErrStr().
sqlite3_result_error_code() now calls sqlite3ErrStr() if no prior
error string was set. (CVS 6550)
FossilOrigin-Name: cb9af8293624da35c32077d0f46d5b0cf826dcf5
2009-04-27 18:46:06 +00:00
danielk1977
6f050aa2bf
Tests for the new asynchronous IO API. (CVS 6549)
...
FossilOrigin-Name: 11b2564e7159168cd0815bb9bc93688586fad1e0
2009-04-25 08:39:14 +00:00
drh
4fa326564a
Add another test case for the "x IS NULL" uniqueness problem of ticket #3824 .
...
No changes to code. This just double-checks that everything is working now. (CVS 6548)
FossilOrigin-Name: 3ceae3579bc42974865cf6fe0bc42001e786e894
2009-04-24 20:32:31 +00:00
danielk1977
70d9e9cc02
Dequote the "from" table in a FOREIGN KEY definition (affects the output of "pragma foreign_key_list). Fix for #3800 . (CVS 6547)
...
FossilOrigin-Name: 600482d1619c07690b6517ded9655462bdab7538
2009-04-24 18:06:09 +00:00
drh
336a5300de
Get rid of the special RowSet processing in where.c and move that into
...
clients. Added the WHERE_DUPLICATES_OK option to eliminate an unnecessary
RowSet during DELETE with a WHERE clause containing ORs. (CVS 6546)
FossilOrigin-Name: 98606bee9e41b8969fb639fc43864e230185ca43
2009-04-24 15:46:21 +00:00
drh
46619d6787
Make sure that the optimizer realizes that an "x IS NULL" contraint does not
...
necessarily give a single-row result even on a UNIQUE index. Ticket #3824 . (CVS 6545)
FossilOrigin-Name: 207335fdbf992a2f5bc5982b3163a38016ba1b21
2009-04-24 14:51:42 +00:00
danielk1977
4598b8e4a1
Make selecting the asynchronous IO file-locking mode a runtime operation. Still untested. (CVS 6544)
...
FossilOrigin-Name: 577277e84a05707b8c21aa08bc5fc314c1ac38ac
2009-04-24 10:13:05 +00:00
danielk1977
debcfd2dcb
Improve comments and documentation of the asynchronous IO VFS module. (CVS 6543)
...
FossilOrigin-Name: 92bc6be2a86f8a68ceded2bc08fe7d6ff23b56fb
2009-04-24 09:27:16 +00:00
shane
68d405e25a
os_win.c, winOpen(), changed to handle the SQLITE_OPEN_EXCLUSIVE flag and sharing modes in the same manner as os_unix.c. Ticket #3821 . (CVS 6542)
...
FossilOrigin-Name: 18fef3fcf61c137a89a83352f6769ed06845434a
2009-04-23 19:08:32 +00:00
shane
b1a82dbe95
Updated misc. test scripts for Windows testing with gcc/cygwin; (CVS 6541)
...
FossilOrigin-Name: 1e2c71596e3f7a69afc5b745c20b2e4e81bffda5
2009-04-23 18:42:04 +00:00
shane
8a0dc3b04a
Remove some incorrect async tests; (CVS 6540)
...
FossilOrigin-Name: 03af25b3ee001c1bf3e7a3218fad6ed311c7c259
2009-04-23 18:41:25 +00:00
danielk1977
a3f065980e
Move the asynchronous IO code from src/test_async.c to ext/async/. Refactor it to be a standalone module and to support windows. (CVS 6539)
...
FossilOrigin-Name: e71fb0fb8d83b4453c3c1e84606bf58d04926809
2009-04-23 14:58:39 +00:00
drh
ceea33217b
Rework the column-cache mechanism to be more robust (and more correct).
...
The column-alias cache is currently disabled, (CVS 6538)
FossilOrigin-Name: dd4d67a67454a3ff13c286a2a8360c5f0432c91d
2009-04-23 13:22:42 +00:00
drh
044925be0b
Eliminate the OP_VRowid opcode. The regular OP_Rowid now work for both
...
regular and virtual tables. (CVS 6537)
FossilOrigin-Name: ecbef45011f1f98d940b2d3492941213d9f04172
2009-04-22 17:15:02 +00:00
drh
6149526c25
Change the OP_Rowid opcode so that a deferred OP_Seek is pending, it simply
...
pulls the rowid from the deferred seek target and does not actually move
the cursor or do a seek. Other where.c cleanups. (CVS 6536)
FossilOrigin-Name: 1c508a99822caa383e7e24b5d09a9bddd2ee3a00
2009-04-22 15:32:59 +00:00
drh
1b26c7ccfa
Remove the rowhash object from the code. Rowset now fills its role. (CVS 6535)
...
FossilOrigin-Name: e963bed0fe3ce5fa32f04b930e5ed0956dc2aa47
2009-04-22 02:15:47 +00:00
drh
733bf1b1e2
Extend the Rowset object to contain all the capabilities of Rowhash in
...
addition to its legacy capabilities. Use Rowset to replace Rowhash.
In addition to requiring less code, This removes the 2^32 result row
limitation, uses less memory, and gives better bounds on worst-case
performance. The Rowhash implementation has yet to be removed. (CVS 6534)
FossilOrigin-Name: b101cf70b75c9772aaf50e0eadd0cfa37c84d193
2009-04-22 00:47:00 +00:00
danielk1977
dcc1f44020
Move RowHashBlock.nUsed to RowHash.nUsed. Fix a typo in a comment in test_async.c. (CVS 6533)
...
FossilOrigin-Name: 799d31d99fd18a6f99862433384e37d6747ee5b3
2009-04-21 18:20:45 +00:00
danielk1977
732dc5526b
Fix a segfault that followed a malloc failure introduced by (6527). (CVS 6532)
...
FossilOrigin-Name: 08e71b114087cfddd36c066265982172fcb41c9a
2009-04-21 17:23:04 +00:00