dan
c3c16cbd61
Fix a couple of test scripts to work with DEFAULT_AUTOVACUUM and OMIT_VIRTUALTABLE.
...
FossilOrigin-Name: 356c6c59311eaf7d5633476f635e94a12b8b3924
2013-08-20 20:25:03 +00:00
dan
e934e633a5
Fix an invalid assert() in where.c. Also a crash that can occur in the EXPLAIN QUERY PLAN code under obscure circumstances.
...
FossilOrigin-Name: ef192abb82c2fc31135f875d7a19908d67c076b0
2013-08-20 17:14:57 +00:00
drh
d0aa2f3afd
Ignore IS NOT NULL and NOT NULL constraints on NOT NULL columns.
...
FossilOrigin-Name: e476408e3c5ba5f3ba5e98ff264167c163d72e3f
2013-08-20 17:00:55 +00:00
dan
4044906210
Test script changes to support testing sqlite3_interrupt().
...
FossilOrigin-Name: 0cede9f898bcd13dab51b25cb0e72213d988d3d2
2013-08-20 16:08:39 +00:00
drh
9b47ee3f09
Performance optimizations in the VDBE and especially to the OP_Next and
...
related opcodes and in the sqlite3BtreeNext() and sqlite3BtreePrevious()
routines. This is a cherrypick of [6f99b54aedeb], [d2efea1682a7], and
[d78c5d89de4b].
FossilOrigin-Name: 7f72fc4f47445a2c01910b268335873de9f75059
2013-08-20 03:13:51 +00:00
drh
f66f26a311
Performance improvement in sqlite3BtreeNext() and sqlite3BtreePrevious()
...
for the common case of a valid cursor.
FossilOrigin-Name: dc65ad8c4c67b21e3b042b8df6580d02b634a90b
2013-08-19 20:04:10 +00:00
dan
2c18788ffa
Initialize a variable in fts3_write.c on the grounds that the argument required to show that it does not require initialization with is complicated. Add an assert() to where.c to silence a clang scan-build warning.
...
FossilOrigin-Name: d6c4d48a002a6d7057fccc30064ce0b049678f0c
2013-08-19 19:29:50 +00:00
dan
e704713cb8
Fix test script pragma2.test so that it works with ENABLE_MEMORY_MANAGEMENT.
...
FossilOrigin-Name: 6acf728100ff339e4451bcefd3a20fd5c3cfd662
2013-08-19 18:37:18 +00:00
dan
290703091e
Add some extra assert() statements to silence a few clang warnings.
...
FossilOrigin-Name: 1c63e9515b5f5cb9169928b108d002dcd18ad4fd
2013-08-19 18:17:03 +00:00
drh
4ccc419b3c
Remove unused variables from the command-line shell sources.
...
FossilOrigin-Name: 753a402e90f3c9f675155ea96ee048dbe7a68700
2013-08-19 14:23:31 +00:00
drh
9e48788e9d
Fix a potential reference off the end of an array in the query planner.
...
FossilOrigin-Name: f15591f80212dd6d4ed8e0f14be691cd578d4cdf
2013-08-19 14:19:00 +00:00
drh
77dfd5bb44
Fixes for harmless compiler warnings.
...
FossilOrigin-Name: a0d9ca4f07f1dc3a189864f8ed9cdb0b1d791b1a
2013-08-19 11:15:48 +00:00
drh
45e3215db0
Add the cache_spill pragma. Change the fullfsync and checkpoint_fullfsync
...
pragmas to apply to all attached databases.
FossilOrigin-Name: 65a85a156f3c827890e9f1fd22484a2f875c3b6f
2013-08-17 16:37:04 +00:00
drh
d3605a4f20
The fullfsync, checkpoint_fullfsync, and cache_spill pragmas apply to all
...
files of a database connection, including those opened by future ATTACH
statements.
FossilOrigin-Name: d07c4331a28d44deca1ece8a34118f5b121b3ee2
2013-08-17 15:42:29 +00:00
drh
d4b5c60eca
Test cases for the cache_spill pragma.
...
FossilOrigin-Name: b85c9ec5e02c1b92faa8eeb9e56e02a576a43a96
2013-08-17 00:25:07 +00:00
drh
40c3941cfa
Add the cache_spill pragma.
...
FossilOrigin-Name: cdb181c04fa99c6c29f23eb68ccb5475e7f6bf9c
2013-08-16 20:42:20 +00:00
drh
0af16ab2c2
Make sure that GROUP BY terms select input column names in preference to
...
output column names, in compliance with the SQL standard.
Ticket [1c69be2dafc28].
FossilOrigin-Name: f2d175f975cd0be63425424ec322a98fb650019e
2013-08-15 22:40:21 +00:00
drh
e35463b312
Bare identifiers in ORDER BY clauses bind more tightly to output column name,
...
but identifiers in expressions bind more tightly to input column names.
This is a compromise between SQL92 and SQL99 behavior and is what
PostgreSQL and MS-SQL do. Ticket [f617ea3125e9c].
FossilOrigin-Name: c78b357c00a35ed48ce2ffbc041de8d22570d1e2
2013-08-15 20:24:27 +00:00
mistachkin
fc7df53aee
Make it easy to attach a debugger the test fixture process prior to any tests being run.
...
FossilOrigin-Name: 53cd9ebfaf401c7932bf591e134a527c9962b88e
2013-08-15 20:05:03 +00:00
drh
26080d9241
Clarification and typo fixes in comments related to name resolution.
...
No changes to code.
FossilOrigin-Name: f30abdf9d814d6c75bf1c803054737c737ad636f
2013-08-15 14:27:42 +00:00
mistachkin
1f28e0703f
Make it easy to attach a debugger the test fixture process prior to any tests being run.
...
FossilOrigin-Name: c23acba11bfefc019b5945cfb345f9afcf4b6242
2013-08-15 08:06:15 +00:00
mistachkin
3dfaf6766c
Fix a few more minor comment typos. No changes to code.
...
FossilOrigin-Name: 9e999081a59b161a0a1f968fbc01a1db9ea43b93
2013-08-14 00:20:23 +00:00
mistachkin
037933b8a7
Fix an outdated comment and a comment typo. No changes to code.
...
FossilOrigin-Name: ac336959490083ffeaaf25aaec97ecb59a2f4536
2013-08-13 22:33:41 +00:00
drh
ab80be99e3
If the SQLITE_EXTRA_INIT function is defined, make sure it is called only
...
once by the effective sqlite3_initialize() call.
FossilOrigin-Name: e2b597cafe7c8a8313b051d6a302fed54f235727
2013-08-08 14:38:45 +00:00
drh
869c0409e3
If the SQLITE_ALLOW_URI_AUTHORITY compile-time option is set, then allow
...
non-localhost authorities on URI filenames and pass them through as a UNC
to the underlying VFS.
FossilOrigin-Name: 3adb6c1bfda897859dc9cf9ae7f1e6719855ee68
2013-08-07 23:15:52 +00:00
drh
3b449ee481
Add a guard #ifndef to test_intarray.h to prevent harm if it is #included
...
more than once. Add a comment on the closing #endif of the guards on
sqlite3.h and test_multiplex.h.
FossilOrigin-Name: 0ad83ceb79767738bd06a28840cf84da0464ab4f
2013-08-07 14:18:45 +00:00
drh
4a6fc3596b
Fix typos and add clarification to comments in where.c. No code changes.
...
FossilOrigin-Name: f8d8790ede0fcaf6c5b60ac22919c1d97c74e838
2013-08-07 01:18:38 +00:00
drh
9fe809c561
Fix a test case related to partial indices so that it works even if
...
STAT3 is disabled.
FossilOrigin-Name: 153c645025637bbff14dfce793e4b92210ded7e8
2013-08-06 19:18:17 +00:00
drh
d3f4964168
Adjust #ifdefs in test_autoext.c so that it compiles with
...
SQLITE_OMIT_LOAD_EXTENSION. Fix compiler warnings in two other
test modules. No changes to the core.
FossilOrigin-Name: 89930ea3c3b3bd078f641b2c5203d851083bbf1a
2013-08-06 18:35:31 +00:00
drh
d9b8c0d761
Update the configure script to use the latest version number (3.8.0).
...
FossilOrigin-Name: 52e8ec5e24730efa6d89cbaf1e03bc1d5c59cc05
2013-08-06 18:21:21 +00:00
drh
812ea83343
Add a testcase() macro to verify OOM coverage.
...
FossilOrigin-Name: d43dcbc488120aeb7104ab9e6a27f62bb348bf6a
2013-08-06 17:24:23 +00:00
drh
3535ec3e10
Remove unreachable branches in expr.c, replacing them with assert() and
...
testcase() statements.
FossilOrigin-Name: 9103c27ceb3f4023ea3a41b679a10717d3f80210
2013-08-06 16:56:44 +00:00
drh
2d463113f0
For the ".import" command of the command-line shell, start a transaction
...
if there is not one active already.
FossilOrigin-Name: 5dcc2d91bd343cd0fac79d3c8f079a5ce534cdf7
2013-08-06 14:36:36 +00:00
drh
9f099fd45a
Clean up the input reader in the command-line shell for improved legibility
...
and performance.
FossilOrigin-Name: 2b1743d60171635c1e5a6ede6b4928f4671f948d
2013-08-06 14:01:46 +00:00
drh
8c8a8c4573
More than double the speed of the resolveP2Values() routine in vdbeaux.c by
...
moving from an extended if-else on every opcode to a switch. Opcodes are
reordered in mkopcodesh.awk to put the switched opcodes close together,
for additional performance and to reduce code footprint.
FossilOrigin-Name: 924f7e4d7a8fa2fe9100836663f3733b6e1a9084
2013-08-06 07:45:08 +00:00
drh
d58d3278cb
Performance optimization: Avoid calling convertCompoundSelecctToSubquery()
...
on queries that do not use the UNION, EXCEPT, or INTERSECT operators.
FossilOrigin-Name: c589b2fed7beabc2337d701094c22635914d9c23
2013-08-05 22:05:02 +00:00
mistachkin
f3d2aaeca2
For the vtshim module, always zero out the xChildDestroy function pointer after calling it.
...
FossilOrigin-Name: 240f7252c66ad3ff5ae0ef06455c1ff9bd78bbb4
2013-08-05 21:54:17 +00:00
drh
323df7907e
Factor all KeyInfo object allocations into a single function:
...
sqlite3KeyInfoAlloc(). Always allocate enough space so that
sqlite3VdbeRecordCompare() can avoid checking boundaries and hence
run faster.
FossilOrigin-Name: 7301bedd94c8610568349953b18ff3575203e1b2
2013-08-05 19:11:29 +00:00
drh
af5b2af77d
Improve performance of sqlite3VdbeRecordCompare() by using an approximation
...
that might give false negatives and only running the more expensive exact
subexpression if the approximation fails.
FossilOrigin-Name: 28979dcd16f53e0ddca8eed74b668834e2856f03
2013-08-05 15:32:09 +00:00
drh
407ceeb84d
Add a missing '#include "tcl.h"' to test_rtree.c.
...
FossilOrigin-Name: 4b8b426f10f8ae13bf553f7adf5ae09383fa0bd4
2013-08-05 12:31:41 +00:00
drh
3975974780
Updates to requirements marks. No code changes.
...
FossilOrigin-Name: 213020769f310aec1591d97756b53891d0b64005
2013-08-02 23:40:45 +00:00
drh
e0c7efd9ae
Add NEVER() and ALWAYS() macros on some unreachable yet prudent branches.
...
FossilOrigin-Name: c5c0a8ab6c222185d5f9d4321e64d9f93cd36b7d
2013-08-02 20:11:19 +00:00
drh
b47e07f1c1
Add support for partial indices.
...
FossilOrigin-Name: 478113f18b1d28606b107b5a0bed04cb90a82cf2
2013-08-02 16:41:02 +00:00
drh
1e7d43c977
Silently ignore database name qualifiers in CHECK constraints and in
...
partial index WHERE clauses.
FossilOrigin-Name: 2e8c845eb5011a2743dace333aa38383588f2080
2013-08-02 14:18:18 +00:00
drh
0b22101b2f
Fix typos in documentation for SQLITE_DBSTATUS_DEFERRED_FKS .
...
No changes to code.
FossilOrigin-Name: f3efbfcd515ad6ac833f4b26391dcc44603a96e8
2013-08-02 13:31:31 +00:00
drh
989b116a03
Fix the CREATE INDEX statement so that trying to create a TEMP index on
...
a non-TEMP table throws an error rather than segfaulting.
FossilOrigin-Name: e3c8935f8736d00dc83644fa21d86ca7fec6d2fc
2013-08-01 22:27:26 +00:00
drh
af4300636a
Fix an incorrect expected result in a test case in corruptG.test.
...
FossilOrigin-Name: 6913831ad2892fdc8331ee53426d935386eacb9e
2013-08-01 22:26:56 +00:00
drh
f5601cac4d
Fix a potential buffer overread in sqlite3VdbeRecordCompare() when a
...
serial_type specifies a field that starts in bounds but is much too large
for the allocated buffer. Mostly harmless. The overread is unlikely to
go more than one or two bytes past the end of the buffer.
FossilOrigin-Name: e436b2f4e5c5e6b2f70e65332c0c7d618e2ef20a
2013-08-01 20:26:04 +00:00
drh
df003d61ce
Make sure signed integer overflow does not cause a segfault while attempting
...
to read a corrupt database where the header size varint on a record is larger
than the maximum 32-bit signed integer.
FossilOrigin-Name: c3baca99f4580652afb2c3f73036ab83796a1557
2013-08-01 19:17:39 +00:00
dan
2acbc0dd78
Add test case for the problem fixed by [127a5b776d].
...
FossilOrigin-Name: 65816718b59b286c11d939235a23c7325f25594b
2013-08-01 17:43:35 +00:00