Commit Graph

6056 Commits

Author SHA1 Message Date
drh
2aca5846da Make sure the KeyInfo object attached to a transient table used for
sorting records the sqlite3 object used for memory allocation, so that
memory allocation failures on UTF16 to UTF8 conversion can be recorded. (CVS 5987)

FossilOrigin-Name: 76246d9f0d4e995f6be6fbd1fa2bcabc1b9566ae
2008-12-06 16:10:42 +00:00
drh
085bb7f094 Mark the hash table enlargement in pcache1.c as a benign-failure malloc. (CVS 5986)
FossilOrigin-Name: 5c0fe63a6374abe98e45c11ada54c064c19bbab8
2008-12-06 14:34:33 +00:00
drh
2c41ef063e Make the minimum allocate size for RowSet objects large enough to accommodate
8-byte pointers. (CVS 5985)

FossilOrigin-Name: b74885e0856c46412f7cf4dca4cafb740cb9a28b
2008-12-05 23:40:22 +00:00
drh
e43ba702bc Fix integrity check so that it always reports memory allocation errors that
it encounters. (CVS 5984)

FossilOrigin-Name: 2a3f5ce14c050b135ab9d2247aee84ca37882c4b
2008-12-05 22:40:08 +00:00
drh
9bf9e9c86d Make sure the nOverflow flag in MemPage is reset to zero after every insert. (CVS 5983)
FossilOrigin-Name: bfde3dae0c7b97308344519ca06cd4b290e8cf47
2008-12-05 20:01:43 +00:00
drh
902b9ee436 Fix harmless compiler warnings. Improved comments in the query optimizer. (CVS 5982)
FossilOrigin-Name: adedd697b475dadaa2eeae0d0413603195c955cf
2008-12-05 17:17:07 +00:00
drh
6a1e071f3d Make use of sqlite3DbMallocSize to maximize the size of growable buffers
after each reallocation.  Added new comments and testcase() macros to
where.c. (CVS 5981)

FossilOrigin-Name: 46f2d08959423e130a5b346138311649d92f0fde
2008-12-05 15:24:15 +00:00
drh
165be38b82 Variable name changes in the query optimizer for disambiguation and
clarification.  Clear space in boolean vectors for new bit values to
encode new query plan templates. (CVS 5980)

FossilOrigin-Name: 81bd0b5ce8a1cf057064c44e9b5371502cb8c58c
2008-12-05 02:36:33 +00:00
drh
da55c48a9a Expand table.* properly on a USING or a NATURAL join. Ticket #3522. (CVS 5979)
FossilOrigin-Name: 06d206ef7d5e433ccde347d63dfcd2177545e1fd
2008-12-05 00:00:07 +00:00
drh
8d99363c1b Fix a segfault that can occur in the RowSet object following a malloc
failure. (CVS 5978)

FossilOrigin-Name: cb0f1658d3db7ccf80843d66fa85af8de44710d0
2008-12-04 22:17:55 +00:00
drh
3d4501e573 Replace the VDBE Fifo object with the new RowSet object. (CVS 5977)
FossilOrigin-Name: 39a0750b49cf55e9c0927169ca47db909f5c16ea
2008-12-04 20:40:10 +00:00
drh
947bd8091b Make sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE is
disabled.  Fix compiler warnings when SQLITE_ENABLE_LOCKING_STYLE is
disabled. (CVS 5976)

FossilOrigin-Name: 4697249fcc6041ba7d2fb89589c855a8bec71eb2
2008-12-04 12:34:15 +00:00
drh
1822eee09c Fix a memory leak in the shell that occurs when a ".import" command fails.
Ticket #3517 (CVS 5975)

FossilOrigin-Name: cb9c15431c53b13b70d006d8c47741ebc1caaca3
2008-12-04 12:26:00 +00:00
drh
47b1066f8c Always enable the OP_Blob opcode in the VDBE even when
SQLITE_OMIT_BLOB_LITERAL is defined, since that opcode is used for other
purposes as well.  Ticket #3518. (CVS 5974)

FossilOrigin-Name: 760333de65328281137e02423904f860df572391
2008-12-04 12:17:30 +00:00
drh
fbdc7f69b3 Allow the entire FROM clause of a SELECT statement to be in parentheses. (CVS 5973)
FossilOrigin-Name: 72ebc8cbe00f77f7864146de7c0954c4f1c59b8d
2008-12-03 23:23:40 +00:00
drh
c66d5b64de Fix a missing forward declaration that is needed when
SQLITE_PREFER_PROXY_LOCKING is defined. (CVS 5972)

FossilOrigin-Name: 24235300b3f64f0396e1016afbe31aec9ea69b62
2008-12-03 22:48:32 +00:00
drh
715ff30e27 Reorganize the proxy-locking method in os_unix.c. Additional cleanup. (CVS 5971)
FossilOrigin-Name: 31f6090e22b54d657afc8c23171d000d47850205
2008-12-03 22:32:44 +00:00
aswift
f0551ee5e4 Make os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970)
FossilOrigin-Name: 3efedac6aa4f544d40c2f782109d4e1795e449a0
2008-12-03 21:26:19 +00:00
drh
6b9d6ddc21 Continue with the cleanup of os_unix.c. (CVS 5969)
FossilOrigin-Name: 215d36ea89078036fb66b5154f054613b735dab3
2008-12-03 19:34:47 +00:00
drh
08609ce7f0 Fully initialize the unused bytes of the buffer that will become the journal
file header, in order to silence a complaint from valgrind. (CVS 5968)

FossilOrigin-Name: 2822cbb960dbef9d30586ee112d74f9f566309fa
2008-11-29 22:49:23 +00:00
drh
9b35ea62c7 Continuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967)
FossilOrigin-Name: c13df0311ef4f6a510f42105293f7c53c323fda8
2008-11-29 02:20:26 +00:00
drh
7708e9720b Continuing work on the os_unix.c refactoring. Removed all of the
LOCKING_STYLE_* constants and instead pass around pointers to the
underlying sqlite3_io_method objects. (CVS 5966)

FossilOrigin-Name: 1017d2fb1935a278ef442030bf7bdf5e112c566a
2008-11-29 00:56:52 +00:00
drh
734c9864cb First step in refactoring os_unix.c. This is work in progress. The code
compiles and runs on Linux and MacOSX (as long as SQLITE_ENABLE_LOCKING_STYLE
is turned off), but there are a few test failures. (CVS 5965)

FossilOrigin-Name: 7825cd63e5cb390a9c2c05957ebc9b189612f04a
2008-11-28 15:37:20 +00:00
drh
c5053fb922 Add 19 new assert() statements in btree.c that attempt to detect writing to
a cache page which is not writeable. (CVS 5964)

FossilOrigin-Name: f9c7359065829b016d8cd04304c02509c254fe05
2008-11-27 02:22:10 +00:00
pweilbacher
5a1841a18c expected error message has trailing space (CVS 5963)
FossilOrigin-Name: 165bc2d7658e14eda8b375329e4286dc4d048f3a
2008-11-26 20:09:14 +00:00
pweilbacher
d102d1134b remove warning in os2Sync() with SQLITE_NO_SYNC set (CVS 5962)
FossilOrigin-Name: 68a51f67afd54f1c423206a92b36a33af071d5e1
2008-11-26 20:03:21 +00:00
pweilbacher
efdabe9e64 make os2Randomness() act the same as other platforms with SQLITE_TEST (all zeroed buffer) (CVS 5961)
FossilOrigin-Name: 5d189df39a3a5e99372826f87f9f20bbd92f1565
2008-11-26 19:56:48 +00:00
drh
a9bce108be Fix the test condition for the test cases added to prevent regressions of
ticket #3508. (CVS 5957)

FossilOrigin-Name: 4e94aa3bedc6dba003a2a4ecbba9c11c465eab4f
2008-11-26 13:44:30 +00:00
danielk1977
36e20936f6 Fix an obscure memory leak that can follow an IO error. (CVS 5956)
FossilOrigin-Name: 8271229c66c72c344ad7afb901b88d9cdaaa6f43
2008-11-26 07:40:30 +00:00
danielk1977
0cd1bbd0b8 Fix a couple of assert() failures provoked by running with a small default cache-size (64 pages). (CVS 5955)
FossilOrigin-Name: 1a66481a37dd9a21673c0ffb3df2be0614fe9f63
2008-11-26 07:25:52 +00:00
danielk1977
c015e39ff9 Move the definition of function transferOwnership() in os_unix.c to below the static functions it calls. (CVS 5954)
FossilOrigin-Name: 622cb59791ab9f61c2e5131cb6ece5e75cdc9fae
2008-11-25 12:07:40 +00:00
shane
46fdc8f586 Added cast to PAGE_TO_PGHDR1 macro to remove warning. It looks like despite the warning, the compiler (tested with VS2005 and GCC on Windows) was doing the right thing. Ticket #3510. (CVS 5953)
FossilOrigin-Name: e93cec0a72c7c330e63d38d683f4c8b63e0f8070
2008-11-24 20:05:38 +00:00
shane
467bcf360e Fixed some spelling errors in sqliteInt.h. Ticket #3509. (CVS 5952)
FossilOrigin-Name: 7e134a5c1a9f103abd9d655483ad54cffae7e3ef
2008-11-24 20:01:32 +00:00
shane
481e9f2089 Added test case to in4.test to try and duplicate crash reported on the mailing list. (CVS 5951)
FossilOrigin-Name: 8502fba37bb13c019252d0a65973a78982ec44aa
2008-11-24 15:32:00 +00:00
pweilbacher
c06b54fe59 fix the compile warnings on OS/2 (CVS 5950)
FossilOrigin-Name: b7d0ec838b806e7b2532bef1d59279c32fb206d3
2008-11-22 19:50:53 +00:00
drh
17d46fc7f1 Make sure the error message handler is able to deal with NULL expression
spans. Ticket #3508. (CVS 5949)

FossilOrigin-Name: ce36b6474a62f0a5b8d82968ca9a171f7143ae31
2008-11-22 18:28:50 +00:00
pweilbacher
aabbed2218 Fix testfixture linking problem by marking unix-only symbol as such. (CVS 5944)
FossilOrigin-Name: 2ca8b82247277baf3b81b5111988305ad5f67701
2008-11-21 23:35:02 +00:00
drh
107886abe8 Factor out and simplify the canonical pathname logic in the VxWorks OS
interface. (CVS 5943)

FossilOrigin-Name: adb0aafaa6b1ea06541f653a2559f099fb1b2795
2008-11-21 22:21:50 +00:00
drh
6c7d5c5b33 Work toward cleaning up and refactoring the os_unix.c VFS module.
Change IS_VXWORKS to OS_VXWORKS.  The VxWorks implementation can now
be built and tested on Linux using -DOS_VXWORKS=1 -Dsem_t=int -DPATH_MAX=512 -DNO_GETTOD=1. (CVS 5942)

FossilOrigin-Name: 30a0132a83ce95d45f106fce1439e7509fdc64d1
2008-11-21 20:32:33 +00:00
danielk1977
6c359f071d Fix the OOM handling for explain statements so that it is the same as for regular statements if the OOM error occurs from within a call to sqlite3_column_text() or text16(). (CVS 5941)
FossilOrigin-Name: 891b14e138c4d6cac0dfb234d8aedc5dabe376ab
2008-11-21 16:58:03 +00:00
danielk1977
f730075312 Fix a segfault that can be caused by an INSTEAD OF trigger on a view that includes an expression of the form "table.column" in the select list. (CVS 5940)
FossilOrigin-Name: 88a09dbb4b54be4010aae767157a1e2002237909
2008-11-21 16:22:18 +00:00
danielk1977
956f4319be Fix an assert() failure that can occur after an OOM error. (CVS 5939)
FossilOrigin-Name: 4c765758c18d7aeffe6e1cf658d2847f9460a956
2008-11-21 09:43:20 +00:00
danielk1977
b247c21c15 Fix the problems demonstrated in tkt35xx.test in a different way to (5936). (CVS 5938)
FossilOrigin-Name: ddf980a50127a9de35edeca5549f4b51e3f733e6
2008-11-21 09:09:01 +00:00
danielk1977
3e168ebec2 Add another test case to tkt35xx.test showing that a statement rollback can also trigger the problem. (CVS 5937)
FossilOrigin-Name: 74c08b8dd9577d1997b4bc8147beed786150f22b
2008-11-21 08:50:50 +00:00
drh
c047b9f74d On a ROLLBACK, if there page cache entries which are dirty but not in the
rollback journal, make sure they get reinitialized in the btree layer. (CVS 5936)

FossilOrigin-Name: faded96f36229ee85039276db693391d0f10648c
2008-11-21 03:23:43 +00:00
drh
41022645ee Fixes to the proxy locking so that os_unix.c compiles on linux with proxy
locking omitted. (CVS 5935)

FossilOrigin-Name: 6f910b7036817f4bb4de807bf48938d20ab033cc
2008-11-21 00:24:42 +00:00
aswift
aebf413d9a Added support for proxy file locking style
Added pragma support for controlling proxy file locking
Added file control access to last errno and proxy locking
Added support for TMPDIR environment variable
Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934)

FossilOrigin-Name: b9bc36d3d5e35821ef69c0881a84c0afed253c9e
2008-11-21 00:10:35 +00:00
drh
d164fd3483 When a memory allocation fails on the %Q conversion in sqlite3_mprintf(),
make sure the error is reported back up the call stack. (CVS 5933)

FossilOrigin-Name: eebacbc9d7d0625dfbe6367046fa4a0ca9c04e74
2008-11-20 18:20:28 +00:00
shane
c7b7f1ae1d In os_win.c, if SQLITE_TEST defined, winRandomness() should return all zeroes like os_unix.c. (CVS 5932)
FossilOrigin-Name: 00b68a1e3164fbf04dabb480c2037be45612b4e4
2008-11-19 21:35:46 +00:00
drh
10ec0fa557 Version 3.6.6 (CVS 5931)
FossilOrigin-Name: 01a6e2820af0729f01ce90664ce9a6aa63e5b09a
2008-11-19 21:03:37 +00:00