]>
git.ipfire.org Git - thirdparty/sqlite.git/log
mistachkin [Sat, 8 Sep 2018 16:55:18 +0000 (16:55 +0000)]
mistachkin [Sat, 8 Sep 2018 16:53:47 +0000 (16:53 +0000)]
Fix typo in the Win32-specific code for the fileio extension.
FossilOrigin-Name:
e812e5d59a699e8b82c51d465d9c0f09df6a1e6996b5499814dca99c5f8020d5
drh [Fri, 7 Sep 2018 19:12:08 +0000 (19:12 +0000)]
dan [Fri, 7 Sep 2018 18:56:31 +0000 (18:56 +0000)]
drh [Fri, 7 Sep 2018 18:52:25 +0000 (18:52 +0000)]
Add assert() and ALWAYS() to identify two unreachable branches.
FossilOrigin-Name:
8fa254aa6329bdd085b8e2c78d8e8a698b418eda8b2d48e0082dd9cd428cef29
dan [Fri, 7 Sep 2018 15:50:31 +0000 (15:50 +0000)]
Fix a problem with renaming a non-temp table that has at least one temp
trigger and shares its name with a temp table.
FossilOrigin-Name:
ceb60bd7e5f2a0a4247bff476fc6468227305467339ae0c24591be9d2b14bdde
dan [Fri, 7 Sep 2018 11:51:21 +0000 (11:51 +0000)]
Minor fixes for problems revealed by releasetest.tcl.
FossilOrigin-Name:
1a8aedc3376b7ae32fa7b2c367eedd483e2629908836efd10ee5bd1fe0784675
drh [Fri, 7 Sep 2018 11:08:31 +0000 (11:08 +0000)]
Fix an uninitialized variable in the OP_ParseSchema opcode that comes up
only if the schema is corrupt.
FossilOrigin-Name:
725808d4c59176f71787452c7e500b563fd99cfc8ece47b1efe01d5e207efe0d
dan [Thu, 6 Sep 2018 20:33:11 +0000 (20:33 +0000)]
In all.test, do not attempt to run the RBU tests in non-RBU builds.
FossilOrigin-Name:
10c3e5a0314470ee1ffc37b68445a2cb2054530346d5f5ed3ffbd6df8003cad0
drh [Thu, 6 Sep 2018 19:36:29 +0000 (19:36 +0000)]
Fix a harmless compiler warning in os_unix.c.
FossilOrigin-Name:
b9d1fb5d44e0a6ffc00ee987f178e448d7516e579beecdeeb387e69aef588921
dan [Thu, 6 Sep 2018 18:56:36 +0000 (18:56 +0000)]
Fix a problem with ALTER TABLE when there are views or triggers in the schema
that contain "<expr> IS NULL" expressions.
FossilOrigin-Name:
91aab32e71fcb924e24c02d5f0901f7a474760fc993a7e7436e667512cf5d3c3
dan [Thu, 6 Sep 2018 17:47:09 +0000 (17:47 +0000)]
Fix a problem in ALTER TABLE with SQLITE_OMIT_VIRTUALTABLE builds.
FossilOrigin-Name:
fa835145e63749e06e04bd50ff992afaeae05dcdd1df597d13911f944e62076b
dan [Thu, 6 Sep 2018 17:23:08 +0000 (17:23 +0000)]
Fix test script problems causing SQLITE_OMIT_VIRTUALTABLE builds to fail.
FossilOrigin-Name:
37ad064e5f5704cf345d23b38b3f6d627fbcf20dbb78c8a91e96c9704760a1b8
mistachkin [Thu, 6 Sep 2018 16:50:54 +0000 (16:50 +0000)]
mistachkin [Thu, 6 Sep 2018 16:47:10 +0000 (16:47 +0000)]
dan [Thu, 6 Sep 2018 16:47:08 +0000 (16:47 +0000)]
Fix a problem causing SQLITE_OMIT_VIRTUALTABLE builds to fail.
FossilOrigin-Name:
18beabc848d0ed7f5c918cbec5372a49915d889d7ffc9f475e6b208407e9ebd2
dan [Thu, 6 Sep 2018 16:24:23 +0000 (16:24 +0000)]
dan [Thu, 6 Sep 2018 16:20:09 +0000 (16:20 +0000)]
Add an "ALTER TABLE RENAME COLUMN" command. Upgrade "ALTER TABLE RENAME TABLE"
so that it modifies references to the renamed table embedded in SQL view and
trigger definitions.
FossilOrigin-Name:
4da5998314ed2c694b0e242755930f5320af89ac5c148845392f0a2043d44d22
dan [Thu, 6 Sep 2018 16:17:22 +0000 (16:17 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
8a28a326d7f72ab94c7d089dbc047e719038b6cd410068dec0d173a7655c87ca
dan [Thu, 6 Sep 2018 16:01:37 +0000 (16:01 +0000)]
Ensure that the tbl_name column in the sqlite_temp_master table is updated
correctly as part of a RENAME TABLE operation.
FossilOrigin-Name:
ffecfca511718e39e0003b380d5113755b8a11405a5bd80cc04503d9557f0842
drh [Thu, 6 Sep 2018 14:01:56 +0000 (14:01 +0000)]
Add the randomshape.tcl test-case generator script to the util subdirectory
of the rtree extension.
FossilOrigin-Name:
8f48991dcbb01e21d065fbba7782a6d1aebaa8065841a70a76af1e5a21f18ea4
drh [Thu, 6 Sep 2018 11:14:17 +0000 (11:14 +0000)]
Fix excess memory usage in the JSON parser of GEOPOLY.
FossilOrigin-Name:
9057e27e12ded07a9ea0b2868036d3019f7bc5be3a67e3d341f56b762d3de9d9
drh [Thu, 6 Sep 2018 02:40:15 +0000 (02:40 +0000)]
Fix a problem with geopoly trying to update both the _shape and an auxiliary
column in the same UPDATE statement.
FossilOrigin-Name:
14c955152d0580abc3df1b363789f2925e013b9c957e550b1e6ebe83a82bae6c
dan [Wed, 5 Sep 2018 17:52:52 +0000 (17:52 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
6f4f707f9c3c29f2437962fd5d7761876cf8e7ed7fdcb9d0ca4fd001fa226597
dan [Wed, 5 Sep 2018 17:45:17 +0000 (17:45 +0000)]
Fix some test script errors. And an incorrect assert() in fts5.
FossilOrigin-Name:
f804336f083d8d26314bb1ba34cec427675065a67cbe2bf00bb42e40752aeb33
drh [Wed, 5 Sep 2018 16:16:56 +0000 (16:16 +0000)]
Remove an old testcase() macro that is no longer valid.
FossilOrigin-Name:
e628713338f6e584a32d5fc3436ddbd9ee8cf88401c321c1ebe7daa1e695c623
dan [Wed, 5 Sep 2018 14:36:05 +0000 (14:36 +0000)]
Avoid comparing pointer values after the object that they point to has been
deleted.
FossilOrigin-Name:
2ec7e50cbc0e7a4308d51be3c9416229b187a6a8abdd982c154edc256cd6da1f
dan [Wed, 5 Sep 2018 08:28:30 +0000 (08:28 +0000)]
dan [Tue, 4 Sep 2018 18:23:59 +0000 (18:23 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
ef9e088290efa9d0fc36bcdef710cadfef37c8a33f4685dad4ce113807e1cc75
dan [Mon, 3 Sep 2018 20:05:15 +0000 (20:05 +0000)]
Improve the error messages emitted by RENAME TABLE.
FossilOrigin-Name:
6805b5900df5e6d3329cbad2660875ebe4069efe37b19575f527d153dc0882a1
dan [Mon, 3 Sep 2018 17:11:11 +0000 (17:11 +0000)]
Ensure that FTS5 queries of the form "WHERE rowid BETWEEN ? AND ? AND tbl
MATCH ? ORDER BY rank" do rowid filtering before sorting.
FossilOrigin-Name:
f1138a38bd23f201a35621a71e82c5718abddb42ab82938e9516ab9d43e4df16
dan [Sat, 1 Sep 2018 20:38:42 +0000 (20:38 +0000)]
dan [Sat, 1 Sep 2018 20:23:28 +0000 (20:23 +0000)]
Fix a problem with renaming a column in a table that has a temp trigger that
references another attached database.
FossilOrigin-Name:
336b8a0923bf65b7a2c35811cb6dec0e262a0b31e534d2a6ab093d2afdb05c1f
drh [Sat, 1 Sep 2018 20:02:07 +0000 (20:02 +0000)]
drh [Sat, 1 Sep 2018 16:55:36 +0000 (16:55 +0000)]
Fix some harmless compiler warnings and improve defenses against OOM errors.
FossilOrigin-Name:
2e2cf992f5d6cae2030c3c03b0eb98af3b130e86a719b991e41380138751f615
dan [Sat, 1 Sep 2018 16:13:41 +0000 (16:13 +0000)]
Merge alter-table-rename-table back into this branch.
FossilOrigin-Name:
ad704a7c86c9ee51c1eb696007660cb9044bba6a8c588a33a8bd66613c231421
dan [Sat, 1 Sep 2018 16:05:50 +0000 (16:05 +0000)]
Have "ALTER TABLE ADD COLUMN" reload the entire db schema, as "RENAME COLUMN"
and "RENAME TABLE" do.
FossilOrigin-Name:
8d89ddc1a628e983b0fbd929c9c9daac86ee23d18f8dd2709c971012389395c6
drh [Sat, 1 Sep 2018 15:55:44 +0000 (15:55 +0000)]
Merge fixes from the alter-table-rename-column branch that occurred after
this branch separated from that one.
FossilOrigin-Name:
22e785aa2bbce4ae0852bc3d127d4b12222a192eb6e3ee874bf8e5c8582d05f3
drh [Sat, 1 Sep 2018 15:49:13 +0000 (15:49 +0000)]
dan [Sat, 1 Sep 2018 06:13:07 +0000 (06:13 +0000)]
Update test script snapshot_fault.test to account for the new
sqlite3_snapshot_open() error code.
FossilOrigin-Name:
c1aca7673ab04740bc8ad76af0a72a229c79a0cd51cf84d1c689a77424ff17c6
drh [Fri, 31 Aug 2018 23:22:40 +0000 (23:22 +0000)]
dan [Fri, 31 Aug 2018 19:00:16 +0000 (19:00 +0000)]
If a call to sqlite3_snapshot_open() fails because the requested snapshot no
longer exists, return SQLITE_ERROR_SNAPSHOT instead of SQLITE_BUSY_SNAPSHOT.
FossilOrigin-Name:
e07923128bb164efbafde29d49175b61f2ef44b2dfac5ae4ed61937945dfcf4c
dan [Fri, 31 Aug 2018 18:23:53 +0000 (18:23 +0000)]
Ensure b-tree mutexes are always held when sqlite3FindTable() is called. Do
not invoke the authorizer callback when parsing schema items as part of ALTER
TABLE commands. Fix test script issues.
FossilOrigin-Name:
eac2aa7dce577f1998cc2078dd8ac384070f8acf1ceb565999a5cf719092024e
drh [Thu, 30 Aug 2018 20:28:18 +0000 (20:28 +0000)]
Try to identify the places in WAL code where thread-safety depends on the
underlying architecture supporting atomic load and store of aligned 32-bit
values.
FossilOrigin-Name:
47d44be4a68d377d0049a12b2587dbbcc0870b469473e1098f7c0358fe8c7532
dan [Thu, 30 Aug 2018 20:03:44 +0000 (20:03 +0000)]
Test the schema after renaming a table. Ensure that temp database triggers and
views are updated when renaming a column.
FossilOrigin-Name:
f3c27d916d4837f8fc3dd812bd004535f04c7a53bd2a0a2419613275f48bec76
drh [Thu, 30 Aug 2018 18:53:09 +0000 (18:53 +0000)]
Give the debugging routine print_pager_stats() external linkage in order to
suppress harmless compiler and TSAN warnings.
FossilOrigin-Name:
ff4dc08298ab3988e69fe60802657791f65d2af15f4b1cbd1d02649bc597d0d6
dan [Thu, 30 Aug 2018 16:26:48 +0000 (16:26 +0000)]
Fix an ALTER TABLE problem with processing temp schema views and triggers.
FossilOrigin-Name:
72cfb1be29971d91a164f1d4f20cb054de68960a0bd547630bcd1160565971c5
drh [Thu, 30 Aug 2018 01:52:10 +0000 (01:52 +0000)]
drh [Wed, 29 Aug 2018 21:01:22 +0000 (21:01 +0000)]
dan [Wed, 29 Aug 2018 21:00:16 +0000 (21:00 +0000)]
Extend RENAME TABLE to edit triggers and views. Still buggy.
FossilOrigin-Name:
01308bae3acf33f78b5bb90892085eab340df093aafc17e6ccf6a7d6cf324897
drh [Wed, 29 Aug 2018 20:52:40 +0000 (20:52 +0000)]
drh [Wed, 29 Aug 2018 20:24:03 +0000 (20:24 +0000)]
Also free up the MEM_RowSet bit in the Mem.flags field and have RowSet objects
be destroyed using Mem.xDel. This change results in faster code.
FossilOrigin-Name:
f48e9feb3fca514e4e586932e6d19a5e34a384204effeba553006dcddf5f13d2
drh [Wed, 29 Aug 2018 18:47:22 +0000 (18:47 +0000)]
Free up the MEM_Frame bit in Mem.flags object. Store VdbeFrame objects
as MEM_Blob with a special Mem.xDel pointer instead.
FossilOrigin-Name:
62db5fd47660bbc4fcf2c6d4a6c5a3077f12c6442a128d22b66b789a0409ef32
drh [Wed, 29 Aug 2018 15:50:47 +0000 (15:50 +0000)]
Add the geopoly_group_bbox() aggregate function to the Geopoly module.
FossilOrigin-Name:
2d4debccbc027405a33aeb10f9d65f6fe4bfb5eb1be5a4d8b82158caba04643f
drh [Tue, 28 Aug 2018 21:12:02 +0000 (21:12 +0000)]
Disable the server1.test script on old PPC Macs due to problems in the
pthreads implementation on those archaic machines.
FossilOrigin-Name:
43efdd8c7e468405c9d4956a8caa66548059499289cbcc091628de7b055268cd
drh [Tue, 28 Aug 2018 19:23:41 +0000 (19:23 +0000)]
Stricter enforcement of the JSON and GeoJSON standards in the Geopoly extension.
FossilOrigin-Name:
c0bf3ff3af4d34ef7801c16e39128e894b00699313f4915f57aa73b57642f7fd
drh [Tue, 28 Aug 2018 15:51:10 +0000 (15:51 +0000)]
Fix new issues in the geopoly module discovered by TH3.
FossilOrigin-Name:
22fff9afc2fb20906173f258aa8feae9b52acc69a0ca7baf4e914d29c4279a23
dan [Tue, 28 Aug 2018 11:23:52 +0000 (11:23 +0000)]
Fix a problem causing spurious SQLITE_CORRUPT errors when using the snapshot
API to read from old database snapshots.
FossilOrigin-Name:
535155be584ad8c1836e6b1c62de836d9872056d39608c995221c928cb5b365d
drh [Mon, 27 Aug 2018 17:13:12 +0000 (17:13 +0000)]
Add support for the Geopoly extension to the R-Tree extension. This also
involves adding the SQLITE_INDEX_CONSTRAINT_FUNCTION capability to the
xFindFunction method of the sqlite3_module object, and to the
sqlite3_index_info.aConstraint.op field in the xBestIndex implementation of
virtual tables.
FossilOrigin-Name:
666133e32ca8e95807f8437dc8401bc93e2e6508ab8e6ae1e6031b7cee1584ae
drh [Mon, 27 Aug 2018 17:05:59 +0000 (17:05 +0000)]
Minor changes to the visual01.txt test script.
FossilOrigin-Name:
4bc28eed32154be0e62fe69acd30f828c2e6f59c6579618ecad8ecf632a90517
drh [Mon, 27 Aug 2018 15:55:37 +0000 (15:55 +0000)]
Split the three-argument version of geopoly_within() off into a separate
function named geopoly_contains_point().
FossilOrigin-Name:
5a0e1541037b5bbc1b4bf26a7da304c9b32ea72960aca8b9309cf2180757c8a4
drh [Sat, 25 Aug 2018 23:03:27 +0000 (23:03 +0000)]
Enhance the geopoly virtual table so that it does a better job of optimizing
geopoly_within() queries.
FossilOrigin-Name:
1f717385340f295064a7649cfc36ad048573cbacb6faa20f5c6067328c40c745
drh [Sat, 25 Aug 2018 19:51:49 +0000 (19:51 +0000)]
Provide the two-argument geopoly_within(P1,P2) routine that determines if
polygon P2 is contained within polygon P1. Make this function available to
the query planner for optimized rtree lookups. Update the visual01.txt
script to verify that the new functionality actually works.
FossilOrigin-Name:
6eb5d09b7f9d9bf8edbf993dccc2e2f702b95ba96cf68445609feb0ccc3ac0f7
drh [Sat, 25 Aug 2018 18:57:12 +0000 (18:57 +0000)]
drh [Sat, 25 Aug 2018 16:22:33 +0000 (16:22 +0000)]
Fix a minor issue in the altercol.test script so that it runs on Windows.
FossilOrigin-Name:
62089c6daf9ea51be769c077c23d6fa881ba797255fa22d71baaac191a9c1ba7
drh [Sat, 25 Aug 2018 16:14:46 +0000 (16:14 +0000)]
Invoke the authorizer for ALTER TABLE RENAME COLUMN.
FossilOrigin-Name:
fc293bcb3402f049fb9e22aacfb4fdcd13f8609edf29c97d6cb95ce351363873
drh [Sat, 25 Aug 2018 03:29:34 +0000 (03:29 +0000)]
Remove an unnecessary IN_RENAME_COLUMN macro from resolve.c.
FossilOrigin-Name:
5858c0bde7c210f07cfa72cee95325847b26733abab4f56301b57cd816931e97
drh [Sat, 25 Aug 2018 02:04:05 +0000 (02:04 +0000)]
The implementation of sqlite_rename_column() must be holding the
schema mutexes.
FossilOrigin-Name:
f0eed21d4e2e1f2c8e680a510a283ac21156c9766efec5b80a362a040424bce7
dan [Fri, 24 Aug 2018 20:20:33 +0000 (20:20 +0000)]
Fix a problem by renaming a column when the schema contains an trigger program
featuring an UPSERT that uses an "excluded.*" reference to a different table.
FossilOrigin-Name:
83d5f5abce6be2f6d342a6fc68839289400d7bcb80eaa38194789142c93a80c3
dan [Fri, 24 Aug 2018 20:10:22 +0000 (20:10 +0000)]
Fix a problem with renaming a column that occurs as an "excluded.colname"
construction in an UPSERT that is part of a trigger program.
FossilOrigin-Name:
bb2f7234968157b605522dea8e115d8772ab4234147894089d6e48fedf5d6a5d
mistachkin [Fri, 24 Aug 2018 19:04:08 +0000 (19:04 +0000)]
Set SQLITE_PTRSIZE to 4 when compiling with xlc on 32-bit AIX.
FossilOrigin-Name:
d158e5b12eec5b81d54c8f5902a972795423947a21d0212b6cceb2810aa6cc5c
dan [Fri, 24 Aug 2018 17:55:49 +0000 (17:55 +0000)]
After modifying and reparsing the schema as part of an ALTER TABLE RENAME
COLUMN, check that no new schema errors have been introduced (e.g. ambiguous
column names in views) before committing the operation.
FossilOrigin-Name:
a0e06d2c5e3abb3f300491e7651bb177a436899efd4506de9239359096b6a9e7
dan [Fri, 24 Aug 2018 16:04:26 +0000 (16:04 +0000)]
Avoid incorrectly replacing tokens that refer to a column being renamed via an
alias. For example, do not overwrite "xyz" when "a" is renamed in "CREATE VIEW
v1 AS SELECT a AS xyz FROM tbl WHERE xyz=1"
FossilOrigin-Name:
ad072a835f97ff418f5919d94f547ce8afb4fc7c7b590deba41f1e62136a79ac
drh [Thu, 23 Aug 2018 20:09:19 +0000 (20:09 +0000)]
Add the "atrc" test program to the Makefiles. Fix a typo in the instructions
in the header comment of the atrc program.
FossilOrigin-Name:
2130a407ddd8cdf3d29b109d773686c84906d9dc1663376e94e191086d524c9e
drh [Thu, 23 Aug 2018 19:32:04 +0000 (19:32 +0000)]
Fix harmless compiler warnings in the ALTER TABLE logic. Rephrase an
error message to use active voice.
FossilOrigin-Name:
a7dae59a7e7b187fa2e9457bbb4b01cfe3d48bbdf59c3f8f7b4156bcde3bda98
drh [Thu, 23 Aug 2018 18:56:33 +0000 (18:56 +0000)]
Automatically detect when compiling for AArch64 on windows and set
SQLITE_BYTEORDER to little-endian to avoid compile-time testing.
FossilOrigin-Name:
ef6729be85ed106212ed23a024d83b85b709207cf287436c0603a21c659f36ad
drh [Thu, 23 Aug 2018 18:50:19 +0000 (18:50 +0000)]
The Expr.iColumn field must also be initialized in tokenExpr().
FossilOrigin-Name:
772985f18b2ab8fa04a0c29593fc6d9b74c1361260cb59e566606dd56f326535
drh [Thu, 23 Aug 2018 18:22:00 +0000 (18:22 +0000)]
Make sure the Expr.iTable field is initialized by tokenExpr().
FossilOrigin-Name:
02a05a3b3c6440432fc15daa14678a6eba40759e17e43ae8d63d19a0842de56a
drh [Thu, 23 Aug 2018 14:54:45 +0000 (14:54 +0000)]
dan [Tue, 21 Aug 2018 17:03:25 +0000 (17:03 +0000)]
Fix a test case that was failing for SQLITE_ENABLE_STAT4 builds.
FossilOrigin-Name:
1e29fd430dead641c5d92943ce81cf51b3df2f45c5a011bb2eed592efd62e056
dan [Tue, 21 Aug 2018 16:32:53 +0000 (16:32 +0000)]
Rename internal function sqlite3RenameToken() to sqlite3RenameTokenMap() and
sqlite3MoveRenameToken() to sqlite3RenameTokenRemap().
FossilOrigin-Name:
b9ae9a0a188b82d7066f6ef7d21592889df0a61559e9a0e01819e9d5a92c3f36
dan [Tue, 21 Aug 2018 15:06:59 +0000 (15:06 +0000)]
Rationalize some duplicated code in alter.c. Also improve error messages for
ALTER TABLE RENAME COLUMN in some cases.
FossilOrigin-Name:
5d2163c734aea8c0e1611af1161734bf141e7bd02c08f0b5f2e7bac3c7dfd2a5
drh [Tue, 21 Aug 2018 12:46:34 +0000 (12:46 +0000)]
Further attempts to reduce the number of false-positives genenerated by
static analysis tools.
FossilOrigin-Name:
38f9ce6503c4dd05ccdd73463b1784a6df7ed6e5018c29c5874a3681ca34ba54
drh [Tue, 21 Aug 2018 12:16:33 +0000 (12:16 +0000)]
Fix various harmless warnings generated by static analysis tools.
FossilOrigin-Name:
a04a0ea9e30e0ef12bafa0b90b7d1b7764865768bb4a738b0c73a7a3ef9416db
dan [Tue, 21 Aug 2018 08:29:48 +0000 (08:29 +0000)]
Minor changes to function tokenExpr() in order to claw back cycles lost to the
rename-column change.
FossilOrigin-Name:
479976955ecb27c3e77a280187eaf23722178549e072b34f3183354a27a4e5c3
dan [Mon, 20 Aug 2018 20:01:01 +0000 (20:01 +0000)]
dan [Mon, 20 Aug 2018 16:16:05 +0000 (16:16 +0000)]
Ensure that it is not possible to rename columns of system tables, views or
virtual tables.
FossilOrigin-Name:
786b5991dc0bb6ba13327a3ac9d04efbf8b591dedc736b719b206ffd865b1918
drh [Sat, 18 Aug 2018 18:27:18 +0000 (18:27 +0000)]
Additional fixes for harmless compiler warnings that are specific to this
branch.
FossilOrigin-Name:
9d8e73bf71e996b810959ffc0e60de69b5e8ca3301df52f9c35d5e9075921798
drh [Sat, 18 Aug 2018 18:14:02 +0000 (18:14 +0000)]
dan [Sat, 18 Aug 2018 18:01:58 +0000 (18:01 +0000)]
Have ALTER TABLE RENAME COLUMN also edit trigger and view definitions.
FossilOrigin-Name:
7908e8a4a3b9577211a5d3da9c4142c46e9d5872be4a6499ec053f2b547019b8
dan [Sat, 18 Aug 2018 17:35:38 +0000 (17:35 +0000)]
Improvements to error handling in ALTER TABLE RENAME COLUMN.
FossilOrigin-Name:
7fa1faeaff30b74b68ee6f4b363d837f21cf313d8262361c901bda884df139a2
mistachkin [Fri, 17 Aug 2018 21:14:28 +0000 (21:14 +0000)]
Fix harmless compiler warnings only seen with STAT4 enabled.
FossilOrigin-Name:
6f5e84bafcaf425cb664c7db8179c9c09a13c96aaf057551c04a919ca554d057
dan [Fri, 17 Aug 2018 18:08:28 +0000 (18:08 +0000)]
Allow an ALTER TABLE RENAME COLUMN to proceed even if the schema contains a
virtual table for which the module is unavailable.
FossilOrigin-Name:
7b72b2360a70eb1f788b3c4d745967dfedb2c80af6b2e146ba940a3741fd51a1
dan [Fri, 17 Aug 2018 17:18:16 +0000 (17:18 +0000)]
Ensure that CREATE VIEW, TRIGGER or INDEX statements can be edited by ALTER
TABLE RENAME COLUMN even if they use collation-sequences or
user-defined-functions that are not available.
FossilOrigin-Name:
540014efd6a048373313c6cd9413de10d5d7114daf537cf5999ccf3c5c3f9358
dan [Thu, 16 Aug 2018 19:49:16 +0000 (19:49 +0000)]
Further progress on updating trigger programs as part of ALTER TABLE RENAME
COLUMN.
FossilOrigin-Name:
3f47222b6e20e1c1ef41c0f7391c8b5c7648e2a2d6013303d155ad59ce27143a
drh [Thu, 16 Aug 2018 16:24:24 +0000 (16:24 +0000)]
Fix a harmless unused-variable compiler warning that only came up in certain
compile-time configurations.
FossilOrigin-Name:
456842924bb33c0af8af29402f06e5f25b6791f698a0d12a080258b20b0cfb61
drh [Thu, 16 Aug 2018 15:29:40 +0000 (15:29 +0000)]
Fix EXPLAIN QUERY PLAN so that it describes IN operators implemented using
a ROWID lookup.
FossilOrigin-Name:
60045fbf52162f15f2e18a4e392e80fab19bdbce242728b5e62b0894eac49dfd
dan [Wed, 15 Aug 2018 20:28:39 +0000 (20:28 +0000)]
dan [Wed, 15 Aug 2018 14:03:26 +0000 (14:03 +0000)]
Allow sqlite3_snapshot_open() to be called to change the snapshot after a read
transaction is already open on database.
FossilOrigin-Name:
41399169954f9bef53c3fa89879f39823b80bd127f76cf60abbe24217878a571
dan [Tue, 14 Aug 2018 21:05:35 +0000 (21:05 +0000)]
Fix a problem when renaming an IPK column that is also part of a child key.
FossilOrigin-Name:
6e6a2bfdbbfd4ffc14be88962ff97bf3c626fef9d1a337715d2a4be1a657fb0d