mistachkin
ffce11ae54
Simplify thread-safety of mutex initialization.
...
FossilOrigin-Name: da0587c522163833e5e542f7722aeb69b3183ac1
2015-09-23 16:24:19 +00:00
mistachkin
4221e628c1
Merge updates from trunk.
...
FossilOrigin-Name: 6b85f8cd4d87d616a3cb362647ae3869c45c2801
2015-09-23 15:54:36 +00:00
drh
78ac109c7f
Fix an overly-strict assert() in the btree logic.
...
FossilOrigin-Name: 825ce3201df21c6b9d5c57dcc6726c306df05220
2015-09-20 22:57:47 +00:00
drh
6230212f4a
Do not allow table-valued function syntax to be used on a view.
...
FossilOrigin-Name: 97cfe346e140e42a604375551f8168276bdbea11
2015-09-19 20:27:08 +00:00
dan
80b7198f2b
Add an assert() statement to delete.c.
...
FossilOrigin-Name: 40fce67ecf0e71db3c8f3da3f72cc80a3d0f8fb2
2015-09-19 18:11:18 +00:00
drh
8faee877cb
Fix compiler warnings.
...
FossilOrigin-Name: 5c31ee62a196b914673384a611534fd778dc64b0
2015-09-19 18:08:13 +00:00
drh
c02c4d4900
Fix a documentation typo in sqlite3_bind_parameter_index(). No code changes.
...
FossilOrigin-Name: 650605a820f3860b1d6e955cdda23aaff01dfdb5
2015-09-19 12:04:27 +00:00
drh
4cbc54b042
Do not allow rowid in a UNIQUE or PRIMARY KEY constraint. (This restores the
...
same behavior exhibited by all prior releases.)
FossilOrigin-Name: b1278301e37220a075c1bae88c0fcca2ef7a7d5c
2015-09-19 03:07:30 +00:00
drh
e63e8a6c78
Fix a crash that can occur with a skip-scan on an index with
...
expressions when SQLITE_ENABLE_EXPLAIN_COMMENTS is defined.
FossilOrigin-Name: 25f34cb9b576a2d4250a06a7dbf88010b1c11675
2015-09-18 18:09:28 +00:00
dan
ad41f5eda3
Ensure that "PRAGMA integrity_check" reports an error if the free-list count header field contains a value smaller than the actual number of pages on the database free-list.
...
FossilOrigin-Name: 26f64986d1ed59c554a7cb9e00e86a7f148f1fc6
2015-09-18 14:45:01 +00:00
drh
b77ebd828b
Reformat some code to make it easier to merge with sessions. No logic changes.
...
FossilOrigin-Name: eade355fafec558fc13dc4b08ca0b07713a2cd84
2015-09-15 13:42:16 +00:00
drh
b79d5529af
Testability improvements for the ONEPASS_MULTI enhancement.
...
FossilOrigin-Name: d2df93f26fc0cf6fe01acfeaf2946972e9d8cca2
2015-09-14 19:26:37 +00:00
drh
b1ff90673c
Fix a typo in an SQLITE_USER_AUTHENTICATION macro.
...
FossilOrigin-Name: 379455af9fdfb299a857d46f35f0a76ed6daa08a
2015-09-14 14:49:23 +00:00
drh
b0264eeca1
Use symbolic names ONEPASS_OFF, ONEPASS_SINGLE, and ONEPASS_MULTI for the
...
various modes of the one-pass optimization.
FossilOrigin-Name: 16e56bdadef903c6439a487f2683388aeeb0c625
2015-09-14 14:45:50 +00:00
drh
66336f3755
Fix a compiler warning and providing missing VdbeCoverage() calls.
...
FossilOrigin-Name: 2edd2e5edd60210e18db58bce1e096dd211b6ece
2015-09-14 14:08:25 +00:00
dan
e402dc57ae
Use a single-pass approach for DELETE statements on non-virtual tables that do not require trigger or foreign key processing.
...
FossilOrigin-Name: 8b93cc5937000535c35c763c9326507a19892a6e
2015-09-14 11:09:58 +00:00
dan
c6157e1971
Avoid calling sqlite3VdbeCursorMoveto() from more than one point in vdbe.c. Doing so prevents it from being inlined as part of OP_Column.
...
FossilOrigin-Name: 166d5af8914c6954fb24a06e9686f194c0d0acde
2015-09-14 09:23:47 +00:00
mistachkin
c215322bd7
Add static VFS mutexes to the primary header file comments.
...
FossilOrigin-Name: 9a867d9fbe74fe2b33d55e32737a66e9a77b7466
2015-09-13 20:15:01 +00:00
mistachkin
5c870cb03c
Experimental changes to avoid recusrively calling xMutexInit.
...
FossilOrigin-Name: c9400ff167d9520119081c9b92436794dcd53d22
2015-09-13 18:45:50 +00:00
mistachkin
b25754a62d
Merge updates from trunk.
...
FossilOrigin-Name: b42c2e2076da1a61f667876ff2c18e4ebed50a7f
2015-09-13 18:43:53 +00:00
dan
7210b3d1e8
Fix compiler warnings in delete.c.
...
FossilOrigin-Name: 0a4d285e18b78cd529483ba5c8c607ab62a443d4
2015-09-12 19:50:58 +00:00
drh
2e25a00019
Fix API documentation typos. Emphasize that the sqlite3_config() routine is
...
not threadsafe.
FossilOrigin-Name: 786333e05a75406bbd0b5c9c7beb8f16022eabec
2015-09-12 19:27:41 +00:00
dan
f0ee1d3c12
Experimental change to use a single-pass approach for DELETE statements on non-virtual tables that do not fire triggers or require foriegn-key processing.
...
FossilOrigin-Name: eaeb2b80f6f8f83679c8323a81bb39570ec946fe
2015-09-12 19:26:11 +00:00
mistachkin
04abf0878f
Import common changes from the mutex initialization branch.
...
FossilOrigin-Name: 334720c01722478af0d3dfd6fe8bafd88ba09f49
2015-09-12 18:57:45 +00:00
mistachkin
3f44c65513
Fix comments.
...
FossilOrigin-Name: de3fa51e931d34f341fc3432bfdf97390bb68d4e
2015-09-12 04:22:01 +00:00
mistachkin
acc8f7b24c
Specifying an invalid mutex implementation (via SQLITE_CONFIG_MUTEX) should cause the default one to be used instead.
...
FossilOrigin-Name: 1a97bc81ccfc88f2dd527dff16e9e395718675bc
2015-09-12 04:19:51 +00:00
mistachkin
a4da3c17c3
Clarify the new mutex implementation reset logic in sqlite3_shutdown().
...
FossilOrigin-Name: f9a034834e6c6e32ac350cf48bec981490e533ad
2015-09-12 03:40:13 +00:00
mistachkin
89e57dd671
Add more asserts to the mutex subsystem.
...
FossilOrigin-Name: 7562f1fbede70b19bbbb928e0a534203528b5b65
2015-09-12 03:35:55 +00:00
mistachkin
db17a83295
Fix typo in the Win32 implementation of sqlite3CompareAndSwap.
...
FossilOrigin-Name: 31a26a1dd796e073e847e1e9c636f1976ffbb085
2015-09-12 01:17:20 +00:00
mistachkin
4b3f0d6281
Make sure that the mutex implementation can be altered after calling sqlite3_shutdown().
...
FossilOrigin-Name: dc2cf8974337ca1ef705aee4efd4a96b91ca3edd
2015-09-11 23:24:50 +00:00
mistachkin
8bdc914af3
Enhance mutex initialization to prevent possible race conditions between sqlite3_initialize() and sqlite3_config(). Also, re-check sqlite3GlobalConfig.isInit after the mutex subsystem has been initialized.
...
FossilOrigin-Name: f6a8f577957769171acd72df3cc9aa5ad474d84b
2015-09-11 05:06:15 +00:00
drh
12b3b89542
Updates to the sqlite3_value_subtype() and sqlite3_result_subtype()
...
documentation and to test cases for json1 dealing with those interfaces.
FossilOrigin-Name: d6cadbe9fefce9a7af6b2d0cb83362f967d7d89a
2015-09-11 01:22:41 +00:00
drh
cf94f17964
Make the sqlite3_value_subtype() and sqlite3_result_subtype() interfaces
...
available to loadable extensions.
FossilOrigin-Name: c6fca0be11f7414292279e2ea1b004260e6f4bb6
2015-09-10 20:40:21 +00:00
drh
bcdf78a61c
Experimental implementation of sqlite3_result_subtype() and
...
sqlite3_value_subtype() interfaces.
FossilOrigin-Name: 7b5be299c617a3d3ed327ed30ef0a66a62c85b1f
2015-09-10 20:34:56 +00:00
drh
0b19c96935
Fix a potential NULL pointer deref in the testing logic of pcache1.
...
NB: The -DSQLITE_TEST compile-time option is needed to hit the problem.
FossilOrigin-Name: f5580f08538636ffb1367e717a33756288ccddde
2015-09-10 19:22:25 +00:00
drh
0c2750889e
Make the sqlite3ext.h header file responsive to -DSQLITE_OMIT_LOAD_EXTENSION.
...
FossilOrigin-Name: 47a46a9fa4a96cdb96a20b6aec802661b1ee4598
2015-09-10 15:24:27 +00:00
drh
0e8729dbe4
Attempt to declare sqlite3MemoryBarrier() correctly for all possible
...
build configurations.
FossilOrigin-Name: da8a288f8ef4be34281519b4b4db9b857b9d168b
2015-09-10 04:17:06 +00:00
drh
5fb72e5f3e
No-op the sqlite3_memory_alarm() interface in a different way, that does
...
not break legacy memory behavior. This is a re-do of
check-in [5d3f5df4da9f40d5].
FossilOrigin-Name: 8250e2a487ee12c9a2dea5603ab60aed51e5dc7b
2015-09-10 01:22:09 +00:00
dan
5c472d0860
Fix an assert() enabled by SQLITE_ENABLE_EXPENSIVE_ASSERT in wal.c.
...
FossilOrigin-Name: 8d2ed150a7a15626965cf994ef48c3ab61eca6ec
2015-09-09 19:44:33 +00:00
drh
8820250e8d
Fix a possible NULL pointer deref when using SQLITE_ENABLE_MEMORY_MANAGEMENT.
...
FossilOrigin-Name: 89bfdbfe943adce8e02c84ede014fcfed504c5d3
2015-09-09 19:27:10 +00:00
mistachkin
3f62cb5aad
Fix harmless compiler warning.
...
FossilOrigin-Name: 280fd3a482978b4a488a8b425721e451c2a30745
2015-09-09 17:23:48 +00:00
drh
3c03afd3f5
When running a CREATE TABLE AS, make the initial temporary sqlite_master entry
...
for the new table a real record rather than a NULL, in case the query after
the AS actually tries to read the sqlite_master table.
Fix for ticket [acd12990885d9276].
FossilOrigin-Name: 4a18d8bd4cc66eb08c6198cdf6e14f1bce0ec05a
2015-09-09 13:28:06 +00:00
drh
a46a4a63de
Enhance the DBSTAT virtual table with a new hidden table "schema" that if
...
set will cause the table to report on the specified schema rather than on
"main". Also: Fix a faulty assert in sqlite3_context_db_handle().
FossilOrigin-Name: 6beb512c7a3c3649b56f0df1ca77855535a87ba7
2015-09-08 21:12:53 +00:00
drh
b4d472f609
Eponymous virtual tables exist in the "main" schema only. Enforce this rule.
...
FossilOrigin-Name: 06f90bb274c4bb0c30585024c8d365d43c4162f2
2015-09-08 20:26:09 +00:00
drh
ae2a4084a2
Fix an unreachable branch in the new parse automaton.
...
FossilOrigin-Name: e9d604b4306a86faae315ac3cba59bf07d1b665c
2015-09-07 20:02:39 +00:00
drh
a248a722cf
Change the parser engine so that it (once again) waits for a lookahead token
...
before reducing, even in a SHIFTREDUCE action.
FossilOrigin-Name: 2c17a1358353a0845b039283be79353f033e2491
2015-09-07 19:52:55 +00:00
drh
3bd48ab213
For the Lemon-generated parser, add a new action type SHIFTREDUCE and use it
...
to further compress the parser tables and improve parser performance.
FossilOrigin-Name: 531c3974b3d586c1989cde905b2fb4681239a570
2015-09-07 18:23:37 +00:00
drh
2d64034bc2
Improved memory barrier that should work with MinGW on older versions of
...
Windows.
FossilOrigin-Name: 47dc24bd1e8f76eb17ba53a883b8984b3e1b2934
2015-09-06 10:31:37 +00:00
drh
6081c1dbdf
Add a memory barrier to the mutex initialization logic, try to work around
...
an issue reported by WebKit.
FossilOrigin-Name: 11a9a786ec06403addb47f5c6fb142b382fae522
2015-09-06 02:51:04 +00:00
drh
0b8d255c37
Omit all use of Expr nodes for TK_AS, as those nodes no longer served a useful
...
purpose and in fact interferred with the query planner.
FossilOrigin-Name: 7ab0b258eabfcfb7f1b0bd1b12e166d2f267823d
2015-09-05 22:36:07 +00:00