drh
7d44b22d45
Fix test cases so that they all still work even with -DSQLITE_DQS=0.
...
FossilOrigin-Name: 4883776669ee2f2310ea82b0d6df4d008eebaa7cb252102539cf21a635402ebb
2022-01-16 19:11:13 +00:00
drh
de7109e61b
Ensure that the typeof() function always returns SQLITE_FLOAT for floating
...
point values even when the value is stored as an integer to save space.
FossilOrigin-Name: 48889530a9de22fee536edfd1627be62396ed18d842d5fd6d91e010b4337be95
2019-05-02 17:45:52 +00:00
drh
7d0a3fd340
Add a test case for ticket [ae0f637bddc5290b44669e066a].
...
FossilOrigin-Name: ece481695fc3c959c3eba0fb485cdda43a10b06d17259b0121e15bfc5e8e8b9f
2019-05-01 19:01:27 +00:00
drh
8a7e11fb78
Avoid unwelcomed side effects on the input operands in the OP_Concat
...
operator. Fix for ticket [3be1295b264be2fac49b681]
FossilOrigin-Name: 713caa382cf7ddef872e510a76a5fca40be1a8d8876ce2f91b632bb0810a6630
2019-05-01 15:32:40 +00:00
drh
6ab91a7a7a
Add the SQLITE_DEFAULT_DEFENSIVE compile-time option. Fix up test cases
...
so that they work with DEFENSIVE enabled.
FossilOrigin-Name: 3212733cb6d1a59516d67a86df7c7b1d2456a1b2e5d7080c26b0e87b2609c65d
2018-11-07 02:17:01 +00:00
drh
0f1c2eb5f2
Correct the internal logic for SQLITE_DBCONFIG_DEFENSIVE.
...
FossilOrigin-Name: 76094345821246c887a31a234b339d03a78eddbb9fab33b06c3c20797c038349
2018-11-03 17:31:48 +00:00
drh
1f9ca2c84c
Add code to maintain indexes with expression arguments across DELETE, INSERT,
...
and UPDATE statements. Legacy tests pass, but the new code paths are still
largely untested. The query planner currently makes no effort to use
expression indexes.
FossilOrigin-Name: efaabdb71626bdc03768e87e186c72f6f3da75b2
2015-08-25 16:57:52 +00:00
drh
f9c8ce3ced
Standardize the error messages generated by constraint failures to a format
...
of "$TYPE constraint failed: $DETAIL". This involves many changes to the
expected output of test cases.
FossilOrigin-Name: 54b221929744b1bcdbcc2030fef2e510618afd41
2013-11-05 13:33:55 +00:00
drh
989b116a03
Fix the CREATE INDEX statement so that trying to create a TEMP index on
...
a non-TEMP table throws an error rather than segfaulting.
FossilOrigin-Name: e3c8935f8736d00dc83644fa21d86ca7fec6d2fc
2013-08-01 22:27:26 +00:00
drh
95e037ba39
Omit unnecessary OP_Next and OP_Prev operators when uniqueness constraints
...
guarantee that the code will only make one pass through the loop.
FossilOrigin-Name: f000c9b2b7348238fe2085140d2dd05294a19709
2011-03-09 21:02:31 +00:00
drh
025586a259
Do correct affinity transformations on floating point values which have
...
a decimal point at the beginning or end of the mantissa.
Ticket [3998683a16a7076e08f5].
FossilOrigin-Name: ca154f97a590745539b2cbfd77eb319fd7392a40
2010-09-30 17:33:11 +00:00
danielk1977
24acd8f939
Use 1<<$x instead of pow(2,$x) in the test suite code. (CVS 4715)
...
FossilOrigin-Name: 3a289b6d28bcf399845586b15f100d7c3a78b550
2008-01-16 18:20:41 +00:00
drh
e4df0e7497
Properly record the names of triggers even if the name is quoted.
...
Ticket #1737 . (CVS 3158)
FossilOrigin-Name: 4ba280ddd66d5cbf617263d6300b7582f65d47a9
2006-03-29 00:24:06 +00:00
danielk1977
3bdca9c9a5
Test suite fixes for builds that define OMIT symbols. (CVS 2962)
...
FossilOrigin-Name: 3a54a33dcb7e765ee3773397407e8929a8cfe1a9
2006-01-17 09:35:01 +00:00
drh
4d91a701bd
Add support for CREATE INDEX IF NOT EXISTS and DROP INDEX IF EXISTS. (CVS 2855)
...
FossilOrigin-Name: 551cdd6c309e75687abaeac5381b794cd5e4c10a
2006-01-04 15:54:36 +00:00
drh
8a51256c0c
Create separate affinities for INTEGER and REAL. (CVS 2766)
...
FossilOrigin-Name: ce06c123d0c5663dbaf263c2e0aaf5d9cdeb2ccd
2005-11-14 22:29:05 +00:00
drh
8df447f0e6
Omit the SQLITE_AFF_INTEGER type affinity. All numeric values are now
...
of type real, though an integer representation is still sometimes used
internally for efficiency. (CVS 2753)
FossilOrigin-Name: e0d6f61c7de2c03b8fd17ef37cf1a0add36ee618
2005-11-01 15:48:24 +00:00
danielk1977
3e8c37e7f8
Modify test scripts to work when SQLITE_OMIT_SUBQUERY (along with other OMIT macros) is defined. (CVS 2251)
...
FossilOrigin-Name: bb0254ab14417f0ab40f10f37cb63a60507f070a
2005-01-21 03:12:14 +00:00
danielk1977
0fa8ddbdec
Modify test suite to work when SQLITE_OMIT_VIEW is defined. (CVS 2132)
...
FossilOrigin-Name: 711e8d7695dfc74b3f1ee00591dcdda2cd7fc7d5
2004-11-22 08:43:32 +00:00
drh
e497f0051f
Reindex tests added and bugs fixed. (CVS 2075)
...
FossilOrigin-Name: ad433ec2b6bd34e33dfe119668f38fbb978e889d
2004-11-07 13:01:49 +00:00
drh
798da52ce7
All tests pass even if OMIT_TRIGGER is defined. (CVS 2053)
...
FossilOrigin-Name: c33b3a613751057e8a46fdcd428b8448329d414d
2004-11-04 04:42:28 +00:00
drh
6bf895708c
Update tests to work even if some features of the library are disabled. (CVS 2050)
...
FossilOrigin-Name: b11fc9b3f3a2711f98e7e45724aa1d30081197f3
2004-11-03 16:27:01 +00:00
drh
92febd92ad
Tcl interface transfers values directly between SQLite and Tcl_Objs, without
...
at translation to strings. (CVS 1898)
FossilOrigin-Name: e97c331362545ce21117776c7b61d3488668f2bf
2004-08-20 18:34:20 +00:00
drh
78d153eecd
Add test for creating indices with quoted names. Ticket #695 . (CVS 1831)
...
FossilOrigin-Name: 7e72c5b7b5e355e41c30d4ef47268e11f4c97425
2004-07-20 00:52:44 +00:00
drh
ef4ac8f9df
Change the name of the TCL command from "sqlite" to "sqlite3" so that both
...
SQLite version 2 and SQLite version 3 can be used by Tcl at the same time. (CVS 1626)
FossilOrigin-Name: d705d051bed2b92b6c3bbcc75fe5b056633b9c31
2004-06-19 00:16:31 +00:00
danielk1977
f736b77160
Handle conflicting ON CONFLICT clauses in table definitions. (CVS 1611)
...
FossilOrigin-Name: 12e77e759ec5b45b7fb94aa815435127f395162e
2004-06-17 06:13:34 +00:00
danielk1977
d8123366c4
(1) Modifications to the user-function interface and (2) Internal changes
...
to automatically created indices. (CVS 1575)
FossilOrigin-Name: 5903f53828b5d282b33e27813417e4317c9ecf0b
2004-06-12 09:25:12 +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
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
3d1bfeaa22
Implement type affinity for table and index records (CVS 1375)
...
FossilOrigin-Name: dbfe6e93166d9557d66cab9dca7977baa3501e5e
2004-05-14 11:00:53 +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
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
bb07e9a34f
Simplify the number processing code. Fix for ticket #281 . (CVS 910)
...
FossilOrigin-Name: 4326b52a39cad4632dc2db37aa53a285a31af138
2003-04-16 02:17:35 +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
a9e99aee95
Make the distinction between text and numeric data. (CVS 710)
...
FossilOrigin-Name: 310ac4fbaf0ed63f98bfacb55259960be03b0c8b
2002-08-13 23:02:57 +00:00
drh
491791a827
Fix for ticket #107 : Fix a design defect in indices that was causing queries
...
to fail when using an index on a column containing an empty string. This
fix is an incompatible file-format change. (CVS 681)
FossilOrigin-Name: 20d152fcddb4fa53556a9c93c7a869600a7c5183
2002-07-18 00:34:09 +00:00
drh
485b39b401
Fix for ticket #95 : Do not allow automatically created indices (associated
...
with UNIQUE or PRIMARY KEY constraints) to be dropped. (CVS 671)
FossilOrigin-Name: 0603eb74e6aca48f62bd95cb6c236b9e559af850
2002-07-13 03:11:52 +00:00
drh
7a7c73905d
Fix comparison functions so that they are consistent with the order
...
of elements in indices. Fix the handling of large integers. (CVS 317)
FossilOrigin-Name: fc2aae04578c305304a45ec6b76d3ab216cc7526
2001-11-24 00:31:46 +00:00
drh
f5bf0a78be
Fix a bug in DROP TABLE that could cause SQLITE_MASTER table corruption.
...
The root problem was that the sequence of BTree operations (Delete, Next)
would not always leave the cursor pointing at the first entry after the
entry that was deleted. A consequence of this error was that a DROP TABLE
on a table with indices would not always remove every index associated
with that table from the SQLITE_MASTER table. Subsequent attempts to
open the database will fail when the index for the missing table was
parsed. Changes have also been made to ignore extra indices in the
SQLITE_MASTER table so that a database previously corrupted by this bug
is once again readable. (CVS 316)
FossilOrigin-Name: 8a984667113564f2bac7412165b6ff8b7e3e8f70
2001-11-23 00:24:12 +00:00
drh
487ab3ca18
The new code for taking advantage of inequalities in WHERE clauses
...
is in place. It appears to work. (CVS 305)
FossilOrigin-Name: 262bcd17df19f45def6144b5a7e0602ca5b03deb
2001-11-08 00:45:21 +00:00
drh
adbca9cfde
Fixed the support of UNIQUE and PRIMARY KEY. (CVS 268)
...
FossilOrigin-Name: 116fdad06868acf6aca9e75c2c3497c0511a42c3
2001-09-27 15:11:53 +00:00
drh
e3c413727b
Add a new column in the SQLITE_MASTER table to record the root page
...
number of primary key indices. (CVS 252)
FossilOrigin-Name: 602ea4f9f641070592c788ce22859b849739b42e
2001-09-17 20:25:58 +00:00
drh
b19a2bc603
Disclaimed copyright. Preparing for release 2.0. (CVS 250)
...
FossilOrigin-Name: 4e926efe2b59adfec4086eb1d2ba830238facb4c
2001-09-16 00:13:26 +00:00
drh
5edc31243e
Many problems fixed. Many problems yet to go. (CVS 242)
...
FossilOrigin-Name: 62c7bd11bcf6438cdcbf66fa67a2bf4ab9d1664d
2001-09-13 21:53:09 +00:00
drh
c87fa69a29
Add index access methods to the DBBE in preparation for adding a new
...
DBBE for the btree.c module. (CVS 236)
FossilOrigin-Name: c15f6ffc4d41f30a06d750c8015226713ae0126b
2001-08-19 18:19:46 +00:00
drh
c4a3c779b1
Added transaction support (CVS 196)
...
FossilOrigin-Name: 35a8feed0d10e780c477f7440fbe80637fcf9906
2001-04-04 11:48:57 +00:00
drh
767c2001c6
Added the "memory:" driver (CVS 158)
...
FossilOrigin-Name: 54d60c68dc83410e911b828a680772541c44e9df
2000-10-19 14:10:08 +00:00
drh
2803757a35
file format change (CVS 122)
...
FossilOrigin-Name: b7b90237945d3577caba3a2f5595e52b25027297
2000-08-02 13:47:41 +00:00
drh
353f57e09b
file format change (CVS 120)
...
FossilOrigin-Name: 67f8af377c8a92ac155f55afc75e9957bec4e787
2000-08-02 12:26:28 +00:00
drh
1ccde15d69
:-) (CVS 101)
...
FossilOrigin-Name: 6ed35a1d477906dc7e35bea0579951484fcdc858
2000-06-17 13:12:39 +00:00