drh
45d1b20639
Fix the sqlite3_table_column_metadata() routine so that it gives the correct
...
answer for the "rowid" column in a WITHOUT ROWID table. Enhance it so that
it can be used to check for the existence of a table by setting the column
name parameter to NULL. The routine is now included in the build by
default, even without the SQLITE_ENABLE_COLUMN_METADATA compile-time option.
FossilOrigin-Name: cf9be419a16156a9814e1378bb49b780de977343
2014-12-09 22:24:42 +00:00
dan
9778bd7292
Add extra tests to e_walckpt.test.
...
FossilOrigin-Name: 84f9581019961efa31297f8be48427b17bcca857
2014-12-09 20:13:40 +00:00
drh
80cdfd199b
Lower the default SQLITE_SORTER_PMASZ value back to 10, where it has been for
...
the past couple of releases. Applications that need a larger value can set
one.
FossilOrigin-Name: 1ba8911c18f2fe34c20dc42f25a8f3c1c798fa7a
2014-12-09 19:16:41 +00:00
drh
8c3026ecf3
Make the sqlite3_table_column_metadata() interface available by default and
...
without requiring the SQLITE_ENABLE_COLUMN_METADATA compile-time option.
Other sqlite3_column_* interfaces that have a run-time penalty even if they
are unused still require the SQLITE_ENABLE_COLUMN_METADATA option at
compile-time.
FossilOrigin-Name: 4f7549ff924b8ed8f90fc447cd4be11421453984
2014-12-09 19:07:29 +00:00
drh
f5471925c9
Add the SQLITE_REVERSE_UNORDERED_SELECTS compile-time option that causes the
...
"PRAGMA reverse_unordered_selects" setting to be on by default.
FossilOrigin-Name: 75a803e694d2c4e67579f45d54a0aaf120411a6e
2014-12-09 15:12:11 +00:00
drh
b11c3f22b8
Increase the default minimum PMA size for multi-threaded sorting from 10x
...
the page size to 250x the page size. Provide the SQLITE_SORTER_PMASZ
compile-time option to change this default.
FossilOrigin-Name: b05340fe3cd5f1676a55023228dc8d1a92de5936
2014-12-09 14:42:49 +00:00
mistachkin
0fbd7350a1
Fix harmless compiler warning.
...
FossilOrigin-Name: e97b7a8b4df784d148fefb9554da0f511e351d9f
2014-12-09 04:26:56 +00:00
dan
785a38f066
Add extra tests to e_walckpt.test.
...
FossilOrigin-Name: d6832aa24c8d93b4532a651b86605bd0a0d0aa78
2014-12-08 20:29:23 +00:00
dan
0235a0331f
Add missing mutex calls around a call to sqlite3SchemaGet() within sqlite3_open().
...
FossilOrigin-Name: 45415899545767888d36dcc0bafaf0ef415d94c2
2014-12-08 20:20:16 +00:00
drh
b88c7b550c
Add a missing mutex around calls to clear the KeyInfo cache when closing
...
a database connection.
FossilOrigin-Name: 7047ce32a234484b8ba15311e6560aa74ff692c9
2014-12-08 18:08:45 +00:00
dan
8f1eb8a1cb
Avoid accessing a single uninitialized byte when moving a rare 3-byte cell from an internal page to a leaf. This was not actually causing a problem, just a valgrind warning.
...
FossilOrigin-Name: 6aeece19a235344be2537e66a3fe08b1febfb5a0
2014-12-06 14:56:49 +00:00
drh
d52d52be80
Fix a (harmless) uninitialized variable reference in b-tree balancing for
...
auto-vacuumed tables with overflow pages.
FossilOrigin-Name: dd1dd4451f468599f7a0c2f7b5ee6125db3bb152
2014-12-06 02:05:44 +00:00
drh
cd934c3d2c
Avoid a potential NULL pointer deference in the sqlite3_stmt_scanstatus()
...
logic.
FossilOrigin-Name: 42d44adc13d52b8dd571c9375eb48298123d5a60
2014-12-05 21:18:19 +00:00
dan
5cca94ea71
Fix a buffer overread that might occur in analyze.c if SQLITE_ENABLE_STAT4 was defined.
...
FossilOrigin-Name: c1ae1268b9023a771fda98f26bf451c6066fe70b
2014-12-05 21:04:26 +00:00
dan
2928d32791
Add new test file e_walckpt.test. Still some tests to come.
...
FossilOrigin-Name: e4db3db3a65ecfd4069a40d436aa7a5512d61a30
2014-12-05 20:46:19 +00:00
drh
fe32daaeaa
Make sure the WhereTerm objects are fully zeroed when they are allocated.
...
FossilOrigin-Name: fdb667335c2250239a66143aec4235325dec8274
2014-12-05 19:50:58 +00:00
drh
ebdb81dd45
The KeyInfo cache must be cleared before closing the btree, not after.
...
Revised fix for ticket [e4a18565a36884b00edf].
FossilOrigin-Name: 7ed3346e8c10dbf52fd44ab69900699d4f7ad3fd
2014-12-05 15:31:33 +00:00
drh
318dc0b425
When closing a (shared-cache) database connection, be sure to clear out
...
all KeyInfo objects cached on Index objects.
Fix for ticket [e4a18565a36884b00edf].
FossilOrigin-Name: adca7688de20ff40d8ddf2107dfaf92af3873b83
2014-12-05 14:44:57 +00:00
drh
351064b452
Improved comment on the sharedB.test test script.
...
FossilOrigin-Name: 71f589e3f82a07513425e212072f32748c0732d4
2014-12-05 14:34:30 +00:00
drh
a895a4d22c
Test case demonstrating the problem described by
...
ticket [e4a18565a36884b00edf].
FossilOrigin-Name: ffea3e905adc108d2dc37f5d6da2024f0389f176
2014-12-05 14:07:53 +00:00
drh
ffc8f3e201
When closing a (shared-cache) database connection, be sure to clear out all
...
KeyInfo objects cached on Index objects.
Proposed fix for ticket [e4a18565a36884b00edf].
FossilOrigin-Name: 651ed97de13234be60a1138a98b06d308449a791
2014-12-05 05:38:02 +00:00
drh
2c3abeb8c3
Fix compiler warnings.
...
FossilOrigin-Name: e9955c0e14d13ba1411f013acb4979958dae2516
2014-12-05 00:32:09 +00:00
drh
5de7d966bd
Fix the autoconf and MSVC makefiles, which have been broken for nearly a
...
month. :-(
FossilOrigin-Name: 520c2b838da8b230487c8c66f3ba8e5daa1ca886
2014-12-05 00:17:39 +00:00
drh
dea7d70d1b
Make sure that a DISTINCT query with an ORDER BY works correctly even if
...
it uses a descending index. Fix for ticket [c5ea805691bfc4204b1cb9e].
FossilOrigin-Name: 0d3aef97ebddf422b8bdcbc5878970c6129e3f54
2014-12-04 21:54:58 +00:00
drh
1d32488037
Performance enhancement for single-table queries with many OR-connected
...
WHERE clause terms and multiple indexes with the same left-most columns.
FossilOrigin-Name: 1461d543ac8a3e4a54405067893146c74576bb4e
2014-12-04 20:24:50 +00:00
drh
72673a24e2
If a table is the right operand of a LEFT JOIN, then any column of that
...
table can be NULL even if that column as a NOT NULL constraint.
Fix for ticket [6f2222d550f5b0ee7ed].
FossilOrigin-Name: 6f6fcbe4736b9468a495c684d5eebc8bfe5c566a
2014-12-04 16:27:17 +00:00
drh
d8922052b2
Clarification of the meaning of the second parameter to the busy-handler
...
callback. No changes to code.
FossilOrigin-Name: 1e2bc484f8e7766a493bfeab04d82e50f37217b8
2014-12-04 15:02:03 +00:00
drh
063970a15f
Fix comment typos reported on the mailing list. No changes to code.
...
FossilOrigin-Name: 93a71c9f058b58d11187293a1e8d5324d0911880
2014-12-04 14:01:39 +00:00
drh
a25165fa68
Add an implementation mark and fix a comment describing the OP_Checkpoint
...
opcode.
FossilOrigin-Name: 7475b90c558157802b036162376fceacc1b9ab4a
2014-12-04 04:50:59 +00:00
drh
dd90d7ee81
Add evidence marks and assert()s used as evidence for checkpoint requirements.
...
FossilOrigin-Name: b2da8afc7657266fbe8e683c6e50fe18216cbcf3
2014-12-03 19:25:41 +00:00
drh
86e166a778
Fix over-length comment lines in sqlite.h.in. No changes to code.
...
FossilOrigin-Name: cbd357fd8c25c9c6043063710a3e2a89ff8b4575
2014-12-03 19:08:00 +00:00
drh
bb9a378df3
Simplify the sqlite3_wal_checkpoint() documentation. Add some source code
...
evidence marks.
FossilOrigin-Name: 026c44ff2c092b14faa19985dd46873aeb8727dc
2014-12-03 18:32:47 +00:00
drh
5b875311a3
Futher tweaks to the sqlite3_wal_checkpoint_v2() documentation.
...
FossilOrigin-Name: 7d284d047b0677fb4532df5aae06f5bad997f5e9
2014-12-03 16:30:27 +00:00
drh
2d2e7bfeff
Updates to the documentation for sqlite3_wal_checkpoint_v2() and related
...
interfaces, including adding many requirements marks.
FossilOrigin-Name: 1e212d9899387344fd62c7b6fbcc59ea885b6d7c
2014-12-03 15:50:09 +00:00
drh
2f89546001
Add support for SQLITE_CHECKPOINT_TRUNCATE.
...
FossilOrigin-Name: edda2b9e7a15ed486de81b10dd9bacd39c571d3f
2014-12-02 20:51:52 +00:00
dan
0fe8c1b967
When attempting to restart a wal file, make any required calls to sqlite3_randomness() before waiting on or checking for wal file readers. This restores the behaviour exhibited by the trunk.
...
FossilOrigin-Name: 6ee08769f0ffbb3d620c66b89180ece7782dc820
2014-12-02 19:35:09 +00:00
dan
f26a1549ac
Add the SQLITE_CHECKPOINT_TRUNCATE option.
...
FossilOrigin-Name: 8e20a43419e46b6b9d1f60ec7ea420bbfb3ef358
2014-12-02 19:04:54 +00:00
drh
1fd2d7d471
Convert two unreachable branches into assert() statements.
...
FossilOrigin-Name: 61b31e771430f490fc2c4cef55046debc4a5f4f5
2014-12-02 16:16:47 +00:00
drh
9b5444af6c
Work around overzealous NULL pointer checking in memcpy() and memset() for
...
some systems.
FossilOrigin-Name: 0d04f380e1bd17104b3cf76b64d0cfc79a726606
2014-12-02 13:46:53 +00:00
drh
ac5649a985
Remove the ill-designed "-end" option from the command-line shell. Instead,
...
allow multiple SQL or dot-commands as command-line arguments. Any -cmd
commands are processed first, followed by other command-line arguments, for
backwards compatibility.
FossilOrigin-Name: 24fa2e9832daaa5d68ee28a00c56c55f97a4da9e
2014-11-28 13:35:03 +00:00
drh
cb7fe0ab9c
Add the -end option to the command-line shell, which forces it to exit after
...
reading prior command-line options (presumably including one or more -cmd
options) and without reading standard input.
FossilOrigin-Name: b59397b1f1e32c478b5fa96659cd4300177d39f7
2014-11-28 11:54:44 +00:00
dan
d89b834f54
Fix a buffer overread during compilation of CREATE VIRTUAL TABLE statements that featured an explicit database name but no virtual table arguments. For example, "CREATE VIRTUAL TABLE main.ft USING fts4".
...
FossilOrigin-Name: f095cde579e7417306e11b5c1d2dd90b6bb547d5
2014-11-27 11:36:36 +00:00
drh
3f2d22e1a3
More test cases for the balancer.
...
FossilOrigin-Name: 358ea818f7ea5aa55bafaf4057e9fc7a5fd77c11
2014-11-27 04:23:19 +00:00
drh
5ab63775dd
Fix a problem in the new b-tree balancer that was causing corruption of
...
the fragmentation count.
FossilOrigin-Name: f242394e079dd185aad90f2aee902a5edf27e150
2014-11-27 03:46:04 +00:00
dan
0a79238b39
Fix an integer overflow bug in vdbesort.c.
...
FossilOrigin-Name: 623827192532f08b68bc0eb9ed1449e173361f0c
2014-11-25 18:59:55 +00:00
drh
0da10d3289
Always reinitialized the Index.bUnordered and Index.noSkipscan flags before
...
rereading the sqlite_stat1 table, even if SQLITE_ENABLE_STAT4 is defined.
FossilOrigin-Name: 1e1221fc4823a6bb6fc5d2408732e27aca585de9
2014-11-22 21:37:00 +00:00
drh
ab4624d005
Fix an error in the comments from the previous check-in.
...
FossilOrigin-Name: 9660ce541837ccd8df415641a922274e093056aa
2014-11-22 19:52:10 +00:00
drh
7a1bca7e74
Deploy heuristics (well-commented) to better estimate how much unindexed terms
...
in the WHERE clause filter the number of output rows from a single table.
FossilOrigin-Name: 221659945c3f78d3b6789bfe8fdeb8d3ee1fa038
2014-11-22 18:50:44 +00:00
drh
a3898250d4
Remove a redundant test case (probably a copy/paste error). Add an assert()
...
to where.c to ensure that automatic indexes do not have there output row
counts adjusted downward by supplementary constraints.
FossilOrigin-Name: eea47933493c85a85247ad383bd148b06f627d04
2014-11-22 12:22:13 +00:00
drh
643091f071
Fix a typo in a requirements mark on the abs() SQL function.
...
FossilOrigin-Name: b1e6c02f8b9a2afaa12ac15a33e3f698c3be27d6
2014-11-20 23:21:23 +00:00