drh
01c7dc887c
Increase the upper bound on SQLITE_MAX_ATTACHED from 30 to 62.
...
FossilOrigin-Name: 7aaf8772274422f5020fad9eea490e195170720f
2011-03-23 18:22:34 +00:00
drh
2327275b8c
Another minor simplification brought to light by clang.
...
FossilOrigin-Name: 3bfbf026dd6a0eeef07f8f5f1ebf74c9cfebcd61
2011-03-06 21:54:33 +00:00
drh
cfd654bf2a
Fix an instance of signed arithmetic overflow and an one bit-shift overflow.
...
Mark six other signed arithmetic overflow locations that need fixing.
FossilOrigin-Name: 04abab71ecd52f6070b9f84781a3df3d6dba7722
2011-03-05 13:54:15 +00:00
drh
e9ce585779
Add a NEVER() around a test that is believed to always be false.
...
FossilOrigin-Name: f7e2ea33d5b37e5b133d96e96a11d2842504355c
2011-02-11 22:54:28 +00:00
dan
19611b1a88
Ensure that if a deferred FK constraint is violated by a statement that creates its own implicit transaction, the statement is not an "active-write" after sqlite3_step() returns.
...
FossilOrigin-Name: 8063197ef141c0c62ba710efdd2b3421fbee4e5d
2011-01-24 16:00:58 +00:00
drh
10fc727d35
Update the sqlite3_stmt_readonly() interface so that its output is
...
well-defined for all prepared statements, and so that it gives the
correct result for VACUUM.
FossilOrigin-Name: 9c19b7ae3542fd1fac692b4471f1839b22685c76
2010-12-08 18:30:19 +00:00
dan
271065704c
Avoid recursive calls to sqlite3VdbeMemRelease() when deleting VM frames used by trigger programs.
...
FossilOrigin-Name: 119ffe955eb1e8016cb8131a63bd17557f395f3f
2010-12-01 08:04:47 +00:00
dan
2ce224535f
Experimental changes to EXPLAIN QUERY PLAN.
...
FossilOrigin-Name: f4747eb83dacce6430ad6e5eb20155ffad975514
2010-11-08 19:01:16 +00:00
drh
8c96a6eac0
Remove unreachable branches to facilitate test coverage.
...
FossilOrigin-Name: 86bcb9aab901713684f978479d29304cc9699e84
2010-08-31 01:09:15 +00:00
dan
5653e4da36
Add coverage tests for pager.c.
...
FossilOrigin-Name: 228c5b16af80c22e97d9d4deb351e0d3f4523f89
2010-08-12 11:25:47 +00:00
drh
be0b237e6a
If a database becomes corrupted such that an index is out of sync with its
...
table, make sure the corruption is detected and reported back. Do not assume
that indices always contain rowids for valid table rows.
FossilOrigin-Name: 83395a3d24f18170fc068d9e644291678694c3f0
2010-07-30 18:40:55 +00:00
drh
abfb62f9bd
Cherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of
...
the experimental branch.
FossilOrigin-Name: 40f7f0a583e6bba66cd006253a0ef4623ea74f17
2010-07-30 11:20:35 +00:00
drh
f37c68e036
Further fixes to the P4_MEM size measurement logic.
...
FossilOrigin-Name: 934cda2987c331b57a195ed45e9a91794896672a
2010-07-26 14:20:06 +00:00
drh
c176c27cbc
Fix an issue with P4_MEM and the schema size measurement logic. Also fix
...
a compiler warning.
FossilOrigin-Name: 8166f33885b86029bb8a0fbaf70606a0d2d5ec2e
2010-07-26 13:57:59 +00:00
drh
7043db9f6f
Make sure sqlite3_free() is not called for P4_MPRINTF during a size
...
measurement.
FossilOrigin-Name: 56f11f8823cd06a69eebce6a9613e22b1810b59b
2010-07-26 12:38:12 +00:00
dan
d19c933e8e
Change the way SubProgram objects are deleted so that the code is the same for deletion and measurement.
...
FossilOrigin-Name: 00e55102a8309eb6df08ad4a8937ba02688bac62
2010-07-26 12:05:17 +00:00
drh
174b9a166d
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree()
...
and all memory from sqlite3_malloc() is freed by sqlite3_free().
FossilOrigin-Name: 629e38a8c9e31111e351fe4625a5835576d23584
2010-07-26 11:07:20 +00:00
drh
b975598ea0
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and
...
all memory from sqlite3_malloc() is freed by sqlite3_free().
FossilOrigin-Name: ac1f37a647e9ed1c00a901d26d9956a86c40117a
2010-07-24 16:34:37 +00:00
dan
d46def77db
Experimental code to measure memory consumed by database schemas and prepared statements.
...
FossilOrigin-Name: 9aa30342f4de4eff630520ea8e07ad253d3f0877
2010-07-24 11:28:28 +00:00
drh
a0b75da197
Take out the incomplete initializer on the constant "dummy" in
...
sqlite3VdbeGetOp(). Add a comment that the MSVC warning there should
be ignored.
FossilOrigin-Name: 452ccaa9080e42657b5f0908bf40dbd834cd39f6
2010-07-02 18:44:37 +00:00
shaneh
8a300f8095
Fix a couple more compiler warnings under MSVC.
...
FossilOrigin-Name: 26bc27e3f4c8a666f3358f73fc21eccdec3508f6
2010-07-02 18:15:31 +00:00
drh
f83dc1ef3f
Remove global variables when compiled with SQLITE_OMIT_WSD
...
FossilOrigin-Name: dd10a547f10364058025c48b28d8fd240bf46aff
2010-06-03 12:09:52 +00:00
dan
40ad9d2870
If an error (OOM or SQLITE_FULL error) occurs while executing an SQL statement and a statement-transaction is automatically rolled back as a result, if a second error occurs during the statement rollback do a full transaction rollback instead. Otherwise the client can be left with an inconsistent cache.
...
FossilOrigin-Name: eb80ddc665132c607c258b59131025a296269dad
2010-06-03 09:17:38 +00:00
drh
3ebaee9633
The PRAGMA journal_mode=WAL; command now makes WAL the default journal mode
...
for new databases added with ATTACH, so the behavior is consistent with the
other journal modes.
FossilOrigin-Name: c3520460a4a39fc5e981c3033068ffbb422a4af2
2010-05-06 21:37:22 +00:00
dan
6908343c65
Zero the "immediate FK constraint counter" associated with a statement object when sqlite3_reset() is called. Fix for [c39ff61c43].
...
FossilOrigin-Name: f660be615a0c1f4641782a83744533f5d3119218
2010-04-29 22:57:56 +00:00
drh
a378c566d2
Take care to avoid a buffer over-read when adding a KEYINFO structure
...
to the P4 parameter of an opcode.
FossilOrigin-Name: 937b931a7cdad6874638158ed6a9ab6356b0bd0c
2010-04-02 12:55:38 +00:00
drh
280799b4ff
Attempt to suppress a warning from Borland Code Guard.
...
FossilOrigin-Name: be278979917336e7186d7830876180154b5280ba
2010-03-24 11:55:08 +00:00
drh
3517324ddc
Add NEVER and assert macros and explanatory comments for unreachable
...
conditions.
FossilOrigin-Name: ffb6596e6c80e284c1542b03f2c7bbfce0bd87d9
2010-03-08 21:40:13 +00:00
drh
4611d925a9
Expire pragma statements when reset, even if they were not run to completion.
...
FossilOrigin-Name: 78351d289bba83e536b64666c566b7bfc57351da
2010-02-25 14:47:01 +00:00
drh
9978c97ec5
Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging
...
output for CORRUPT, and CANTOPEN errors.
FossilOrigin-Name: 7c4cca6d1a23a6d1591b62f58c3716a944969947
2010-02-23 17:36:32 +00:00
drh
87f5c5f16e
Manually copy over the rebustness fixes from the apple-osx branch.
...
FossilOrigin-Name: 095c74ea6260096f6a600fdc0edccf7ea24aace4
2010-01-20 01:20:56 +00:00
drh
5cfa584831
Add comments and an assert() to help clarify the operation of the
...
sqlite3VdbeList() routine used to implement EXPLAIN.
FossilOrigin-Name: e1ccdb93d79a6f7b16f1f59cc3ad78f8d02eae84
2009-12-31 20:35:08 +00:00
drh
19875c8240
Add comments to better explain the two-pass memory allocation approach
...
for prepared statements.
FossilOrigin-Name: 0e5e18ea12c70559d4c63981c0bb5f9430c5bcbb
2009-12-08 19:58:19 +00:00
drh
4800b2ee95
Avoid pointer aliasing in the allocSpace() routine in vdbeaux.c.
...
FossilOrigin-Name: d6ae27512229d95502c584b17bb2cbdba401f80a
2009-12-08 15:35:22 +00:00
drh
b290e1c75e
Avoid dereferencing a null pointer when doing a multi-database comment where
...
one or more of the databases is an ATTACH-ed TEMP database.
Ticket [abe728bbc311d].
FossilOrigin-Name: f43e37e0a4cc7c15c996f4404dc775636396567d
2009-12-08 13:36:55 +00:00
drh
372726336b
Back out part of the change in [23ea2b700fd6d28d] since TH3 reveals some
...
problems in OOM situations.
FossilOrigin-Name: 15d215d62df72c1bf1e605629692ee40d96546a6
2009-11-16 21:28:45 +00:00
drh
d93a8b276d
Additional optimizations in sqlite3VdbeRecordCompare().
...
FossilOrigin-Name: 23ea2b700fd6d28d3b13663d164faba3760c572e
2009-11-16 03:13:40 +00:00
drh
8b249a886d
Optimizations to the sqlite3VdbeRecordCompare() routine help it to run 12.5%
...
faster for some traces.
FossilOrigin-Name: 74c76f0bf946d184275de478ec72220d76342493
2009-11-16 02:14:00 +00:00
drh
a6c2ed91ca
Optimizations to the main loop inside sqlite3VdbeExec() to help VDBE byte code
...
run a few percent faster.
FossilOrigin-Name: d622ac6ac7a297754494d3a33dbaeea02836272e
2009-11-14 23:22:23 +00:00
drh
8cff69df11
Enhance the OP_Found and OP_NotFound opcodes so that they can accept an
...
array of registers as an unpacked record in addition to a record built
using OP_MakeRecord. Use this to avoid OP_MakeRecord calls during IN
expression processing.
FossilOrigin-Name: b9eab885cd2ca1a1633329e7036c125e8dba62c5
2009-11-12 19:59:44 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
drh
8677d30812
Create a new datatype "ynVar" to hold "nVar" (number of variable) values.
...
This is normally 16-bits can can be 32-bits if SQLITE_MAX_VARIABLE_NUMBER
is large enough.
FossilOrigin-Name: 24a4d520d540d92b611abc4eb57dc6da9be4eac6
2009-11-04 13:17:14 +00:00
shane
f639c40f77
Fix compiler warnings on MSVC build.
...
FossilOrigin-Name: 01c4b5b84ec7ce589e20ea66e80011f092ab32f0
2009-11-03 19:42:30 +00:00
drh
75f8d8be1a
All SQLITE_MAX_VARIABLE_NUMBER to exceed 32767. The sizes of some structures
...
increase when the compile-time parameter is configured this way.
FossilOrigin-Name: 16a24b4485420bdf30d3c8e22cfbaf008e07df02
2009-11-03 01:22:07 +00:00
drh
80bcf232a9
Remove additional obsolete code from the sqlite3_release_memory() logic.
...
FossilOrigin-Name: 2eeb6ed818dac240afe761b4e7c11e961255bf33
2009-10-26 22:32:55 +00:00
dan
1d2ce4f804
Remove the sqlite3_reoptimize() API. The same functionality is now provided automatically to queries prepared using prepare_v2().
...
FossilOrigin-Name: 2c50b3d5aab7cd8cc841d61f8c3b2b34d2f0b54b
2009-10-19 18:11:09 +00:00
dan
937d0dea4f
Add the experimental sqlite3_reoptimize() API.
...
FossilOrigin-Name: 9bd6f3d8864d422fe42074688b191915b27ad8ea
2009-10-15 18:35:38 +00:00
dan
0ff297eaa7
Avoid checking if an insert or delete has "fixed" an outstanding FK constraint violation if the constraint counter indicates that the database contains no such violations.
...
FossilOrigin-Name: 519144ac437b5842e4213f0e81e05c709939c2ab
2009-09-25 17:03:14 +00:00
drh
ff738bce0d
Make sure a transaction is available for rollback whenever a REDUCE conflict
...
resolution occurs and there is the possibility to ABORT.
Ticket [4a03edc4c8c]
FossilOrigin-Name: f0c56fa90dc95aff6fe6764b5ab75a90199247b0
2009-09-24 00:09:58 +00:00
dan
32b09f29c9
Do not check immediate foreign key constraints until the end of the statement. This matches the postgres behaviour.
...
FossilOrigin-Name: 1a32149cc3c722058f4ed4c81edadeb6ce5bc9e4
2009-09-23 17:29:59 +00:00