danielk1977
ecb2a9644b
Fix a segfault in sqlite3OsLock() (CVS 1525)
...
FossilOrigin-Name: 51348b82c4d5801091537b80059d770410774905
2004-06-02 06:30:16 +00:00
drh
df0148931d
Remove the sqlite3_libencoding() api and the ISO8859 encoding option. (CVS 1523)
...
FossilOrigin-Name: b53640ed2232aaf173a71636073477d80407d11f
2004-06-02 00:41:09 +00:00
drh
02f9f6b38f
Get the attach.test working on windows. (CVS 1508)
...
FossilOrigin-Name: 48226a73801bc478d6fd6de5a554aec5119d2194
2004-05-31 18:21:54 +00:00
danielk1977
3a81de11b6
Some test cases for read locks (CVS 1505)
...
FossilOrigin-Name: 0e07006704cd441f91d5fadbf3b644fd20da79bd
2004-05-31 12:34:53 +00:00
danielk1977
33752f8acf
Remove the <ON CONFLICT> clause from BEGIN (CVS 1501)
...
FossilOrigin-Name: 9029274b6129140064bd7ac34df7eaba00d28efb
2004-05-31 08:55:33 +00:00
danielk1977
1d850a72c2
Replace OP_Begin, OP_Commit and OP_Rollback with OP_AutoCommit. (CVS 1500)
...
FossilOrigin-Name: b8ed812c92f2dbb4431d45aeb41646ceb53e0cbc
2004-05-31 08:26:49 +00:00
drh
a19b775db9
Add 3-byte and 6-byte integer serial types. This makes databases smaller
...
and faster. Should we go ahead and add 5- and 7-byte integer types too? (CVS 1499)
FossilOrigin-Name: e6685af815c4c0c7f09bb097a59a121862b865cf
2004-05-30 21:14:58 +00:00
danielk1977
bd26f925e0
Ensure vacuum handles table names with spaces in them. (CVS 1491)
...
FossilOrigin-Name: 0a6689be843e695902fbfef863f128915545499e
2004-05-29 10:43:06 +00:00
danielk1977
3df6b2570f
Fix vacuum so that it works with blobs. (CVS 1490)
...
FossilOrigin-Name: 4feb4b9a71ce7a92924d2358a7ccecb4cca19223
2004-05-29 10:23:19 +00:00
danielk1977
ef2cb63e9e
Allow CREATE and DROP TRIGGER on attached databases. (CVS 1488)
...
FossilOrigin-Name: 4060a37d0baaa60c50f2dde4a1ab344133fcabbb
2004-05-29 02:37:19 +00:00
danielk1977
76d505baad
Fix a bug in the sqlite3_column_decltype() API. (CVS 1486)
...
FossilOrigin-Name: c8a40218c20cf5d0abad330e8fa59ca4c36e7608
2004-05-28 13:13:02 +00:00
danielk1977
48dec7e215
Allow CREATE and DROP VIEW on attached databases. (CVS 1485)
...
FossilOrigin-Name: ad879a957d93c0b49c289947826b451d3ea37e5b
2004-05-28 12:33:30 +00:00
danielk1977
a8858103c9
Allow DROP TABLE and DROP INDEX on attached databases. (CVS 1484)
...
FossilOrigin-Name: 2fb3708e10a06660ad1974ef8e9742b706a0a9fc
2004-05-28 12:11:21 +00:00
danielk1977
cbb18d2256
Allow CREATE TABLE and CREATE INDEX on attached databases. (CVS 1483)
...
FossilOrigin-Name: 4984a130ccf3b8e486941a5d0d0cc70a691f0dac
2004-05-28 11:37:27 +00:00
drh
d3194f5a4a
Change the record format to include an extra varint at the beginning to record the number of bytes in the header. (CVS 1478)
...
FossilOrigin-Name: 0c4d138807f367d75b3fb5b2dadf206df725659f
2004-05-27 19:59:32 +00:00
drh
5f3b4ab53c
Remove the COPY command. (CVS 1477)
...
FossilOrigin-Name: 287f86731c71401dbac098e08357367b4f8e5a43
2004-05-27 17:22:54 +00:00
danielk1977
6d88bad4f9
Enhance the C function used to test sqlite3_create_function() from Tcl. (CVS 1476)
...
FossilOrigin-Name: c85e5f1528d098ea330ed0cf7e3c01cf9be93c10
2004-05-27 14:23:36 +00:00
danielk1977
49e4643ee8
Test sqlite3_bind_blob(). (CVS 1475)
...
FossilOrigin-Name: 42247b2fb0c94e75a432b3e067fff9a1be328fc8
2004-05-27 13:55:27 +00:00
danielk1977
f93bbbea47
A few more bugfixes. Test cases pass now. (CVS 1472)
...
FossilOrigin-Name: c9e3015faffb650d8dbf1f7f95a7057a36361bac
2004-05-27 10:30:52 +00:00
danielk1977
c572ef7fcd
Various bugfixes. 68 Test cases still fail. (CVS 1471)
...
FossilOrigin-Name: 67a140cf78d99e38ccd94751c4f8ead1a2b96859
2004-05-27 09:28:41 +00:00
drh
eb2e176a12
More MEM changes in the vdbe.c. Still will not compile. (CVS 1469)
...
FossilOrigin-Name: dbdd1a7f316e576d0611748ec63c9ef00d4c10db
2004-05-27 01:53:56 +00:00
danielk1977
ea61b2c4fc
More test cases for the new query API. (CVS 1468)
...
FossilOrigin-Name: 74097ecdb0b1e0eec143c5a3f8ca2f0d63d6f38d
2004-05-27 01:49:51 +00:00
danielk1977
04f2e68d0c
Add TCL test bindings and some more test cases for the new query API. (CVS 1467)
...
FossilOrigin-Name: d72adf0c522b442d5e1663862bdd639c282d4495
2004-05-27 01:04:07 +00:00
danielk1977
b77f5dadbf
Ensure the type of an sqlite3_value* is not modified by calls to
...
sqlite3_value_*() calls. (CVS 1463)
FossilOrigin-Name: ce8b15203413f38a8b7127eb08ae5db1c1eb164a
2004-05-26 13:27:00 +00:00
danielk1977
3cf8606395
Add some tests for the new API. Many more to come. (CVS 1462)
...
FossilOrigin-Name: d5659f2ee6788e0205fb5e03eeaf64e6c0aa9bed
2004-05-26 10:11:05 +00:00
danielk1977
398eae781e
Remove the show_datatypes pragma. (CVS 1461)
...
FossilOrigin-Name: 93bb958d939302795027f738b8f663cbce3e8783
2004-05-26 06:58:43 +00:00
danielk1977
17240fd90f
More changes to do with the new sqlite3_step() API. (CVS 1458)
...
FossilOrigin-Name: e83138250ce0a8caacbd1822eec2e06796d2f5f2
2004-05-26 00:07:25 +00:00
danielk1977
35bb9d026e
Update the typeof() operator to respect manifest types. (CVS 1450)
...
FossilOrigin-Name: 162cf42e33691f4c9ec3a25abcaa2bdcdca2b5e0
2004-05-24 12:55:54 +00:00
danielk1977
bd7e46086e
Fix for retrieving UTF-16 little-endian text from a big-endian database. (CVS 1446)
...
FossilOrigin-Name: 8104baf23dd28fc982cf260e3e8c90f0c582f602
2004-05-24 07:34:48 +00:00
danielk1977
93d4675d67
Begin changing the vdbe so all stack values use the database encoding. (CVS 1444)
...
FossilOrigin-Name: f47de3a933b51b37629a0ca2e492a534a12e7339
2004-05-23 13:30:58 +00:00
danielk1977
e1cd98740f
Add a couple of tests for UTF-16 databases. (CVS 1438)
...
FossilOrigin-Name: d7551df8c32c4981d94eb57cd2a999592e91f50f
2004-05-22 10:33:04 +00:00
danielk1977
28d47b57ec
Tests for the functions in utf.c. (CVS 1436)
...
FossilOrigin-Name: 802d65affcafffda33e2ff1cbd4e4869dc3814df
2004-05-22 08:16:11 +00:00
danielk1977
106bb236a8
Further work on the new API. All the functions to execute queries are there
...
now. (CVS 1427)
FossilOrigin-Name: fc94575d77f9865e1553bb70c2e3eda2a0b8669e
2004-05-21 10:08:53 +00:00
drh
ce665cf60e
Eliminate the OP_SortMakeRec and OP_SortCallback opcodes. Sort using the
...
standard record format. (CVS 1426)
FossilOrigin-Name: 25643a0137d395572f16cfec3ab3327d913138ba
2004-05-21 03:01:58 +00:00
drh
736c22b803
Most sorting problems are fixed. Dead code has been removed. 3 test failures
...
remain but will be fixed by the new function API once it gets implemented. (CVS 1425)
FossilOrigin-Name: 3b55095e036d68886d007239333bbf90acd15692
2004-05-21 02:14:24 +00:00
danielk1977
2f2322fa9c
Fix typo in bind.test that was causing a seg-fault. (CVS 1424)
...
FossilOrigin-Name: d1af1a4acce77b87367049da93b13746b743e831
2004-05-21 02:11:40 +00:00
danielk1977
4ad1713c5e
Add new sqlite3_open() and sqlite3_open16() APIs. (CVS 1423)
...
FossilOrigin-Name: 307b55006c401f10ec5fa5b12cc7d5ba860f9a46
2004-05-21 01:47:26 +00:00
drh
d3d39e939d
Add internal support for collating sequences. This breaks 244 tests. (CVS 1420)
...
FossilOrigin-Name: a6cb09d7af537726acc87b9133f68c81e839e047
2004-05-20 22:16:29 +00:00
drh
e2ea40d36d
Fix problems with types and the recognition of BLOB as having no affinity. (CVS 1418)
...
FossilOrigin-Name: 8411718f0ac17e9c2376fdf8b5fa0cc5fc88be9b
2004-05-20 12:41:19 +00:00
danielk1977
6622cce372
Add some more elements of the new API. (CVS 1416)
...
FossilOrigin-Name: 2821767b947ae1a70e98dd7f47d69e424c37947f
2004-05-20 11:00:52 +00:00
drh
137b35e480
Fix the misc3.test test file. (CVS 1415)
...
FossilOrigin-Name: 478836f44825d8154c0106e46e9a2b2daaa4cf33
2004-05-20 03:30:10 +00:00
drh
465407d9b6
VACUUM works again. (CVS 1412)
...
FossilOrigin-Name: c4e1d02ffded1421c09b0c8e45954e69f3583297
2004-05-20 02:01:26 +00:00
danielk1977
51e3d8e204
Add support for the new sqlite3_bind_*() APIs. (CVS 1410)
...
FossilOrigin-Name: e8f980d842fcd793552acd32708db55c8f014634
2004-05-20 01:12:34 +00:00
drh
a34a84fe1a
Get more tests running. (CVS 1409)
...
FossilOrigin-Name: 7eb3f29e305d0f455f6544560c567fa6b6e24986
2004-05-19 21:09:31 +00:00
drh
fec19aad44
Correctly handle 64-bit integers in SQL statements. (CVS 1408)
...
FossilOrigin-Name: 34f03ba6a9d6e2144d0c6cbbbeb37b4c69705f1f
2004-05-19 20:41:03 +00:00
drh
7cf6e4de35
Change opcode names and comments to better describe the operation of
...
the incrKey flag. OP_MoveTo becomes OP_MoveGe. (CVS 1407)
FossilOrigin-Name: 8f249c45cbc77f4320798ff1a830b55e5c74888a
2004-05-19 14:56:55 +00:00
drh
772ae62a82
Bug fixes in where.c. The where.test test works again. (CVS 1406)
...
FossilOrigin-Name: 7c31e257e2d109bfedf63dc307b422e1abd46d0e
2004-05-19 13:13:08 +00:00
drh
d8820e80fc
New varint encoding gives a maximum varint length of 9 instead of 10. (CVS 1395)
...
FossilOrigin-Name: 61bdb53a363644074d01682fab8220078523676b
2004-05-18 15:57:42 +00:00
danielk1977
bf3b721fab
Fix many problems with manifest types and column affinity. Most things are
...
working now. (CVS 1393)
FossilOrigin-Name: ad4a964158ba9ca9d221cf7ea0439577f3894890
2004-05-18 10:06:24 +00:00
danielk1977
e014a83880
More changes to support the new types model. Compound SELECTs are currently
...
broken. (CVS 1389)
FossilOrigin-Name: 0f6c9b05e688e281fa168aacdd867db408df2863
2004-05-17 10:48:57 +00:00
danielk1977
93edea9380
Fix a bug meant real numbers with a negative sign were being stored as
...
strings by default (instead of IEEE floats). (CVS 1388)
FossilOrigin-Name: 9321e7426337e04064b5791c48dd5fc3c1eecaa2
2004-05-16 22:55:28 +00:00
danielk1977
a37cdde042
More changes to support the manifest type model. A few things are currently
...
broken. (CVS 1385)
FossilOrigin-Name: a4af838f8d1b81ec6c8db97655c6876aca0738d9
2004-05-16 11:15:36 +00:00
drh
9188b38919
Cache record headers in the OP_Column opcode. (CVS 1382)
...
FossilOrigin-Name: 8d9eab178f285415775060369f372a88c7091f9f
2004-05-14 21:12:22 +00:00
drh
6d2fb15475
Optimized varint routines and tests added. (CVS 1380)
...
FossilOrigin-Name: d4e0933dc72b66157164610e0b03f339bc535fb9
2004-05-14 16:50:06 +00:00
drh
e6c438166f
Table 1 of a database (the sqlite_master table) defaults to use B+trees. (CVS 1378)
...
FossilOrigin-Name: 45b60de5c7deb83d10ab54759434e32847f0c2ef
2004-05-14 12:17:46 +00:00
danielk1977
3d1bfeaa22
Implement type affinity for table and index records (CVS 1375)
...
FossilOrigin-Name: dbfe6e93166d9557d66cab9dca7977baa3501e5e
2004-05-14 11:00:53 +00:00
danielk1977
e7c8d58a1f
Changes to make regression tests in rowid.test pass. (CVS 1373)
...
FossilOrigin-Name: 790226c94493a6d58a7e52fd3ed35ef495fab11e
2004-05-13 13:38:52 +00:00
danielk1977
9688f3796b
Update quick.test (CVS 1371)
...
FossilOrigin-Name: a61eefa081c219704d9e6c4ee20ef9bf01d76b7f
2004-05-13 11:46:00 +00:00
danielk1977
96fc5fe6a5
Various minor fixes and updates to make more test cases pass. (CVS 1370)
...
FossilOrigin-Name: dbe8385ecf1df8bf0b1baf5e811ec5a1de5c4c42
2004-05-13 11:34:16 +00:00
danielk1977
452c989fd8
Manifest types in indices. At the moment indices use manifest typing, but
...
some other parts of the SQL engine do not, which can lead to some strange
results. (CVS 1368)
FossilOrigin-Name: 9f2b6d9d3a07e25fcdb7e8290da7a182a65c37b2
2004-05-13 05:16:15 +00:00
drh
fc70e6fcec
Fix a problem with B+trees. (CVS 1366)
...
FossilOrigin-Name: 64a75c4cd40f79c7b384bb2972922ff0c10212a4
2004-05-12 21:11:27 +00:00
drh
8b18dd4fb5
Implement a B+tree option (all data stored on leaves). (CVS 1365)
...
FossilOrigin-Name: b8f70d17f06531269caa0a127efb2d25ad0f3e1c
2004-05-12 19:18:15 +00:00
drh
ac69b05efa
The pager now handles file ":memory:" complete in memory with no disk I/O. (CVS 1363)
...
FossilOrigin-Name: 97de9f7ceebab859ef984d155808575ad321afc0
2004-05-12 13:30:07 +00:00
danielk1977
8d059845fc
Add some more code to support manifest typing in indices. Not activated yet. (CVS 1362)
...
FossilOrigin-Name: 2f16c9ef3c101c4280991ce3cb0c3bea7b6ed439
2004-05-12 11:24:02 +00:00
danielk1977
cfcdaefe11
Change the table record format to support manifest typing. (CVS 1361)
...
FossilOrigin-Name: 0242c9e4f7c85e9c911cf30d90b0cdb1015f3d7d
2004-05-12 07:33:33 +00:00
drh
779b6d357a
Change sqlite_ to sqlite3_ in the attach2.test test script. (CVS 1360)
...
FossilOrigin-Name: 98f756e6a0809e7034bfb587ff9d9085baac0c6e
2004-05-11 10:04:48 +00:00
drh
f4dada7512
A different fix for the problem with opening existing files. See also
...
check-in (1358). (CVS 1359)
FossilOrigin-Name: 93deaf54c6e1daee0c89a5e2a7d4a5e712ece3f4
2004-05-11 09:57:35 +00:00
danielk1977
bf57cfebc2
Fix a bug that was preventing the library from opening existing files. (CVS 1358)
...
FossilOrigin-Name: ad064bd429602fcac26b377841da90a1a56f5966
2004-05-11 09:50:02 +00:00
drh
a3b321df91
Fix an offset problem in the meta values that was causing problems for
...
many tests. (CVS 1357)
FossilOrigin-Name: 6d378cb7e7e081bb3bcd3a347bc1e02f50ee25cc
2004-05-11 09:31:31 +00:00
drh
0e1c19e2b6
Updates to sqlite3BtreeKeyFetch() and sqlite3BtreeDataFetch(). (CVS 1347)
...
FossilOrigin-Name: a675ac49882887dfcbf671e9092a29aca9eb694e
2004-05-11 00:58:56 +00:00
drh
f328bc80ce
Work toward getting the new btree.c integrated with vdbe.c. (CVS 1345)
...
FossilOrigin-Name: bc5a2dafa1df74ba6403b4751ac1c33b0fee2884
2004-05-10 23:29:49 +00:00
drh
3644f0858d
The btree.c module passes all tests and is ready for integration.
...
Still need to go back and do coverage testing. (CVS 1343)
FossilOrigin-Name: 84506b23365933383397e02a8ec5a980c57c80fc
2004-05-10 18:45:09 +00:00
drh
24cd67e732
The btree.c module now passes all the historical regression tests. New tests
...
for new functionality still need to be added. (CVS 1342)
FossilOrigin-Name: 433ae0d327e5d5b0761e88418ed57fc4cbf4966b
2004-05-10 16:18:47 +00:00
drh
3a4c141357
More btree.c bug fixing. It's getting closer but still not there yet.
...
Move obsolete test scripts into the attic. (CVS 1331)
FossilOrigin-Name: 9379c7c9cf8b0770a0c8d1feb5ffdba342173589
2004-05-09 20:40:11 +00:00
drh
da200cc1c7
The btree.test test is no working with integrity_check enabled. (CVS 1330)
...
FossilOrigin-Name: 9f1caa530e69aaf202debac36b6a46d707f362d7
2004-05-09 11:51:38 +00:00
drh
457f501464
Begin trying to get integrity checking working on the new btree.c. (CVS 1329)
...
FossilOrigin-Name: 499569daa6a3aed6609bcb1e11a3d231e13f4f9c
2004-05-09 01:35:05 +00:00
drh
c12fc0d85f
All tests in btree.test now pass (but only because I commented out the
...
btree_integrity_check test.) (CVS 1328)
FossilOrigin-Name: ee706e9c74c3fb32fc3369db226fad9ed4db7596
2004-05-09 00:40:52 +00:00
drh
c8629a13e1
More btree.c bug fixes. (CVS 1327)
...
FossilOrigin-Name: e9f84ff3fe45a014ab60fabbfd91d19e6d353477
2004-05-08 20:07:40 +00:00
drh
ab9f7f12d5
Get the code back to the point where it will compile the btree.c tests.
...
Move the default key comparison routine from btree.c into vdbeaux.c.
Commented out code in vdbe.c that will need to be fixed. (CVS 1326)
FossilOrigin-Name: 2bca92240b16a51f78661c3ba4d779d231780f8d
2004-05-08 10:56:11 +00:00
drh
9b17127705
More bug fixes in btree.c. (CVS 1323)
...
FossilOrigin-Name: 2d64cba38c0f5fffa18cb30c4c448278837de49d
2004-05-08 02:03:22 +00:00
drh
c39e000bbf
More bug fixes in btree.c. (CVS 1322)
...
FossilOrigin-Name: a80939ef714ec884950b4a1f4f809ffa37fdfa59
2004-05-07 23:50:57 +00:00
drh
de64713041
The btree.c module compiles and links and passes some tests. Many tests
...
still fail, though. (CVS 1321)
FossilOrigin-Name: d394b2b217d4d728f9eba397262bf9d36195719e
2004-05-07 17:57:49 +00:00
drh
3aac2dd7bc
Pager tests working. (CVS 1308)
...
FossilOrigin-Name: 910067a200c4b25b5d813a84146673d3d1c80952
2004-04-26 14:10:20 +00:00
drh
1bdd9b5787
Get the temp_store and default_temp_store pragmas working. Update the
...
documentation. Also fix a malloc problem that popped up during the regression
testing. (CVS 1302)
FossilOrigin-Name: 7ace576215367101904677bd69951755ee9cb1a1
2004-04-23 17:04:44 +00:00
drh
8b8891bf0a
Fix a VDBE stack overflow that occurs when the left-hand side of an IN
...
expression is NULL and the result is stored on the stack rather than used
to control a jump. Ticket #668 . (CVS 1299)
FossilOrigin-Name: fc7a7975b03c144c2db3566facd008d3701c735e
2004-03-17 23:32:08 +00:00
drh
6e17529e97
Fix the min/max optimizer so that it works when the FROM clause is a
...
subquery. Ticket #658 . (CVS 1293)
FossilOrigin-Name: 31c94acc72d318b5dec0fef1485621943add45c8
2004-03-13 14:00:36 +00:00
drh
489c4677a0
Bump the version number to 2.8.13. Patch up the limit test so that it works
...
in spite of ticket #521 - we don't want any tests failing in an official
release even if there are bugs. :-D (CVS 1285)
FossilOrigin-Name: 2c6bd21ed0e212109cfb4a37cfac2a10ab58a024
2004-03-08 13:26:17 +00:00
drh
79f14b7240
A vdbe stack element might have a string value even after a call to
...
Integerify(). Ticket #641 . (CVS 1283)
FossilOrigin-Name: 3cac4b7b526d6c5dbf394009b534707bcb65b0da
2004-03-03 01:51:24 +00:00
drh
b1aa04fccc
Make sure a LIMIT clause on a SELECT cleans up the vdbe stack so that if it
...
occurs inside a trigger, it won't cause a stack overflow. Ticket #640 . (CVS 1282)
FossilOrigin-Name: 5aaa2939baa972231def086ed5f9d9ba63302532
2004-03-02 18:37:41 +00:00
drh
0d131ab716
One more fix to the new HH:MM:SS modifier. This time add some test
...
procedures too. (CVS 1280)
FossilOrigin-Name: 7b3b8968ee9a5349dd6e9ae1e7a311bf8906607c
2004-02-29 01:08:17 +00:00
rdc
f146a77677
Add comments and prototype for experimental sqlite_last_statement_changes() API function. Also, allow function to be called from tcl. (CVS 1273)
...
FossilOrigin-Name: ca99920b0dbf773962b47766d690154fd1276513
2004-02-25 22:51:06 +00:00
drh
268380ca9e
Min() and max() functions honor the distinction between TEXT and NUMERIC
...
data. Ticket #623 . typeof() is now a user function. Some tests are
now failing due to ticket #521 . (CVS 1272)
FossilOrigin-Name: adbe31adf1ad0ca723203ca3d7dc480324c60d43
2004-02-25 13:47:31 +00:00
drh
946966f2a1
Disable an assert which (as it turns out) is not always true. Ticket #615 . (CVS 1269)
...
FossilOrigin-Name: 2773c1d384b750eee037e6ccc61bc56b5204d690
2004-02-25 02:20:41 +00:00
drh
02f75f19e5
Make sure BEGIN, COMMIT, and ROLLBACK are really no-ops when preceded
...
by EXPLAIN. Ticket #626 . (CVS 1267)
FossilOrigin-Name: 2af1f065b5eb39fd3ecac00f8a66d1b4186aead5
2004-02-24 01:04:11 +00:00
drh
b621c23775
Test cases for printf of double overflows. (CVS 1260)
...
FossilOrigin-Name: 96a6d2d3ff5bd0aaff188ee1c5e2f02cbea435b2
2004-02-21 19:41:04 +00:00
drh
8eb2cce55c
Enhance date/time functions to work with negative years. Ticket #617 . (CVS 1255)
...
FossilOrigin-Name: ffa971934867b6bbe943c004154d5f161e0ea697
2004-02-21 03:28:18 +00:00
rdc
a503d7312a
Fixed behaviour of last_insert_rowid() with triggers and add last_statement_change_count() function that works correctly with triggers. (CVS 1252)
...
FossilOrigin-Name: 6734c923395ca41ce453f56dd7d6e7794fbb3bb5
2004-02-20 22:54:25 +00:00
drh
9cbe7ca7db
Fix a memory leak that occurs if you call sqlite_interrupt() on a query
...
using aggregate functions where the aggregate function returns a string
longer than 32 characters. (CVS 1248)
FossilOrigin-Name: 2c1e74e58a702fd2be954467a12e69a33b252831
2004-02-18 16:57:23 +00:00
drh
230680276c
Add more tests of the sqlite_interrupt() logic - looking for a reported
...
memory leak. (Didn't find it.) (CVS 1246)
FossilOrigin-Name: e4c8b1c3aa9d288f518c6394187354e6fa18978e
2004-02-18 01:31:53 +00:00
dougcurrie
960ac04f4f
Avoid line endings munging by Cygwin; ticket #370 (CVS 1245)
...
FossilOrigin-Name: 50e67948f89380f2f4b536add0b8179e6db960a5
2004-02-17 18:26:57 +00:00
drh
a1f9b5ee0b
The sqlite_exec() function is now implemented using sqlite_compile() and
...
sqlite_step(). This opens up lots of opportunity to remove old code. (CVS 1240)
FossilOrigin-Name: 9771ad1e811e02e10bb738550fbea447749083c5
2004-02-14 16:31:02 +00:00
drh
b5f70c2ef1
Disable the malloc.test tests if not compiled with -DMEMORY_DEBUG (CVS 1239)
...
FossilOrigin-Name: 41b6ad78a6097f35bfac6ff40d2e5d6071a1c4cd
2004-02-14 01:39:50 +00:00
drh
c602f9ae01
Add the SQLITE_NOTADB return code for cases when you try to open a file
...
that does not even remotely resemble an SQLite database file. (CVS 1233)
FossilOrigin-Name: 0c77cee70f078152969933c1d340cea1c86286b0
2004-02-12 19:01:04 +00:00
drh
4d189ca48f
Add hooks on each attached database connection for storing auxiliary
...
information. Add the USING clause to ATTACH. (CVS 1232)
FossilOrigin-Name: 800c11f4bce014a07110eb539992a609e6418406
2004-02-12 18:46:38 +00:00
drh
3054efee07
All REPLACE INTO syntax inside of triggers. Ticket #610 . (CVS 1231)
...
FossilOrigin-Name: a6b862a9db6d409a53cc13e7008b27d4848b5509
2004-02-12 17:28:13 +00:00
drh
8ef83ffed8
Always reload the schema after a rollback. Ticket #594 . (CVS 1229)
...
FossilOrigin-Name: 12c7a83f8e4055c4590983ef212648c781ebd963
2004-02-12 15:31:21 +00:00
drh
93581642d2
VACUUM returns SQLITE_INTERRUPT when interrupted. Ticket #593 . (CVS 1228)
...
FossilOrigin-Name: 2fe9f5101cb0f743532912ece3d37f6c873e7025
2004-02-12 13:02:55 +00:00
drh
9eb9e26b82
Pass all (relevant) regression tests when using the codec. (CVS 1223)
...
FossilOrigin-Name: 5200e9edc5fdba0285a3cb1cd808cbf66d7a349e
2004-02-11 02:18:05 +00:00
drh
fb044c1d1c
Perform updates in search order. Ticket #602 . (CVS 1221)
...
FossilOrigin-Name: cf1cec74ae039cd7cbc8a1032d29f067dedb4210
2004-02-10 13:41:52 +00:00
drh
d0ba193dc7
Allow SQLITE_PAGE_SIZE to be redefined on the compiler command-line. (CVS 1217)
...
FossilOrigin-Name: 4c7bf714b5f3d2bb7366367ddf906141a7e36407
2004-02-10 01:54:28 +00:00
drh
e2201971ac
Add test case for ticket #601 . (CVS 1215)
...
FossilOrigin-Name: 096312dacb9eb2f8da3cec1504aef8629b505e7f
2004-02-09 14:35:28 +00:00
drh
585a3d7c22
Add the crashtest1.c program used to test the ability of the database to
...
survive a program crash or power failure. Ticket #599 . (CVS 1210)
FossilOrigin-Name: 597a59a72d662b291fb09a069547efd08aa5adb1
2004-02-08 06:06:37 +00:00
drh
e84a306b91
Remove undocumented extensions from sqlite_mprintf() and friends in order to
...
make it about 10% smaller. (CVS 1207)
FossilOrigin-Name: 0b3f552b986fd89c48c350b0746be93b9d276ecc
2004-02-02 12:29:25 +00:00
drh
22fbcb8ddd
Fix the handling of -init option to the sqlite shell. Ticket #568 .
...
Also add hooks for encrypting the database. (CVS 1206)
FossilOrigin-Name: 3c796de8d1af55944f396f08feaa9e69c1652896
2004-02-01 01:22:50 +00:00
drh
0c37e6309b
Make sure min() and max() optimizations work for subqueries. Ticket #587 . (CVS 1201)
...
FossilOrigin-Name: af73fbca839f8cbe39c21f1f9e439fe9b79005c8
2004-01-30 02:01:03 +00:00
drh
b733d03749
Add the ability to group FROM terms using parentheses. Names of columns in
...
a join no longer include the table name. (CVS 1197)
FossilOrigin-Name: 3626f6d4a1adb4209d5bd9e6477343b52bddbdf2
2004-01-24 20:18:12 +00:00
drh
30c84bfd5f
In test programs, an SQLITE_SCHEMA return is retried repeatedly, not just once. (CVS 1195)
...
FossilOrigin-Name: df3509e13dc05751b7a5af07b57bca449fe5244c
2004-01-21 13:35:13 +00:00
drh
0bca353087
Make ATTACH and DETACH work with the non-callback API. Ticket #574 . (CVS 1194)
...
FossilOrigin-Name: c32a80fe3cd6dda5238e59bd48d9dd22b4856304
2004-01-20 11:54:03 +00:00
drh
d1bec47a3d
More aggressive retry schedule in sqlite_busy_timeout(). (CVS 1181)
...
FossilOrigin-Name: 5e85025be7aa4a03b0cfb4d0f28a2e44653b9d3f
2004-01-15 13:29:31 +00:00
drh
23b2db23b4
Allow "<expr> IN <table>" as a shorthand for
...
"<expr> IN (SELECT * FROM <table>)" (CVS 1180)
FossilOrigin-Name: 01874d252ac44861e927dea3f5534f67e19b1fa8
2004-01-15 03:30:24 +00:00
drh
aa940eacfe
Reinsert the experimental sqlite_commit_hook() API. (CVS 1179)
...
FossilOrigin-Name: 72bc84f2f18f6eeb279a4ad670310e85d154f663
2004-01-15 02:44:03 +00:00
drh
751f41217e
Fix comparisons of ROWID against floating point numbers so that they work
...
correctly. Ticket #377 and #567 . (CVS 1178)
FossilOrigin-Name: c9ac3db8e08403398ec344757385334601a59374
2004-01-14 21:59:22 +00:00
drh
52b36cabe0
Ignore NULLs in a subquery as the right operand of IN. Ticket #565 . (CVS 1175)
...
FossilOrigin-Name: c9e7996fb9080b715e9b273a3ac3ed3744e10a77
2004-01-14 13:38:54 +00:00
drh
c713bdc778
Move some files around and bump the version number in preparation for the
...
release of 2.8.10. (CVS 1173)
FossilOrigin-Name: 74c661850e1899c457d4e822d8284bb66e1dc651
2004-01-14 03:32:37 +00:00
drh
d1d9fc3397
Permit sqlite_exec() to be called from within user-defined functions. (CVS 1166)
...
FossilOrigin-Name: 03636c94a542b1f90a3acfbe65a9c2976872073f
2004-01-07 19:24:48 +00:00
drh
c5dd9fa8ab
Preserve the HH:MM:SS for most date/time modifiers. Ticket #551 . (CVS 1163)
...
FossilOrigin-Name: 70df32b716b0d6a4f72bb3ae6496431e53733b6a
2004-01-07 03:29:16 +00:00
drh
9d4280d53f
Additional integer overflow boundary case tests. (CVS 1159)
...
FossilOrigin-Name: 532170d4b8fc7a4e596a817257e9e1f81d364940
2004-01-06 01:52:34 +00:00
drh
202b2df74a
Fix problem in the code generator were incorrect code was being created if
...
the SQL source contained a negative integer that was too large to fit in
a 32-bit signed integer variable. Ticket #552 . (CVS 1157)
FossilOrigin-Name: b8381d9fe99273507e8626638110646801afef06
2004-01-06 01:13:46 +00:00
drh
b46d162d8d
The "EST" timezone designation is ambiguous. Do not use it in the test
...
scripts. (CVS 1155)
FossilOrigin-Name: 720b565e2d02344e4d38263f4995dfabc60c0860
2004-01-02 15:08:43 +00:00
drh
f586aa8b96
Update date/time functions so that they correctly handle NULL arguments. (CVS 1147)
...
FossilOrigin-Name: a5a5fbd60153dd068ec2559455146e84da075b90
2003-12-23 16:34:12 +00:00
drh
7091cb0566
Add localtime<-->UTC conversions to the date functions. (CVS 1146)
...
FossilOrigin-Name: 8482b8c44766e7f80fc449b3dbdd3f37396c332b
2003-12-23 16:22:18 +00:00
drh
93a5c6bdf4
Use a built-in atof() function instead of the one from the library to
...
avoid problems with locale. Ticket #305 . (CVS 1144)
FossilOrigin-Name: 4d9edbc50f7dee64edbadad2e2dc4f93d8248b3b
2003-12-23 02:17:35 +00:00
drh
5202560ee5
Makefile updates for the new "test4.c" module. Also disable large file
...
tests for archic TCL versions. (CVS 1139)
FossilOrigin-Name: 55e2488912871381959326ab7fa89123ab30d659
2003-12-19 12:31:19 +00:00
drh
acf01e7ddd
A better fix for ticket #530 - one that is likely to work on unix
...
implementations in addition to linux. Also more tests for multi-thread
locking added. (CVS 1138)
FossilOrigin-Name: 7dddbeb586504de30c64a1e61614da447f18c8ba
2003-12-19 08:40:22 +00:00
drh
a6064dcf3b
Add new thread-testing code and fix locking under Linux threads. Ticket #530 . (CVS 1137)
...
FossilOrigin-Name: b36a4bb61094d539273c21a9e4042384f10a7806
2003-12-19 02:52:05 +00:00
drh
acf4ac96e3
Make sure the pagers in-memory cache states in sync with the disk file.
...
Ticket #529 . (CVS 1133)
FossilOrigin-Name: da00efb13fe8ccf1c27e4e1193df6b53de9463f4
2003-12-17 23:57:34 +00:00
drh
4be295be07
Improvements to the way PRAGMA integrity_check works. More likely to output
...
userful information when given a corrupt database. (CVS 1132)
FossilOrigin-Name: b92c31d6c138f9462730cecfe14f7dde19778e79
2003-12-16 03:44:47 +00:00
drh
0f18bfa789
Fix the code generator to a void a VDBE stack overflow on 3-way joins.
...
Ticket #519 . (CVS 1129)
FossilOrigin-Name: 230a4ff2c8a3927533baf5b22edc9f25490d5443
2003-12-10 01:31:21 +00:00
drh
6f8c91caa0
Make the VACUUM command run out of the VDBE like all other commands.
...
(Ticket #464 ). Make the VACUUM command work even if there are VIEWs
in the SQLITE_MASTER table that come before tables they reference.
(Ticket #515 ) (CVS 1128)
FossilOrigin-Name: 614cbbafa180469744421f8fbe56cb392f48d05f
2003-12-07 00:24:35 +00:00
drh
447623d9aa
Fail an ATTACH if the auxiliary database is locked. Ticket #514 . (CVS 1127)
...
FossilOrigin-Name: ac428c8d4a731678cc26cf198689814a8a56d141
2003-12-06 22:22:35 +00:00
drh
4925ca00a3
Disallow temporary indices on persistent tables. (CVS 1122)
...
FossilOrigin-Name: 72bf73b2c1e3594aa85920e47fc345bba56c80d0
2003-11-27 00:48:57 +00:00
drh
7014aff37d
Revised date/time functions - now broken out into a separate source file.
...
See the DateAndTimeFunctions wiki page for additional information. (CVS 1116)
FossilOrigin-Name: 68ef9b45bd3abdedf3721011ad0fb22e8735e721
2003-11-01 01:53:53 +00:00
peter
63a1e49859
Fix progress test error 1-2 (CVS 1115)
...
FossilOrigin-Name: c3a495026c7eafd576042a05a9a5f585ba8ba9b9
2003-10-23 15:27:11 +00:00
danielk1977
348bb5d6c8
Add sqlite_progress_handler() API for specifying an progress callback (CVS 1111)
...
FossilOrigin-Name: ddb364635a207658664ea92fc677cf16a143a938
2003-10-18 09:37:26 +00:00
drh
191c0323c0
Allow quoted trigger names. Ticket #468 . (CVS 1109)
...
FossilOrigin-Name: 54aa0fb236d17b53b194a667d68c71007c8e7687
2003-10-03 00:13:38 +00:00
drh
319e4e7484
All LIKE and GLOB operators to use function notation. "A LIKE B" can be
...
expressed as "LIKE(B,A)". (CVS 1108)
FossilOrigin-Name: 95b27ebd1322a877112dee514dffddb0937e45fa
2003-09-30 01:54:13 +00:00
drh
dab3518880
Remove support for the Oracle8 outer join syntax. (CVS 1106)
...
FossilOrigin-Name: 824430b3ce435386b83ceb882f1510ac9f27d8fa
2003-09-27 13:39:38 +00:00
drh
5b8424b9e4
Add a test case for ticket #464 but leave it commented out for now. We
...
will fix this problem when VACUUM is rewritten. (CVS 1105)
FossilOrigin-Name: 7ba8dc9b1e5c788f2c0ab32314754324c86aaa49
2003-09-27 01:08:37 +00:00
drh
3775084a75
Add additional backslash escapes to the COPY command for compatibility
...
with PostgreSQL. Ticket #460 . (CVS 1104)
FossilOrigin-Name: 70a50bdda318f353c8be1ba200f9aedc34642c93
2003-09-27 00:56:31 +00:00
drh
562528c480
Do all WHERE clauses tests, even if an index is used for lookup so that
...
we know the test cannot be FALSE. The test might end up being NULL in which
case it would need to be treated as false. Ticket #461 . (CVS 1103)
FossilOrigin-Name: 5aea81488b2d3bcdc009ccf0f0ffcda046e38d79
2003-09-27 00:41:27 +00:00
drh
61b487d02a
The tokenizer should never return a negative size of the next token.
...
Ticket #453 . (CVS 1098)
FossilOrigin-Name: 4fbca3ab09596c530da7c50657f3bc9140178dd5
2003-09-12 02:08:14 +00:00
drh
9faae94118
Add test cases that check out sqlite_get_table() on queries with results sets
...
containing 100 columns. (CVS 1097)
FossilOrigin-Name: f9feedec32c975235c0d0996962033f6a63312ba
2003-09-09 00:47:47 +00:00
drh
82a4851a4b
Add initial test cases for the new sqlite_bind() API. Fix bugs that the new
...
test cases found. (CVS 1096)
FossilOrigin-Name: f6c4908e9b5b6ac9adc4af50dc5110dbb655dae3
2003-09-06 22:45:20 +00:00
drh
e4c616931d
Add locks to the in-memory backend so that recursive writes will be detected
...
and rejected. Ticket #436 . (CVS 1089)
FossilOrigin-Name: 3403d28a49b27d3059d3d399ca057e8d33eb857a
2003-08-27 22:54:31 +00:00
drh
901afd4341
If the database filename is an empty string, open a temporary file to hold
...
the database. Ticket #432 . (CVS 1085)
FossilOrigin-Name: da53369f0bf133b89b213bbb1ccea13eb93ab6ed
2003-08-26 11:25:58 +00:00
drh
263659be4d
Close files before deleting them on test scripts under Win2k.
...
Ticket #434 . (CVS 1084)
FossilOrigin-Name: 2a40b46140720783cf4002fb9993f7f6766dbf5f
2003-08-26 11:18:19 +00:00
drh
78100cc928
Add a "pk" column to the table_info pragma which is true for each column
...
that is part of the primary key. Add a "foreign_key_list" pragma that gives
information about all foreign keys for a table. Both changes are experimental. (CVS 1081)
FossilOrigin-Name: 5232b0665b84a9339a85918570093a376a0ea91f
2003-08-23 22:40:53 +00:00
drh
5d9d757626
Add the "onecolumn" method to the TCL language bindings. (CVS 1076)
...
FossilOrigin-Name: c7b4c28fbc0bca5645af5750fd353f4eca400b40
2003-08-19 14:31:01 +00:00
drh
9b1b01bb76
Do not delete tables with the same name when dropping triggers.
...
Ticket #430 . (CVS 1074)
FossilOrigin-Name: ef58f163b08d13f8e9b69459bd83e0bf9d5b404b
2003-08-16 12:37:51 +00:00
drh
8e18bac793
Fix a segfault that occurs in the VACUUM command if run on an empty database
...
with the EMPTY_RESULT_CALLBACKS pragma enabled. Ticket #427 . (CVS 1073)
FossilOrigin-Name: 3563e9cf9d6b20f09e92deb21fdda93bcd8fb583
2003-08-15 13:24:51 +00:00
drh
37ed48ed2f
Provide a more informative error message when a uniqueness constraint
...
fails. Ticket #419 . (CVS 1068)
FossilOrigin-Name: 086aa1c9922b7bf399b3ee8b73ba7353d126b119
2003-08-05 13:13:38 +00:00
drh
4305d10360
The {quote: SrcList} object was not being expanded correctly by a call to
...
sqliteSrcListAppend() if the {quote: SrcList} had previously been duplicated by
a call to sqliteSrcListDup(). Ticket #416 . This check-in fixes that problem
by keeping a separate nAlloc field on {quote: SrcList}. A similar change is made
to {quote: IdList} and {quote: ExprList} to avoid future problems. (CVS 1067)
FossilOrigin-Name: da6273255471673841fdcadc688aeac80722e130
2003-07-30 12:34:12 +00:00
drh
98e3e60012
Make sure the schema loader callback can handle EMPTY_RESULT_CALLBACKS being
...
on. Ticket #406 . (CVS 1065)
FossilOrigin-Name: 8c163fc0c7c721b7a5fa6727b0e90bff4484c782
2003-07-27 17:26:22 +00:00
drh
dc2d94de56
In the VDBE, when an integer value will not fit into a 32-bit int, store it
...
in a double instead. Ticket #408 . (CVS 1064)
FossilOrigin-Name: 7514c3db165e8cc5c696b2b345844949a0e45a61
2003-07-27 17:16:06 +00:00
drh
7b58daeafe
Fix the LIMIT clause so that it applies to the entire query in a compound
...
query. Prior to this change LIMITs on compound queries did not work at
all. Ticket #393 . (CVS 1058)
FossilOrigin-Name: 543479e3aed77976a0c689cf40811bf88353f706
2003-07-20 01:16:46 +00:00
drh
e5f50722b4
Make sure the min() and max() optimizer works correctly when there
...
is a LIMIT clause. Ticket #396 . (CVS 1057)
FossilOrigin-Name: c35e50717678703763c696e3e9b265add2ca6454
2003-07-19 00:44:14 +00:00
drh
9cb733c39d
In the test scripts, do not try to delete files that are still open.
...
Windows does not like it when you do. Ticket #397 . (CVS 1055)
FossilOrigin-Name: 93a2c961b17d2459272e2d8654bd4b972f52fbe1
2003-07-18 01:25:34 +00:00
drh
a88dc3f629
Make LIMIT 0 return no rows. LIMIT -1 still returns all rows. Ticket #346 . (CVS 1053)
...
FossilOrigin-Name: a31d0bd90af7cc95f8e36ca8ece21515f872235e
2003-07-16 11:51:35 +00:00
drh
ef0cae500d
Allow negative values for LIMIT and OFFSET. Add tests for negative LIMITs
...
and OFFSETs. Make the OFFSET work even if LIMIT is 0 or negative. (CVS 1052)
FossilOrigin-Name: e6a752bfef24f773973c151c6262ff331a9dc57a
2003-07-16 02:19:37 +00:00
drh
da808d56dc
An an extra test associated with ticket #387 . (CVS 1050)
...
FossilOrigin-Name: 6a07ac3782bc18f907ffcf66d908ddaa82ab9293
2003-07-09 16:34:56 +00:00
drh
073e5a7751
Allow the output arguments in sqlite_compile and sqlite_step to be NULL
...
pointers. Tickets #384 and #385 . (CVS 1049)
FossilOrigin-Name: dd84f88f6c4012e4a093a4881f6fe50527bb2006
2003-07-09 00:28:13 +00:00
drh
1dd59e0f94
Correctly handle comparing an INTEGER PRIMARY KEY against a floating point
...
number. Ticket #377 . (CVS 1045)
FossilOrigin-Name: 982aa3356bcc217003cd9e6a829619219c334797
2003-07-06 17:22:25 +00:00
drh
3c8bf55a04
Make sure indices in ATTACH-ed databases are put into the right hash table.
...
Ticket #354 . (CVS 1044)
FossilOrigin-Name: eb4582831d536cd26a1738f9ad197e40486d0958
2003-07-01 18:13:14 +00:00
drh
dc339ee29c
The prior fix of ticket #360 was incorrect and caused a memory leak. This
...
check-in plugs the memory leak and correctly fixes ticket #360 . (CVS 1040)
FossilOrigin-Name: fc490f677b89e623b41f9e7f5f3bade9b981562c
2003-06-29 20:25:08 +00:00
drh
937dd84de8
Fix a bug in the soundex() code. Ticket #367 . Add tests for ticket #261
...
even thought the problem could not be reproduced. (CVS 1035)
FossilOrigin-Name: e2ca936feee35b3fce99c95c2cf8c0ad05cd9c3b
2003-06-28 16:20:22 +00:00
drh
d60ccc6a75
In a SELECT, the rowid of a view or subquery which is really a join is
...
set to NULL if the join is flattened. Ticket #364 . (CVS 1034)
FossilOrigin-Name: bad8b55833f5120003a19883154dac5146cc36a3
2003-06-24 10:39:46 +00:00
drh
8ce10ba65e
Make sure the source of a PULL opcode is not an ephemeral string. Ticket #360 . (CVS 1031)
...
FossilOrigin-Name: cb70ee67ea9f5a47d58820e0e8b28c8f945217ed
2003-06-22 01:41:49 +00:00
drh
d93d8a812e
Add the %z format to the sqlite_mprintf() and related functions. (CVS 1028)
...
FossilOrigin-Name: eca1398eaac67d772aff2676a470d9a6d96a93ca
2003-06-16 03:08:18 +00:00
drh
3fc673e622
Do not flatten a subquery which is the right term of a LEFT OUTER JOIN
...
if the subquery contains a WHERE clause. Ticket #350 . (CVS 1027)
FossilOrigin-Name: dd8943e8583cf7ed3b662570a5607856fd246dac
2003-06-16 00:40:34 +00:00
drh
ed717fe3b2
Enhance the "PRAGMA integrity_check" command to verify that all indices are
...
correctly constructed. New calls to integrity_check are made in the test
suite. These changes are intended to prevent any future problems such
as seen in ticket #334 . (CVS 1024)
FossilOrigin-Name: c9734c27074d2039a1896a8c6965c08d03711b13
2003-06-15 23:42:24 +00:00
drh
81e293b4b2
Extend the authorization mechanism to disallow the ATTACH and DETACH commands.
...
Ticket #340 . (CVS 1010)
FossilOrigin-Name: a97dca73aed0b42d8dcf944360667ae93c5324fd
2003-06-06 19:00:42 +00:00
drh
7d02cb73ca
Fix a bug in UPDATE OR REPLACE that was introduced by check-in (999).
...
Also clean up some compiler warnings for VC++. (CVS 1005)
FossilOrigin-Name: af6f2bdf59fb621ff3e1d061e429f01ebd7d0b42
2003-06-04 16:24:39 +00:00
drh
b8ec20925d
Adjust test cases to cope with the extra column returned by the database_list
...
pragma. (CVS 1004)
FossilOrigin-Name: fa10c6df5a80127508fb198c21ef93acfc93ebe2
2003-06-04 15:53:02 +00:00
drh
bc2bca0843
Disable the unreadable file test (attach-6.2) under windows because of
...
problems in the OS. (CVS 1000)
FossilOrigin-Name: 4bfb30d20bdd33c6e26c8fb8392a75d3cf2ee4bd
2003-06-04 12:31:53 +00:00
drh
5383ae5c12
Avoid corrupting indices when doing a REPLACE on a table with an
...
INTEGER PRIMARY KEY that also has another index. Ticket #334 . (CVS 999)
FossilOrigin-Name: e813faae0e4086571d13c769f793add7f1f979af
2003-06-04 12:23:30 +00:00
drh
4312db55d9
Additional testing of the ATTACH command with bug fixes for the new problems
...
that the tests found. (CVS 998)
FossilOrigin-Name: 3e8889d7ce5e99fc855526fc1bb62ddbe282bfc5
2003-06-03 01:47:11 +00:00
drh
2394e376d6
Fix a bug in the COPY command introduced by check-in (991). (CVS 996)
...
FossilOrigin-Name: 77ec13dab85b70795ef06ff2c714cca0cd496837
2003-06-02 22:50:25 +00:00
drh
a0217ba720
Add the ability to INSERT or UPDATE using the "rowid" column even on tables
...
that lack an integer primary key. (CVS 991)
FossilOrigin-Name: 903adbe802ca0e987b867e5ad33aae02ad2a43d4
2003-06-01 01:10:33 +00:00
drh
f26e09c87f
Tighter binding of views, triggers, and indices to their respective
...
databases. Ticket #323 . Much more testing needs to be done to the
sqliteFix...() routines in attach.c. (CVS 990)
FossilOrigin-Name: 7202d4f1a8853368954a967b7ccca9d8a6645a2e
2003-05-31 16:21:12 +00:00
drh
6b8611126b
Additional attach testing. I now believe that ticket #317 was fixed
...
by check-in (981). (CVS 985)
FossilOrigin-Name: 24191373796b7fd6255ef9b70ce2344326308113
2003-05-17 19:23:51 +00:00
drh
79a519c047
Prevent an infinite loop when deleting a table that has a TEMP trigger. (CVS 984)
...
FossilOrigin-Name: c8c823b068916711857fa67db10fb479999b55c2
2003-05-17 19:04:03 +00:00
drh
8bf8dc9208
Fix problems with TEMP indices that lead to corrupt databases. These
...
problems were discovered while working on ticket #317 . No sure yet if
that ticket is fixed. (CVS 981)
FossilOrigin-Name: 01398fb78bab7e5c6f439f2b743f26e82118468a
2003-05-17 17:35:10 +00:00
drh
a996e477d0
Make sure the ON CONFLICT clause on a BEGIN overrides the conflict resolution
...
specified by an index. This fixes a bug reported on the newsgroup. (CVS 975)
FossilOrigin-Name: 0f92736d1fbe3b587592fe1f26dfb3558cc49727
2003-05-16 02:30:27 +00:00
drh
8af4d3ace6
Restrain the flattener in the presence of outer joins. Ticket #306 . (CVS 958)
...
FossilOrigin-Name: 6d4b6597e560578253960d9876dc8c8657f41fef
2003-05-06 20:35:16 +00:00
drh
66b4ebafb2
Added tests trying (unsuccessfully) to reproduce ticket #304 . (CVS 957)
...
FossilOrigin-Name: fda637f453d35b74f676997fcf056a948ccd771b
2003-05-04 20:42:56 +00:00
drh
7ad4334add
Fix deficiencies in sqlite_complete() pointed out by R. Dennis Cote. (CVS 955)
...
FossilOrigin-Name: 54b33a5ed9f7a89435c2f1395a3177e8c778bb8a
2003-05-04 17:58:25 +00:00
drh
e9ffc168d8
Additional tests of the new flattener added. Ticket #272 . (CVS 949)
...
FossilOrigin-Name: 8d9ee45ab487614191e8d6aef845141fdddf832a
2003-05-02 16:44:25 +00:00
drh
c31c2eb82c
Enhance the query flattener to handle subqueries that are joins.
...
All regressions pass but new tests need to be added before release.
Ticket #272 . (CVS 948)
FossilOrigin-Name: ad57693e9f1b83a8cc4d028264b35018a9a4a701
2003-05-02 16:04:17 +00:00
drh
6a3ea0e6ef
VDBE cursors numbers for tables in a join do not have to be consecutive.
...
This is one step on the road to fixing ticket #272 . (CVS 947)
FossilOrigin-Name: be7aed2011b4af868b6a0c370c3d41354ae0cdf4
2003-05-02 14:32:12 +00:00
drh
524a5bf5f6
Fix the sqlite_complete() routine so that it recognizes /*...*/ comments.
...
Ticket #277 . (CVS 937)
FossilOrigin-Name: ef8eb580fc6c40264219c2ae77a9c4f8a5803c8b
2003-04-26 02:31:54 +00:00
drh
85e2096fb6
Report the correct authorization context in the authorization callback
...
when coding an INSTEAD OF trigger on an update or delete. (CVS 936)
FossilOrigin-Name: 67746833fc8de3afff80db413bd63a362bb28218
2003-04-25 17:52:11 +00:00
drh
2e6d11bc07
Add tests to insure VACUUM works in the presence of I/O errors. Fix some
...
problems that came to light by these tests. (CVS 935)
FossilOrigin-Name: 8d3e879349fc9523c72cb46111e0058b57ce9341
2003-04-25 15:37:57 +00:00
drh
9c05dc6298
Work around a name collision problem on windows. (CVS 934)
...
FossilOrigin-Name: c3b1f84dfce13b2523c9923e4270577862ca0595
2003-04-25 13:28:02 +00:00
drh
f7c5753174
Make VACUUM work even if multiple processes have the database open at once. (CVS 933)
...
FossilOrigin-Name: caa960289f3d1f5e8f35a94e9e4321996c211ed2
2003-04-25 13:22:51 +00:00
drh
45a304ee8c
Get VACUUM working again - with test cases. Some other minor cleanups. (CVS 931)
...
FossilOrigin-Name: 5afb88008fed253e6d1fc0ed5172370b61d3727b
2003-04-25 02:43:08 +00:00
drh
5cf590c128
Fix some issues with INSTEAD OF triggers. (CVS 930)
...
FossilOrigin-Name: 206b17397b1d2b55179c935927ff1d8215728c32
2003-04-24 01:45:04 +00:00
drh
b5a20d3ceb
Remove the begin_hook and commit_hook APIs. They were a bad idea. Add a
...
"trace" method to the TCL interface. (CVS 929)
FossilOrigin-Name: 6289b863590ecc5de3d1efaaa60aa6f3f64fefb3
2003-04-23 12:25:23 +00:00
drh
e22a334b78
Update the authorizer API so that it reports the database that table and
...
indices belong to and so that it reports when actions are taken in response
to a trigger. (CVS 928)
FossilOrigin-Name: c675a5504138f34cae6def782b5d3add2c67d2bc
2003-04-22 20:30:37 +00:00
drh
f0f258b11b
Add support for TEMPORARY triggers. Such triggers can write temporary or
...
permanent tables. (CVS 926)
FossilOrigin-Name: 58ddd587b0f5d565ae3b0ba3a1fa5c20d459f3fc
2003-04-21 18:48:45 +00:00
drh
881b890af4
Add more tests for the in-memory database. (CVS 925)
...
FossilOrigin-Name: 11cab41c4f02cdddc4fd3f57555573ac2814a81b
2003-04-20 23:45:23 +00:00
drh
b2fe7d8cb7
Added tests for the in-memory database backend. Also updated some comments
...
in other modules. (CVS 924)
FossilOrigin-Name: fb89adf4d1325c5ea471759ebfd8df7faa4f9a80
2003-04-20 17:29:23 +00:00
drh
7bdc0c1def
Modify the optimizer so that it does not assume that functions are
...
constant. (CVS 920)
FossilOrigin-Name: 767f1af236d115e8388e1dcc28a4df1be48d6c85
2003-04-19 17:27:24 +00:00
drh
37ea94b8c9
Bug in WHERE clause processing fixed. Ticket #298 . (CVS 919)
...
FossilOrigin-Name: 9b619c98b586a207a87942640d3a94220ff8ab02
2003-04-19 16:34:04 +00:00
drh
cab20050bb
Fix for ticket #297 - bug in sqliteSortCompare(). (CVS 917)
...
FossilOrigin-Name: 4ded1965eb83dee0f28c27ba935d615c77331571
2003-04-18 17:45:14 +00:00
drh
a69d91681d
Fix triggers to work in an ATTACHed database. Ticket #295 . (CVS 915)
...
FossilOrigin-Name: 1e5e00fb73c308378efd034cb291caf338c9fe84
2003-04-17 22:57:53 +00:00
drh
d4d595f94c
Make sure the min() and max() optimizations work on empty indexed tables.
...
Ticket #296 . (CVS 914)
FossilOrigin-Name: 98ef6110068e5ed3cd77a14b004f890b79b731f7
2003-04-17 12:44:23 +00:00
drh
027850b676
Fix the authorizer so that it correctly interprets attempts to read the
...
OLD and NEW pseudo-tables of a trigger. (CVS 911)
FossilOrigin-Name: f04bd43254b3ba3fccc842214115d4c298e28138
2003-04-16 20:24:52 +00:00
drh
bb07e9a34f
Simplify the number processing code. Fix for ticket #281 . (CVS 910)
...
FossilOrigin-Name: 4326b52a39cad4632dc2db37aa53a285a31af138
2003-04-16 02:17:35 +00:00
drh
70ce3f0c58
Get triggers working on tables with INTEGER PRIMARY KEYs. Ticket #291 .
...
This may also fix #159 . Still need to add tests so both bugs remain open
for the time being. (CVS 908)
FossilOrigin-Name: 0b996959b8d8bc2c82eab9cccc190befd0056505
2003-04-15 19:22:22 +00:00
drh
49449834fc
Do not record the inserted rowid on when doing an INSERT within a trigger.
...
Ticket #290 . (CVS 906)
FossilOrigin-Name: 96a717661a3b7108fe0cacb588d81fd8e91eb640
2003-04-15 14:01:43 +00:00
drh
a73af533de
More testing of ATTACH and DETACH. (CVS 899)
...
FossilOrigin-Name: 51f515f28cb1cc3e8f0c3531724dc8876b25f18e
2003-04-05 16:56:28 +00:00
drh
2d4583473b
Begin testing the new ATTACH and DETACH commands. (CVS 898)
...
FossilOrigin-Name: 7a0f8024a1323a15d0c83afe9302400736f01fe8
2003-04-05 03:42:26 +00:00
drh
0d1a643aea
Added experimental APIs: sqlite_begin_hook() and sqlite_commit_hook(). (CVS 896)
...
FossilOrigin-Name: 5efbf62313519d0a6e8b8f5dbb29d3ef428d73e8
2003-04-03 15:46:04 +00:00
drh
048c530c01
Use a intermediate table when inserting a TEMP table from a SELECT that
...
reads from that same TEMP table. Ticket #275 . (CVS 895)
FossilOrigin-Name: 087d1e83af12b3a9aedd4945f02774a1043b1eb4
2003-04-03 01:50:44 +00:00
drh
3aa31a16e6
Remove the experimental sqlite_open_aux_file() API. It will soon be replaced
...
by ATTACH and DETACH SQL commands. (CVS 889)
FossilOrigin-Name: b6d6e07f3a5cb493f2cf0675bc6061c5afe5c078
2003-03-30 19:17:01 +00:00
drh
0be9df076a
Fix a memory leak in triggers and update tests to show the latest error
...
message text. (CVS 886)
FossilOrigin-Name: b90d9de32d10a71fe81f5bfd0cf57faae8c5c3b4
2003-03-30 00:19:49 +00:00
drh
9468c7f489
Do not allow an empty string to be inserted into an INTEGER PRIMARY KEY. (CVS 877)
...
FossilOrigin-Name: 2aba40bea5fc1c4aef8cfd4c790d40808821ca14
2003-03-07 19:50:07 +00:00
drh
2299706c2a
Add more tests to make sure that sqlite_changes() works when using the
...
non-callback API. Ticket #250 . (CVS 876)
FossilOrigin-Name: 13e501d190e327cc6fc16e182819ea9d7bb9c566
2003-03-01 19:53:15 +00:00
drh
dde85d9e00
Get the non-callback API working with the EXPLAIN keyword and for PRAGMAs.
...
Tickets #258 and #257 . Update the API documentation on the sqlite_changes()
routine to explain how it works with the non-callback API. Ticket #250 . (CVS 875)
FossilOrigin-Name: 620e1065e978545dd7bf6fa6fad1e6b93918dbf8
2003-03-01 19:45:34 +00:00
drh
e0194f2bbd
Fix a memory leak associated with PRIMARY KEY in a CREATE TABLE statement
...
that fails. Ticket #249 . (CVS 1730)
FossilOrigin-Name: 66158843dfa073ffb8779a5170e091cebc018855
2003-02-26 13:52:51 +00:00
drh
50cceb36b6
When the right table in a LEFT OUTER JOIN contains an INTEGER PRIMARY KEY
...
make sure that key is NULL if there is no row in the right table that
matches the current row in the left table. Tickets #246 and #247 . (CVS 873)
FossilOrigin-Name: 6a45fe3bd7e19cf9c20fc6cb65b0269cdd704490
2003-02-20 01:48:12 +00:00
drh
e6da3c1816
Fix the parsing of the LIMIT clause when the limit and offset are separated
...
by a comma. The offset comes before the limit in that case. Ticket #245 . (CVS 872)
FossilOrigin-Name: 6ef91a364b2922f078b7de81816bca3f2ca0fe46
2003-02-20 00:44:52 +00:00
drh
94e9203247
Added test code to check for file descriptor leaks. All regression tests pass
...
now on both win2k and linux. (CVS 868)
FossilOrigin-Name: 75ba78280f7ab6b6acce5878859312f3223ee898
2003-02-16 22:21:32 +00:00
drh
99ee360003
Fix more bugs. The new rollback journal implementation now passes all
...
regression tests under Linux. (CVS 867)
FossilOrigin-Name: d10adc1c5727d76320d5919be55e86d030e9c8bc
2003-02-16 19:13:36 +00:00
drh
4303feedd3
Fix the pager so that correct rollbacks occur when synchronous is turned off.
...
This check-in also included unrelated documentation updates. (CVS 866)
FossilOrigin-Name: 3ef0ad8a4f2696a58aff9d812f90038c2c63f3fc
2003-02-15 23:09:17 +00:00
drh
973b6e333d
Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 863)
...
FossilOrigin-Name: 792a9e157dd066fcaffd4f5b373010151fb4ca61
2003-02-12 14:09:42 +00:00
drh
968af52acf
Modify the journal format to be more robust against garbage that might appear
...
in the file after a power failure. The changes are mostly working but more
testing is still required. This check-in is to checkpoint the changes so far. (CVS 861)
FossilOrigin-Name: 8ec5632536eea31197a3b1fd6abc57881a0cf1d7
2003-02-11 14:55:40 +00:00
drh
bb999ef6fa
Make the GROUP BY clause work even if there are no aggregate functions. (CVS 859)
...
FossilOrigin-Name: b68792315883eed8523f5e11856ec8378dc972c1
2003-02-02 12:41:25 +00:00
drh
17e9e29d1e
When a CREATE TABLE ... AS SELECT statement fails, make sure the table name
...
is removed from the internal hash tables. Ticket #238 . (CVS 858)
FossilOrigin-Name: 65264780c553e8a00ec7a40cf76b89a11b245faf
2003-02-01 13:53:28 +00:00
drh
dcd997ea2e
The sqlite_exec() function now returns SQLITE_AUTH when authorization fails.
...
Ticket #231 . (CVS 857)
FossilOrigin-Name: d93c1aeb544a5b1056424945eb43854213b30e50
2003-01-31 17:21:49 +00:00
drh
88eee38afd
Allow double-quoted strings as string constants in the IN operator. As a
...
side-efffect, allow the GROUP BY clause to refer to columns by their integer
column number. Ticket #237 . (CVS 856)
FossilOrigin-Name: 187d9c405891e543fc706f8ddb41f3966a842214
2003-01-31 17:16:36 +00:00
drh
3a84069da3
Additional testing and bug fixing with the non-callback API. Updated the
...
C/C++ interface document to describe the non-callback API. (CVS 855)
FossilOrigin-Name: af1e9299468aa70d7d91e7a5445ba391ccc8ff8b
2003-01-29 22:58:26 +00:00
drh
483750ba8a
Better error messages on constraint violations. Additional tests and bug fixes
...
for the callback-free API. (CVS 854)
FossilOrigin-Name: ccc82f1ab4539a60ee5cc2625743c5389f9ccd8e
2003-01-29 18:46:51 +00:00
drh
326dce7451
The callback-free API is now working, though much more testing is need. (CVS 853)
...
FossilOrigin-Name: 162b259188e6967fe9c3722da26b81aab5655d83
2003-01-29 14:06:07 +00:00
drh
b86ccfb26e
First code for the new callback-free API. All regression tests pass but the
...
new API is mostly untested and is unlikely to work. (CVS 852)
FossilOrigin-Name: 065fa818ffc8d7562889172acea16e4e44e773ef
2003-01-28 23:13:10 +00:00
drh
fcb78a4900
Fix datatype reporting and collating sequence selection so that it works
...
correctly on views and with the UNION, EXCEPT, and INTERCEPT operators. (CVS 839)
FossilOrigin-Name: 71cc292dce59cf8224b205d1cdbff59ad12f1043
2003-01-18 20:11:05 +00:00
drh
db48ee02c4
Improvements to the pager to help large updates against a large database run
...
faster. Also improved the testing of the pager rollback algorithms. (CVS 835)
FossilOrigin-Name: 717523d3750dce784fa767ed9a8267d1246798ef
2003-01-16 13:42:43 +00:00
drh
2c3831cb23
Finish out the test suite for the new sqlite_set_authorizer API. (CVS 834)
...
FossilOrigin-Name: 701a73918db22fd134a8b959670ba7a4a908c8c5
2003-01-14 13:48:20 +00:00
drh
77ad4e4133
More tests of the sqlite_set_authorizer() API together with fixes for bugs
...
that the new tests uncovered. (CVS 832)
FossilOrigin-Name: cc2ae781ac186f9ee1afacdc9117087421955369
2003-01-14 02:49:27 +00:00
drh
7160220495
Make the GLOB work write with upper-case characters. Ticket #226 . (CVS 831)
...
FossilOrigin-Name: 7ea46e706485cc159f9d1c7e69efcdd048a0bb12
2003-01-14 00:44:08 +00:00