Commit Graph

4538 Commits

Author SHA1 Message Date
drh a99e881176 Add a new OP_StackDepth opcode to help detect VDBE stack leaks early,
before they cause damage.  For diagnostics in ticket #2832. (CVS 4612)

FossilOrigin-Name: 3fd6a267533cedcca9b8ba3533c107d7341a06c6
2007-12-12 12:00:45 +00:00
danielk1977 ae271d6a38 Fix test numbering in tkt2822.test. Ticket #2830. (CVS 4611)
FossilOrigin-Name: 8fe8e9c460e0f8ebc4267de96b0c971cb6370861
2007-12-12 04:38:26 +00:00
drh 6e41aa0be0 Fix a comment on the SQLITE_SQL_MAX_LENGTH definition. (CVS 4610)
FossilOrigin-Name: 9335c940504f5979066b70ec445b57acfb251713
2007-12-11 20:04:14 +00:00
drh d919fe17e0 Build the CLI using the amalgamation. Relax the limit on SQL statement
length when building the CLI. (CVS 4609)

FossilOrigin-Name: a5d81cd371913dff4b1337a9586645f967371ab9
2007-12-11 19:34:44 +00:00
danielk1977 bc67da48af Fix a 'const' issue in trimFunc(). (CVS 4608)
FossilOrigin-Name: 64787d78b99a549a87bc2baeff8ae87691612b77
2007-12-11 04:23:19 +00:00
drh 64c1ea60cd Make sure the windows driver responds correctly to the
SQLITE_OPEN_DELETEONCLOSE flag.  Ticket #2829. (CVS 4607)

FossilOrigin-Name: 19db91fd683c465b8c8a862143a01178682da445
2007-12-10 21:11:31 +00:00
danielk1977 70517ab9a1 Further modifications to do with ORDER BY and compound SELECT queries. Related to ticket #2822. (CVS 4606)
FossilOrigin-Name: 0d9b0e6e3a8f8a66956878084085842e94c3cb2f
2007-12-10 18:51:47 +00:00
drh 6ed4b78123 Fix a macro in func.c that causes problems for the amalgamation. (CVS 4605)
FossilOrigin-Name: 6adbe91efffc6b3f53dae87494430ede61d40ecc
2007-12-10 18:07:20 +00:00
drh ea4ee79046 Fix a bug in the compilation procedures for the Linux shared library
that includes the TCL bindings. (CVS 4604)

FossilOrigin-Name: d384810a95c97b868a87d090f8dcb903cc82cbf7
2007-12-10 17:55:16 +00:00
danielk1977 284f4aca32 Fix compilation/testing with OMIT_SUBQUERY defined. Ticket #2828. (CVS 4603)
FossilOrigin-Name: 0b34a18651764e650faba983be8593992ab2f4a9
2007-12-10 05:03:46 +00:00
drh 4c77431448 Better resolution of ORDER BY terms in compound queries. Candidate
solution for ticket #2822.  Needs more testing and documentation
before going final. (CVS 4602)

FossilOrigin-Name: 62a78d212c53a9cb1759d03134653a75f3a086b6
2007-12-08 21:10:20 +00:00
drh 9213d9e5fb Strengthen the tests for aggregate functions in GROUP BY clauses.
Changes to test cases only.  No changes to code. (CVS 4601)

FossilOrigin-Name: 4be8e6765bf8bc48747b2542f2ed77066fb9dcb9
2007-12-08 18:01:30 +00:00
drh bed8e7e565 Fix a bug in the debugging printf logic. (CVS 4600)
FossilOrigin-Name: 1d6a9f5fafb862fb31c8589fa118a5672bad6abd
2007-12-08 17:55:35 +00:00
shess b6a75606ed Change prefix search from O(N*M) to O(NlogM). The previous code
linearly merged the doclists, so as the accumulated list got large,
things got slow (the M term, a fucntion of the number of documents in
the index).  This change does pairwise merges until a single doclist
remains.  A test search of 't*' against a database of RFC text
improves from 1m16s to 4.75s. (CVS 4599)

FossilOrigin-Name: feef1b15d645d638b4a05742f214b0445fa7e176
2007-12-07 23:47:53 +00:00
drh e5fe690d75 In shared-cache mode, make sure the busy hander invoked is the
busy handler associated with the database connection that caused
the lock contention in the first place. (CVS 4598)

FossilOrigin-Name: c9eb65912f61ce0a6b66fe253652a1827e46b12a
2007-12-07 18:55:28 +00:00
drh b9175aed38 Get the LIKE and GLOB operators working again on systems using the
EBCDIC character set. (CVS 4597)

FossilOrigin-Name: 754298a74e3d889f3767daba058262613d20a601
2007-12-07 18:39:04 +00:00
drh 464fc33a82 Fix a leaking database connection in the vacuum2 test script.
Ticket #2827. (CVS 4596)

FossilOrigin-Name: f29deb5f0bfcd6d00795aeb66dece717a6c1768a
2007-12-06 17:41:27 +00:00
drh 3c7f2dc4ca Use the specified buffer length, not the maximum buffer length in
unixFullPathname() and related functions. (CVS 4595)

FossilOrigin-Name: f015a38771d98996366d66787b9b066f9ef5e248
2007-12-06 13:26:20 +00:00
drh f5befa0339 Continuing work on the C/C++ interface requirements that appears as
comments in sqlite.h.in. (CVS 4594)

FossilOrigin-Name: 2130e7125187ca46df3f65237f933b0e568a36ed
2007-12-06 02:42:07 +00:00
drh fddfa2d863 Begin adding requirements numbers to the C/C++ interface documentation. (CVS 4593)
FossilOrigin-Name: ae1936aadf00bec91750d41be7507cf1b81fc411
2007-12-05 18:05:16 +00:00
drh ddac25c732 Add the ability to change the autovacuum status of an existing database
by setting the auto_vacuum pragma then running the VACUUM command. (CVS 4592)

FossilOrigin-Name: bdfc19e838b369a8c5d5d23663fad690f55ba3d7
2007-12-05 01:38:23 +00:00
drh 77658e2f0d Make sure statement journals are initiated when doing DROP operations
(since the DROP might fail after sqlite_master changes).  Also make
sure statement journals are initiated if there are pending SELECT
statements.  Ticket #2820. (CVS 4591)

FossilOrigin-Name: bf34284ff0c60ae6e735e09bb29cd48b158e8dce
2007-12-04 16:54:52 +00:00
drh 0349688fbc Fix a bug in the TCL code for sqlite3_analyzer. (CVS 4590)
FossilOrigin-Name: 7c2cf4542852a81daf29a930ab103c52bb678326
2007-12-04 13:41:51 +00:00
drh 2dd62be503 Clarify the operation of sqlite3_blob_close() in the API documentation.
Ticket #2815. (CVS 4589)

FossilOrigin-Name: 78f359dffa6f4af4d5b7e4523f451e0e405350c0
2007-12-04 13:22:43 +00:00
drh 275ac343df Do not require os_other.h if compiling with -DOS_OTHER=1. (CVS 4588)
FossilOrigin-Name: 96ec39031e0b0b9a69e7b5647580326a87f94d2e
2007-12-03 21:52:09 +00:00
danielk1977 fe91033907 When parsing CREATE INDEX statements from the sqlite_master table, do not search the temp database schema for the corresponding table. Only consider the database for which the schema is being parsed. Ticket #2817. (CVS 4587)
FossilOrigin-Name: e6f02aa5ae6da0befdf98fdd5884345f3cb7f5ea
2007-12-02 11:46:34 +00:00
drh 0c1cddbe86 Another fix to Makefile.in for mingw. (CVS 4586)
FossilOrigin-Name: cfaeb02554ab86fffbfb8eb2a78c7d8a59a9cba5
2007-12-01 19:25:17 +00:00
drh 4dd022aba8 Beginning attempts at casting the sqlite.h.in documentation into
formal requirements. (CVS 4585)

FossilOrigin-Name: 2ea78d2cbd86edda6f998fbb364800d3ecf76479
2007-12-01 19:23:19 +00:00
drh afbd06bb93 Bug fix to Makefile.in to allow it to work with mingw. (CVS 4584)
FossilOrigin-Name: fdca98d1eb44c05ffb3c42acb9f87f57460c4cc8
2007-12-01 09:32:53 +00:00
drh 5fc102eac1 Add a few function requirements numbers to interfaces in the comments
of sqlite3.h.in.  This is experimental. (CVS 4583)

FossilOrigin-Name: b829a64515e88e83aecd339342bad3b140c86bb0
2007-11-30 01:06:16 +00:00
drh 7fe3f7e918 Make sure we never try to "truncate" a file to a larger size. (CVS 4582)
FossilOrigin-Name: 7d2f6a1d6c5ab89a3b65fbcaf172abf6d81e206b
2007-11-29 18:44:27 +00:00
drh ace03d1b3a Add the optional (and experimental) mmap() memory allocator in the
mem4.c module. (CVS 4581)

FossilOrigin-Name: cfd683ac80fd043343e0f0af90805058daa3818d
2007-11-29 18:36:49 +00:00
danielk1977 21de2e755c When using an index to scan a database table, read column data from the index in preference to the table. This increases the likelihood that the table will not be required at all. (CVS 4580)
FossilOrigin-Name: 061608c72ac0a96eacf3b64d638235e4739f96ba
2007-11-29 17:43:27 +00:00
danielk1977 9a96b66810 Optimisations for expressions of the form "<value> IN (SELECT <column> FROM <table>)". (CVS 4579)
FossilOrigin-Name: 56d0e32677744df8570b519fae1c04da4ea4984d
2007-11-29 17:05:18 +00:00
drh ade8648301 Add the {quote: StrAccum} object
for accumulating strings.  Revamp xprintf to use
the new object.  Rewrite the group_concat() function to use the new object.
Productize and test the group_concat() function. (CVS 4578)

FossilOrigin-Name: 221aee72be040769e8026b91648f03c6366a8821
2007-11-28 22:36:40 +00:00
drh 26b7994a97 Change the BTree so that it uses the Pagers temporary page space when
reorganizing the rows on a page, rather than mallocing for space of
its own.  In this way, we avoid having to deal with a malloc failure
deep down inside the page reorganizer.  Ticket #2806 (CVS 4577)

FossilOrigin-Name: 98960132dc082da61652201f4bd2b559725350c0
2007-11-28 16:19:56 +00:00
drh 0167f28508 Reorganize the code for the homegrown recursive mutexes. Fix a place
in the previous check-in where the #ifdef label was incorrect.
Ticket #2804. (CVS 4576)

FossilOrigin-Name: 542e11f954983ae26fef4ea850c8b2a20f738edd
2007-11-28 14:04:57 +00:00
drh 5f3d652394 Clarify the conditions under which homegrown recursive mutexes work
(they require a coherent cache) and only enable them if there is an
explicit #define so as to avoid accidental use on platforms that do
not meet the constraints.  Ticket #2805. (CVS 4575)

FossilOrigin-Name: 80299eebddba9aac4c1bc36ffa2b440bffbf1751
2007-11-28 13:55:55 +00:00
drh 4aa2bfe67d Preset the legacy_file_format pragma to the value of the primary
database so that a VACUUM will not unknowingly alter the setting.
Ticket #2804. (CVS 4574)

FossilOrigin-Name: f731fa6bb398d8af621af17dc0677dd0f715c4a7
2007-11-28 13:43:16 +00:00
drh ed05efbf7b Add an implementation of recursive mutexes for unix systems that
lack pthreads recursive mutexes (ex: Solaris 2.6).  Modern unix
systems continue to use the recursive mutexes provided by pthreads. (CVS 4573)

FossilOrigin-Name: f366a776c1b2dda42b4f10fdb8be66029165d084
2007-11-28 00:51:34 +00:00
drh f32fabfd75 Add test cases to verify that the file format is preserved across
VACUUM.  Ticket #2804. (CVS 4572)

FossilOrigin-Name: 57400f50c600a59b56ba6eadfdc740235c194cd6
2007-11-27 23:36:59 +00:00
drh 039edbb479 Use the hexio test utility rather than TCL's binary I/O to avoid
32/64-bit problems in io.test.  Ticket #2803.  (This is a change
to the test harness only - not to SQLite.) (CVS 4571)

FossilOrigin-Name: 07f7dde8a636aa05b917daa6b248c6f98654aab8
2007-11-27 23:11:45 +00:00
drh aa71367a7e Remove superfluous -lpthread from publish_osx.sh. Ticket #2801.
Fix a bug in mkdll.sh. (CVS 4570)

FossilOrigin-Name: 8d6e8fd381d26b9f14464f545c37363218206391
2007-11-27 21:44:30 +00:00
drh f042f51ea7 Omit the superfluous -lpthread option in publish.sh. Ticket #2800. (CVS 4569)
FossilOrigin-Name: 4f09f233f0603696aac80f1a4f86bcc803a00daf
2007-11-27 18:45:31 +00:00
drh 7771c541dd Add the publish_osx.sh script for building binaries for OSX (CVS 4568)
FossilOrigin-Name: 9bd7c31496d1d2959761c09a4cfa94662891b81c
2007-11-27 18:30:38 +00:00
drh e0d5e34623 Update the "publish.sh" scripts used to build the binaries for the website. (CVS 4567)
FossilOrigin-Name: 2f748318fbb8ac4614c07629506b3955ce4fe20d
2007-11-27 17:38:14 +00:00
drh b3a95cd1af Version 3.5.3 (CVS 4566)
FossilOrigin-Name: a39007d5b1f0d8925153ab3aac44fd655ed2536e
2007-11-27 17:12:10 +00:00
drh d3cf2473eb Fix a bug that can cause a segfault on win32 systems following an
I/O error. (CVS 4565)

FossilOrigin-Name: eeec8d27c4533f62b4f7e739d9c895552ddb69ff
2007-11-27 16:55:07 +00:00
drh 0b47d34020 Bug fix in the configure script. Ticket #2799.
The configure script is a real mess and
needs to be completely rewritten. (CVS 4564)

FossilOrigin-Name: 9d15f0330d685e62fbf4a1a1ad18dfecdc511bf8
2007-11-27 14:50:06 +00:00
drh 543165ef97 Update the version number to 3.5.3. Fix some minor testing problems. (CVS 4563)
FossilOrigin-Name: f4c8f2d1918f24514f02cae9172c77f6957d32c1
2007-11-27 14:46:41 +00:00