Commit Graph

2138 Commits

Author SHA1 Message Date
danielk1977
cc6bd38380 Fix an assertion failure due to interaction between the count_changes pragma and triggers. (CVS 2187)
FossilOrigin-Name: 6c7bec1b3aee0287e30f43c1d6a7b67b1c47e774
2005-01-10 02:48:49 +00:00
drh
49766d6cd0 Tcl interface does as sqlite3 or as sqlite. A compile-time option allows
duel linking.  Also fix a bug in the pragma change from earlier today. (CVS 2186)

FossilOrigin-Name: ad10953799f3aa15fde41cbbd5911a3b56c326ec
2005-01-08 18:42:28 +00:00
drh
268283bc7f Fixes to the temp_store_directory pragma. (CVS 2185)
FossilOrigin-Name: 0a90eaf398aa4a689cd8326cd017951513ca748a
2005-01-08 15:44:25 +00:00
drh
4b238dfb80 Fix a comment. (CVS 2184)
FossilOrigin-Name: 26fbac8f031b305fe98add4422ab606ed116844a
2005-01-08 15:43:18 +00:00
danielk1977
42741be968 Fix a problem with auto-vacuum databases and the VACUUM command. Also add "pages read" and "pages written" statistics to the pager layer. (CVS 2183)
FossilOrigin-Name: fb3bf68d0e83b463c7e2f95b4502ba6f8158c074
2005-01-08 12:42:39 +00:00
danielk1977
59adfaa6ce Minor test script changes to allow all.test to run when SQLITE_DEFAULT_AUTOVACUUM=1 is defined. (CVS 2182)
FossilOrigin-Name: 5023b1dba2e61bb10d1b488874e3d3eea3973145
2005-01-08 02:35:44 +00:00
danielk1977
d9c847dcd1 Reset the temp_store_directory each iteration of tests in all.test. (CVS 2181)
FossilOrigin-Name: 7373a5d4cf2db921b33132c736ad62ab702d7cde
2005-01-07 10:42:48 +00:00
danielk1977
a3ad5e7d9f Fix a read of invalid memory that could occur in btree.c. (CVS 2180)
FossilOrigin-Name: 929745c1833e7f4323884a1bc0c632f5b319da35
2005-01-07 08:56:44 +00:00
danielk1977
dcd7c471ce Remove incorrect assert() and add extra option to account for non-standard 'sort' program in some linux versions. (CVS 2179)
FossilOrigin-Name: bf14387697459d8d348a35ca50e2ee9407dcf1e1
2005-01-07 01:56:17 +00:00
tpoindex
9d9f76c0b6 add --enable-debug to configure options, controls -DNDEBUG flag (CVS 2178)
FossilOrigin-Name: 9d674d1dc09f72c64ef7f37cd9838c7a9c50b746
2005-01-03 21:28:56 +00:00
tpoindex
7a9b161587 add comment that table is accessed by primary key (CVS 2177)
FossilOrigin-Name: 707690c5f2e1340bbbb4cb06e6b2b76a2a3b5f0d
2005-01-03 18:13:18 +00:00
drh
49d642dba8 Allow GROUP BY on aggregate queries only. Ticket #1039. (CVS 2176)
FossilOrigin-Name: 8ef2c644ebce851d7a3e0db3b2266fc2519485cd
2005-01-03 02:26:54 +00:00
drh
c89b91beee Fix typos in comments in test code.
(Oops.  This check-in also picked up some unrelated
changes to documentation.) (CVS 2175)

FossilOrigin-Name: 586acc85b170f84d6e0dbd2e293da19551242f5a
2005-01-03 01:32:59 +00:00
drh
7465a80899 Fix a typo in a comment. No code changes. Ticket #1052. (CVS 2174)
FossilOrigin-Name: 9fb1402f0835b214c9174866653e95416b32f860
2005-01-03 01:28:51 +00:00
drh
acf3b988f6 Fix comment typos. no code changes. (CVS 2173)
FossilOrigin-Name: 4165217e5114f5377f0823c63ff2aba879927ce7
2005-01-03 01:27:18 +00:00
drh
e6f85e71e9 Fix ticket #1046 by removing code and simplifying the query optimizer.
Remarkably, this simplification also makes the optimizer do a better job.
Ticket #1051 was fixed as a side-effect. (CVS 2172)

FossilOrigin-Name: 5fd1f4711885e3dd6fb2c2700287f78bb0ea178a
2004-12-25 01:03:13 +00:00
tpoindex
9a09a3caed Add PRAGMA 'temp_store_directory'. Added os_*.c function
sqlite3OsIsDirWritable(), split pragma.c changeTempStorage() function into
invalidateTempStorage(). (CVS 2171)

FossilOrigin-Name: 772e22cbd69463be41c2e73b4fd4eb33946193c4
2004-12-20 19:01:32 +00:00
drh
9012bcbc0a The optimizer now uses only the index and ignores the table if it can get
away with doing so, thus saving a single BTree search per row of result.
This could potentially double the speed of certain queries.  The
code passes all regression tests but new tests to exercise the new
functionality are yet to be added. (CVS 2170)

FossilOrigin-Name: e5aa489453bf31126da6473ef93c89ec27935cde
2004-12-19 00:11:35 +00:00
drh
51669863a8 Improvements to the query optimizer. This is a work in progress. (CVS 2169)
FossilOrigin-Name: 9b86993ff721b577b920c7c67fb41d3d4355fe88
2004-12-18 18:40:26 +00:00
drh
9ee3cdcba7 Fix a C++-ism in the previous change to tclsqlite.c. (CVS 2168)
FossilOrigin-Name: b49b8fdd11a5a4aac15ceda58a28bbc852f6f239
2004-12-17 20:48:06 +00:00
tpoindex
1067fe1104 Add 'copy' method for tcl interface. Behaves similar to shell .import or COPY statment in 2.x. (CVS 2167)
FossilOrigin-Name: a9311d9df054a91e231d4e4332df0d661675744d
2004-12-17 15:41:11 +00:00
drh
be5fd4906d Make sure LIMITs are handled correctly on UNION operators. Ticket #1035. (CVS 2166)
FossilOrigin-Name: ece0085f86bd715c95a6c59f41b4a97de2555faf
2004-12-16 21:09:16 +00:00
drh
23bf66d6af Minor code and comment cleanup. (CVS 2165)
FossilOrigin-Name: d012628a78edaa8d3cb438a7dcc3770b2eb8588b
2004-12-14 03:34:34 +00:00
drh
6a8903c3fc Factor the test for zName==NULL out of the loop. Ticket #1032. (CVS 2164)
FossilOrigin-Name: 7f38f67c7b427ea46db2e95fdfadc1aae064c704
2004-12-10 18:00:04 +00:00
drh
daa28ff326 Fix a problem with the automatic generation of the opcode name table. (CVS 2163)
FossilOrigin-Name: 9eefabc92d3924bcaa2ae0f425fe5635824c64ec
2004-12-10 17:17:18 +00:00
drh
93468367fe Back out the USE_TCL_STUBS changes because it breaks the build. I think
the strategy needs to be to abandon libtool and use tcl.m4 to figure out how
to build our own shared libraries.  Ticket #1034. (CVS 2162)

FossilOrigin-Name: 7f4679b92ec764bf5c11a0f19876073a94742092
2004-12-10 03:08:12 +00:00
drh
b571b457fa Improvements to the --help option to configure. Ticket #1033. (CVS 2161)
FossilOrigin-Name: 3032cc2b88800e7226e6fab8f5ca7a7e8dbac36e
2004-12-10 02:20:27 +00:00
drh
8671e6d784 Add a -DUSE_TCL_STUBS to the standard Makefile. This might help with
ticket #1034.  Or maybe not. (CVS 2160)

FossilOrigin-Name: 4c30c373ef674505d275e4a1e8868c9f72a3a1ef
2004-12-10 02:08:41 +00:00
drh
10fb11da9e Enhance sqlite3_bind_parameter_index so that is does not segfault if
you call it incorrectly by passing NULL in place of the parameter name.
Ticket #1032. (CVS 2159)

FossilOrigin-Name: bf81aabff1303b66f12d28b730d19b7cbdb2de6a
2004-12-09 18:29:13 +00:00
drh
2530378003 Only evaluate expressions once for UPDATE and INSERT statements that
have BEFORE triggers.  Fix for ticket #980. (CVS 2158)

FossilOrigin-Name: 4852186aca3be6ea40069b6831079197e5fa757a
2004-12-07 15:41:48 +00:00
drh
dca7684141 Simplify the trigger logic for DELETE, INSERT, and UPDATE. (CVS 2157)
FossilOrigin-Name: 8e164ab27771aced9a592ea4b7c27e9f184181a5
2004-12-07 14:06:13 +00:00
drh
81db88e630 Remove the unused sqlite3_context.isStep element. (CVS 2156)
FossilOrigin-Name: 7b20f2b71f679e72b6cb3b78ccb31b4e7c4bd48b
2004-12-07 12:29:17 +00:00
drh
32c0d4f17b Updates to API documentation and comments in sqlite3.h. (CVS 2155)
FossilOrigin-Name: 46584348f3cc10c0c6e9ba42110a6c03caf1497e
2004-12-07 02:14:51 +00:00
drh
61212b69c1 Get the build of sqlite3_analyzer working with Makefile.in. (CVS 2154)
FossilOrigin-Name: f7415a0d6433980ff6c25cf2238f5e9881c38873
2004-12-02 20:17:00 +00:00
drh
4b2266ae4c Disable the cursors. "make install" now builds and installs a TCL package
for SQLite if TCL is installed on the system. (CVS 2153)

FossilOrigin-Name: d75014c299496a02f6850545beb0ab669802bf87
2004-11-27 15:52:16 +00:00
drh
7b5717e1a1 The configure script now automatically detects tclConfig.sh and builds the
Tcl extension only if tclConfig.sh is present.  The Tcl extension can be
disabled using --disable-tcl. (CVS 2152)

FossilOrigin-Name: 12424bef7770f3d256d386251477a1da78be2bde
2004-11-25 13:50:01 +00:00
drh
3b7b78b312 Fix a memory leak in pager.c. (CVS 2151)
FossilOrigin-Name: 0ad4ed87ce1112663ca94805dea167372485396a
2004-11-24 01:16:43 +00:00
drh
251b067ccd fulltest runs now, but still finds a memory leak. (CVS 2150)
FossilOrigin-Name: 5944d51e6c164270301b57e4351add4cb6137be6
2004-11-23 22:16:39 +00:00
danielk1977
8b840013da Fix a memory leak in ALTER TABLE. (CVS 2149)
FossilOrigin-Name: ba71716ce21ae99b10b2d0b61092497872770ef7
2004-11-23 16:31:16 +00:00
danielk1977
1d54df88e3 Add authorization callbacks for REINDEX. (CVS 2148)
FossilOrigin-Name: 9f0d744ee4d99f44e88c6f799821791c3b5f31b6
2004-11-23 15:41:16 +00:00
danielk1977
78583d2440 Include the 'FOR' keyword in builds that include cursors but not triggers. (CVS 2147)
FossilOrigin-Name: 3053d82d7192ff77ff5f1fee143d784d5d51772a
2004-11-23 12:24:13 +00:00
danielk1977
11cf9fbcf2 Make the test suite pass when SQLITE_OMIT_SCHEMA_VERSION_PRAGMAS is defined. (CVS 2146)
FossilOrigin-Name: ff20c623c64d67b19c13c4fd3afe8ea137bb8a0b
2004-11-23 11:16:42 +00:00
danielk1977
c7b4a44cda Ensure the test suite runs with SQLITE_OMIT_PAGER_PRAGMAS defined. (CVS 2145)
FossilOrigin-Name: 2d1f0b923d3c5a669959a03a4344fddcb69c7a98
2004-11-23 10:52:51 +00:00
danielk1977
27188fb5f0 Have tests pass when SQLITE_OMIT_SCHEMA_PRAGMAS is defined. (CVS 2144)
FossilOrigin-Name: 6ccb589bd94fc7d33e07caa39e011c3628563e9b
2004-11-23 10:13:03 +00:00
danielk1977
ae82558bd0 Fix a bug involving balance_shallow() and the sqlite_master table. (CVS 2143)
FossilOrigin-Name: 557be3ff5b1c46a3f3836ea3a9d9dede5dc46998
2004-11-23 09:06:55 +00:00
drh
e4e7207248 More work on the implementation of cursors, but they are still not
functioning. (CVS 2142)

FossilOrigin-Name: 8b61d1ae1ca469b80f2b344d550c3b363448b193
2004-11-23 01:47:30 +00:00
drh
b6c29897eb Add initial infrastructure for cursors. In where.c, optimize out clauses
of the form "ORDER BY rowid" if a table scan is being performed.  Do a
reverse table scan if "ORDER BY rowid DESC" is present. (CVS 2141)

FossilOrigin-Name: fc8c1393c86017a816beb52725b68af3b973f979
2004-11-22 19:12:19 +00:00
drh
8237d45ed8 Fix a long-standing bug in btree.c in the sqlite3BtreePrevious() routine.
The problem has gone unnoticed before now because it only occurs when you
use the OP_Prev opcode on a B+Tree. (CVS 2140)

FossilOrigin-Name: 3d2536c479c943b3a55047898068625f91c872ae
2004-11-22 19:07:09 +00:00
danielk1977
d8702b4d40 Fix a couple of extra test-suite problems with SQLITE_OMIT_VIEW. (CVS 2139)
FossilOrigin-Name: 894c142d115b31506b6b8212e1b850ea28c4ca11
2004-11-22 15:05:58 +00:00
danielk1977
27c774388a Ensure tests pass when SQLITE_OMIT_COMPOUND_SELECT is defined. (CVS 2138)
FossilOrigin-Name: 007be591b7829f9ff38e4b14ba5a5043796c2ff3
2004-11-22 13:35:41 +00:00