1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-19 21:43:15 +03:00
Commit Graph

14444 Commits

Author SHA1 Message Date
drh
c4d56dd74b Use an ALWAY() on conditionals in the transitive constraint logic that are
always true as far as we know.

FossilOrigin-Name: 204e567f68e4b3e069f04ca0643c6e5db781d39f
2015-05-18 12:18:37 +00:00
drh
69c15fee98 Refinements to the determination of when an A==B term is an equivalence.
Add test cases.

FossilOrigin-Name: 6bfaf525cac2e0c0a4a3bd3a1fc7bf5bd3234303
2015-05-18 11:34:52 +00:00
drh
df553659ad Make a hard copy of the results of a subquery lest the result of the
subquery be referenced after a change to the table that generated the subquery
result.

FossilOrigin-Name: 9c0d80907b4dee8ee8f205c2ebdb759f5ba1d771
2015-05-18 04:24:27 +00:00
drh
5820118da5 Further restrictions on the use of the transitive property in WHERE clauses.
FossilOrigin-Name: 8c886c43ff0bd5953d289534791d2c6b9dc25445
2015-05-16 20:51:25 +00:00
drh
ea19cc10f5 Fix the transitive constraint processing to only allow transitivity if the
operands of the == or IS operator have compatible affinities.

FossilOrigin-Name: a46a247fbcfe6e63b12cef31353835295a650c9b
2015-05-16 19:17:17 +00:00
drh
e655a0e34e Fix a typo in a comment. No changes to code.
FossilOrigin-Name: ee4b74250ad7a4061421d44b490cb79f649b3720
2015-05-16 18:31:44 +00:00
mistachkin
4e5bef8c00 Minor coding style change, adjust new local variable casing for consistency.
FossilOrigin-Name: 1a4628c66c632d2aff02bf134ddf7adceb04fb84
2015-05-15 20:14:00 +00:00
dan
3072b537f5 Do not assume that "col IS ?" matches at most a single row of a UNIQUE column unless the column is also NOT NULL.
FossilOrigin-Name: e038ce8955e785afcc07bb22499955bbd22a7af4
2015-05-15 19:59:23 +00:00
drh
22c17b8bf5 Simplifications to error message processing. Fix a possible problem in error
message formatting when vacuuming a database with a corrupt schema.

FossilOrigin-Name: 56ef98a04765c34c1c2f3ed7a6f03a732f3b886e
2015-05-15 04:13:15 +00:00
drh
5f9a57fc49 Merge in the IS-operator enhancements and other recent changes from trunk.
FossilOrigin-Name: 4f9229445c293b39c80b2a662901f608c85b36ef
2015-05-14 15:17:20 +00:00
drh
4a00b33c02 More test cases. Remove some invalid testcase() macros. Rearrange some code
for improved testability.

FossilOrigin-Name: b3676377b257bd8bb7fefe9c365d76cdc9e44856
2015-05-14 13:41:22 +00:00
drh
ee14587c39 Add testcase() macros. Get transitive WHERE clause constraints on IS operators
working again.

FossilOrigin-Name: d195d4a65d7184e34a2a08c3ac3db7f6c8c1c21c
2015-05-14 13:18:47 +00:00
dan
2bbb62ce0b Merge changes from the index-is-operator branch into this one. Drop the partial support added for IS on this branch by [52e73eec].
FossilOrigin-Name: 16ab9cafd00ea5df7e6f75d6a6740237828b888d
2015-05-14 09:53:17 +00:00
dan
8255079611 Merge latest trunk changes with this branch.
FossilOrigin-Name: 299ed55c909d327826ef47e204ef1e9afd54852b
2015-05-14 08:58:52 +00:00
drh
e8d0c61f0a A new implementation of indexing with the IS operator that works correctly
when the IS operator is in the WHERE clause and the operands are from 
opposite sides of a LEFT JOIN.

FossilOrigin-Name: 4541688b3f56f5cd3d5b299594b58c577ad633bb
2015-05-14 01:05:25 +00:00
drh
9be1870994 Simplified implementation of indexing with the IS operator.
FossilOrigin-Name: 95b1f9bf14e490c6c6bba9ea78aeab712a44aab5
2015-05-13 19:33:41 +00:00
dan
5d03b9d365 Merge latest trunk changes with this branch.
FossilOrigin-Name: b5f0e8c5b4bc018d672617ffd342d12b228548b9
2015-05-13 18:12:58 +00:00
drh
e0cc3c296c Add testcase() macros and comments and a few test-cases.
FossilOrigin-Name: 24263d08b11c88416d270013bdaf5ff45125cb4d
2015-05-13 17:54:08 +00:00
drh
fcd49531c9 An early attempt to get indexes to work with the IS operator. This code
passes tests, but much more testing is needed to verify that it works on
all corner cases.

FossilOrigin-Name: 6f7f1673d00d216a5aa456acb44793a14f3b3d91
2015-05-13 15:24:07 +00:00
mistachkin
ba02a63a4a Fix typo in Win32 VFS code enabled when the SQLITE_WIN32_USE_UUID compile-time option is used.
FossilOrigin-Name: b33f1bacfdb34fe66b7b073e68bfac38498d6e88
2015-05-12 19:53:15 +00:00
drh
8755a5f50c Attempt to get DBSTAT to compile without warnings across all build
configurations.

FossilOrigin-Name: c3cbe3b06eb37b9949c5fcb0e257a845953de7a7
2015-05-12 19:10:18 +00:00
drh
10819251b7 Fix a compiler warning when building with tclsqlite3.c and without
SQLITE_ENABLE_DBSTAT_VTAB.

FossilOrigin-Name: aad3ff257a156b572334b64aa57643ff3ea231a4
2015-05-12 14:22:05 +00:00
drh
3d213d31e5 Improvements to documentation of the sqlite3_column_xxxxx() interfaces.
No code changes.

FossilOrigin-Name: f1aa951a337037c18ee14e114e36314835e05926
2015-05-12 13:32:55 +00:00
drh
6582ae520f Try to get recent sqlite3_analyzer and sqldiff tests working for all
tested combinations of compile-time options, especially
SQLITE_OMIT_VIRTUALTABLE and SQLITE_OMIT_LOAD_EXTENSION.

FossilOrigin-Name: 07c7d3925cbcf44c2f606c7f016ec56304e0ca24
2015-05-12 12:24:50 +00:00
drh
3e0327d5de Revamp the way the DBSTAT virtual table is registered.
FossilOrigin-Name: 4e6520159e729b6ea96ccdb14f0ecb00a0ff7cbd
2015-05-11 11:59:15 +00:00
drh
df5e1a00de Fix the sqlite3_memory_used() and sqlite3_memory_highwater() interfaces so
that they really do provide a 64-bit answer.

FossilOrigin-Name: 8a0d5d5e9a4515603c47e9354af47550155a6f2d
2015-05-10 02:01:08 +00:00
mistachkin
2c1820c824 Fix harmless compiler warning with MSVC.
FossilOrigin-Name: 902d0cb8e31cf816ab054caccff24172a041160d
2015-05-08 01:04:39 +00:00
drh
cda9a933bd Add an entry to sqlite3_compileoption_used() for
SQLITE_ENABLE_DBSTAT_VTAB.

FossilOrigin-Name: 480b4cb04212277ea07e230b6c13cb81a7b769b5
2015-05-07 20:26:20 +00:00
drh
5f36a83329 Testing improvements and corner-case bug fixes for the dbstat virtual table.
FossilOrigin-Name: d51ce539327b4807150b030a10bb105fa34cbc24
2015-05-07 18:29:04 +00:00
drh
857df26b85 Enhance the dbstat virtual table with the ability to analyze ATTACHed
databases.

FossilOrigin-Name: 25ec09400b753fcb10a2aae57eb43dbf0548b7ca
2015-05-07 14:41:56 +00:00
drh
060c3ffc71 Merge in the 3.8.10 release changes.
FossilOrigin-Name: 0404ef885e47f0df1daa04feb28452beb4d32a35
2015-05-07 12:29:54 +00:00
drh
9b40e474ef Remove a faulty assert() statement.
FossilOrigin-Name: 5f2539da8cb9df99029ab4ab7023804722697673
2015-05-07 00:09:29 +00:00
drh
0c6ab89b41 Remove four lines of superfluous code identified by clang scan-build.
FossilOrigin-Name: 04afa3febee32854fbb09ef8d4ffffd432119716
2015-05-05 18:52:54 +00:00
drh
d689fd3a92 Merge all trunk enhancements and fixes into the sessions branch.
FossilOrigin-Name: de7083cfe2bb00b689bec6bcc75e994f564ceda6
2015-05-05 17:12:27 +00:00
drh
0a96931b76 Fix a minor coding inefficiency found during pre-release inspection.
FossilOrigin-Name: cc50883d67334507227e1384fef6cc7c93fd7de1
2015-05-05 16:57:52 +00:00
drh
bfa582a3f3 Add #ifdef statements to test_blob.c so that it will build
with SQLITE_OMIT_INCRBLOB.

FossilOrigin-Name: b8f090e65d010c62df335d0520a36a24904e8bc6
2015-05-05 11:08:02 +00:00
drh
59ba6e8832 Spell SQLITE_OMIT_VIRTUALTABLE correctly in a #if in dbstat.c.
FossilOrigin-Name: d2cb1becc07fad5cbd48c206c676493ba90cada1
2015-05-05 10:46:02 +00:00
dan
dd14ecbca5 Fix a faulty assert() in the btree part of the "PRAGMA page_size = ?" code.
FossilOrigin-Name: 90b197489a37e01dcb2f3a8182848c1301e1757b
2015-05-05 10:03:08 +00:00
drh
8f70ee0e93 Fix #ifdef problem in tclsqlite.c.
FossilOrigin-Name: fe723bb5d5fa9522411c06dcee8bf1a8fd210db3
2015-05-05 00:48:23 +00:00
drh
a3ab9d0c61 Automatically enable the dbstat virtual table on all new database
connections with the SQLITE_ENABLE_DBSTAT_VTAB compile-time option is used.

FossilOrigin-Name: 1c9c6eaa9f75fd7b90fbf8b057656fd9e50b5060
2015-05-04 20:25:05 +00:00
drh
d1055b1bd5 In the command-line shell, and the ".binary" command and additional
C-style backslash escapes.

FossilOrigin-Name: 850c11866686a7b39d7b163fb60898c11283688e
2015-05-04 19:13:25 +00:00
drh
1a4a680a38 Rename the test_stat.c source file to dbstat.c and rework the makefiles to
make dbstat.c a first-class source module.

FossilOrigin-Name: a24480a474993f82ff58edbe12d2093c59b1a2dc
2015-05-04 18:31:09 +00:00
drh
84ab95395e Include the "dbstat" virtual table in the amalgamation.
FossilOrigin-Name: fc6504aa8ca19b3737f72c1e20db8df6b7608dd2
2015-05-04 17:06:39 +00:00
drh
9af8646dce Fix a faulty assert() in the SELECT code generator and add a test case
to prevent regression.

FossilOrigin-Name: 1421c8ffba179d6aafa2643012f80a2738779117
2015-05-04 16:09:34 +00:00
drh
1a51337af8 Add the ".limit" command to the command-line shell.
FossilOrigin-Name: 803cb60e75e0b09a526eefec11139cb3e8ae8c7c
2015-05-02 17:40:23 +00:00
dan
36b948f88a Reorganize some multi-threaded code in vdbesort.c so that full MC/DC test coverage does not depend on the outcome of a race condition.
FossilOrigin-Name: 78c7ec95931265b89a92f6a799fc9b1a9f0476bf
2015-05-02 12:40:12 +00:00
drh
c049057242 Cleanup of the sqlite3StrAccumInit() function. No functionality changes.
FossilOrigin-Name: 7952c32268aa650d9ee946d5bfe190f712e3bbe6
2015-05-02 11:45:53 +00:00
dan
929b923388 Fix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database in exclusive-mode that has already opened the journal file.
FossilOrigin-Name: 40db3e40126db1035fcc12989026915744dc5651
2015-05-01 16:57:24 +00:00
drh
5789d1a46f Remove obselete comment text from the description of the Table object.
No changes to code.

FossilOrigin-Name: 6566b72a9c68b347d126189b376f52ffd56edfba
2015-05-01 15:25:51 +00:00
drh
6296a2ab4b Enhance the CLI to initialize the dbstat virtual table if compiled using
SQLITE_ENABLE_STAT_VTAB.

FossilOrigin-Name: 822dfc00173dad7703aa6413bb94f72f0da8e2c6
2015-04-30 20:35:33 +00:00