drh
43617e9ab9
Code changes resulting from Coverity analysis.
...
http://scan.coverity.com/ Found 1 potential segfault in sqlite3_mprintf().
Also 2 failures to fclose() following a malloc() failure. And lots of
cases where unnecessary conditionals could be removed from the code. (CVS 3126)
FossilOrigin-Name: e510e6dd9d6261f33b853af3b32d155b9d6b63b3
2006-03-06 20:55:46 +00:00
drh
bfa8b1020b
The table_info pragma shows column affinity as "" if there is no column
...
affinity. Ticket #1570 . (CVS 3122)
FossilOrigin-Name: 5cae8d63d9c83f481bd2fbbcfed69df631062651
2006-03-03 21:20:16 +00:00
drh
57bacb2282
Ignore leading spaces on text to numeric conversions. Ticket #1662 .
...
Fixes to test cases broken by the recent changes to round(). (CVS 3118)
FossilOrigin-Name: cdca3383c54b33aeafbbdbbb4ae7c90796cf66e5
2006-03-03 19:12:29 +00:00
drh
41714d6f83
Allow WHERE clause terms on the left table of a LEFT OUTER JOIN to
...
contain aggregate subqueries. Ticket #1697 . (CVS 3117)
FossilOrigin-Name: a286e54e26f9a364127649eeea160d5fa8928faf
2006-03-02 04:44:23 +00:00
drh
d589a92a26
Change the ROUND() function to return a REAL value instead of TEXT.
...
Ticket #1699 . (CVS 3116)
FossilOrigin-Name: 9dbadfb2111f7d7f971e1832db3992ed5851d8b1
2006-03-02 03:02:48 +00:00
drh
3e450ec254
Add a test to make sure parser stack overflow is detected and reported. (CVS 3114)
...
FossilOrigin-Name: 201ab3b5238c4afeb9a9f254f9ed3632b106066d
2006-02-27 23:19:20 +00:00
drh
187e4c6ac9
The parser now permits very large triggers - triggers with 10000 or more
...
statements. (CVS 3113)
FossilOrigin-Name: b4fa96d0e92182cd8792e88b4540b95912bb9f95
2006-02-27 22:22:27 +00:00
drh
52fc849a3c
Detect integer overflow in the abs() function. The random() function
...
now provides 64 bits of randomness instead of just 32. Fix bugs in
testing logic of test4.c. (CVS 3108)
FossilOrigin-Name: 942c509595a2a300e798e6b048ad7fc3bc54af43
2006-02-23 21:43:55 +00:00
drh
e134ff1ea8
Always generate code, even if it is a no-op, for CREATE and DROP statements
...
that use the IF EXISTS or IF NOT EXISTS clause. (CVS 3106)
FossilOrigin-Name: f8173e6aea8e90f64f5907f3f7ff4f34281f40da
2006-02-18 16:36:45 +00:00
danielk1977
ddfb2f036a
Ensure temp db is open before executing a pragma like "temp.cachesize = xxx". Fix for #1682 . (CVS 3104)
...
FossilOrigin-Name: 1e4644b2369547da65fcaa9a3c8ddd206a3c82ae
2006-02-17 12:25:14 +00:00
drh
7d9bd4e19e
Or the SQLITE_UTF16_ALIGNED with the encoding field in
...
sqlite3_create_collation and UTF16 strings will always be aligned
on an even byte boundary when passed into the comparison function. (CVS 3103)
FossilOrigin-Name: 7a1701e8c562087d364dff28cd7cad7ca4cdb5ae
2006-02-16 18:16:36 +00:00
danielk1977
2d9fcaa61c
Account for a malloc failure in the asynchronous writer thread in test_async.c (CVS 3096)
...
FossilOrigin-Name: 2f2a8a69cb380dc30b85a792c369020fec3c79a5
2006-02-14 14:02:08 +00:00
danielk1977
bf623f25cd
Fix bug in test_async.c version of OsFileSize(). (CVS 3095)
...
FossilOrigin-Name: 239e53b4f29b4faf2dbdc2aebd2332ad25b14286
2006-02-14 13:48:33 +00:00
danielk1977
be29bfc0b5
Add simple io error tests for test_async.c. (CVS 3094)
...
FossilOrigin-Name: 528dfb71801bb7b8a66944db6f32cc3dc0054118
2006-02-14 13:25:43 +00:00
danielk1977
750b03e543
Changes so that test_async.c works with memory management turned on. (CVS 3093)
...
FossilOrigin-Name: f4150c29df2774b4422d4296d913cdbcee62c859
2006-02-14 10:48:39 +00:00
drh
4eb9a9792a
Disable the /./ and /../ collapser logic in sqlite3OsFullPathname under Unix. (CVS 3092)
...
FossilOrigin-Name: 111a426b3e2fae77c9e6c3cd903fd80652b23720
2006-02-13 18:42:21 +00:00
drh
97bbdc0aa2
Fix a bug in the handling of sqlite3OsTruncate by the test_async.c demo.
...
Added trans.test to the suite of tests for asychronous I/O. (CVS 3091)
FossilOrigin-Name: 5b16c43542194d6c736bf7aadaaa7f31ff12af31
2006-02-13 18:35:06 +00:00
drh
8c08e86187
I give up. SUM() now throws an error on integer overflow. Those of us
...
who think this is goofy can use TOTAL() instead.
Tickets #1664 , #1669 , #1670 , #1674 . (CVS 3084)
FossilOrigin-Name: 1c3e6002cd9fd5d30e197448c4d98cdd59163cac
2006-02-11 17:34:00 +00:00
drh
ac530b1ab4
Add support and documentation for the fullfsync pragma. Also include
...
some other unrelated documentation updates. (CVS 3080)
FossilOrigin-Name: f2069d0bf3161591535e68b7389792e9cb7fe043
2006-02-11 01:25:50 +00:00
danielk1977
12f5e2018d
Minor test file modifications for builds compiled with OMIT options. (CVS 3077)
...
FossilOrigin-Name: c468aa349db4e6571711bf94781b88aa3c811d03
2006-02-10 13:33:30 +00:00
danielk1977
ff293cad83
Add trivial tests to increase coverage of sqlite3_table_column_metadata(). (CVS 3074)
...
FossilOrigin-Name: 424ce5ecd0aa9860afb73180e4d09987f3a9300a
2006-02-10 12:48:55 +00:00
danielk1977
266664ddef
Work around the case where the pending-byte page is also a a pointer-map page. Ticket #1667 . (CVS 3073)
...
FossilOrigin-Name: 5ea87fbbe09279e70d3a22b8cd9994befffeac53
2006-02-10 08:24:21 +00:00
danielk1977
1787ccabed
Fix the origin APIs so that they correctly handle views and subqueries that cannot be flattened. (CVS 3072)
...
FossilOrigin-Name: 5e8611e13de08d704cea6c9c4466c3af842a7a1a
2006-02-10 07:07:14 +00:00
danielk1977
4b1ae99d01
Add a symbol P3_TRANSIENT to pass to VdbeSetColName() to make it copy the string parameter up to the first 0 byte. (CVS 3070)
...
FossilOrigin-Name: 6ebb8f9bb2f6a3f7fde19267727aa4e2d878a416
2006-02-10 03:06:10 +00:00
danielk1977
955de52c9c
Add the column_origin_name() etc. APIs. (CVS 3069)
...
FossilOrigin-Name: 82f502cdc1fead3bf7e3190d5c9db3aee6919ed4
2006-02-10 02:27:42 +00:00
drh
0b2a5eeae9
Allow '@' to introduce host parameter names for compatibility with
...
MS SQL Server. Ticket #1671 . (CVS 3067)
FossilOrigin-Name: 0738ef818d4023a5159b6bee0a65f0b83d01c1d5
2006-02-09 22:24:41 +00:00
drh
29d7210819
SUM never gives an error. An integer result is returned for exact results
...
and a floating point result is returned for approximate results.
Tickets #1664 , #1669 , and #1670 . (CVS 3066)
FossilOrigin-Name: 9e04f8fdf1ec0dc36effb55c05d075b3b4777fef
2006-02-09 22:13:41 +00:00
drh
76c730c18f
Integer overflow in SUM causes an exception. Ticket #1669 . (CVS 3064)
...
FossilOrigin-Name: c72b946198128cbceb12dffbdf4706d9fda0fd72
2006-02-09 17:47:42 +00:00
drh
9f6696ac9f
Back out check-in (3058) - it breaks too much application code. (CVS 3063)
...
FossilOrigin-Name: 731f1e3245fafbda24355d5bdc5b249c4229305f
2006-02-09 16:52:23 +00:00
danielk1977
deb802cd83
Add the sqlite3_table_column_meta() API. (CVS 3062)
...
FossilOrigin-Name: 1ac72f68c0e9fd63decc97c166f49b405a9d323c
2006-02-09 13:43:28 +00:00
drh
fc6ad39cf8
Avoid overflowing the 48-bit mantissa of a floating point number when
...
summing large integers in the SUM() function. Ticket #1664 . (CVS 3061)
FossilOrigin-Name: a9169e879de5d5e4192d1681bc3e119fb83e739c
2006-02-09 13:38:19 +00:00
drh
ff22e18b3c
Correctly handle COLLATE clauses in tables being modified by an
...
ALTER TABLE ADD COLUMN command. Ticket #1665 . (CVS 3060)
FossilOrigin-Name: baef2f66be164910881278ea527d2be75ac2e944
2006-02-09 02:56:02 +00:00
drh
f7eece6cd9
Add "autoinc" and "collseq" columns to the table_info() pragma. (CVS 3058)
...
FossilOrigin-Name: 7940a590abb4262c17922fb2dae1d9688279b2ef
2006-02-06 21:34:27 +00:00
drh
fb8de2dc07
Detect circularly defined views and issue an error message. Ticket #1658 . (CVS 3055)
...
FossilOrigin-Name: f5341529d0cdbd63ce4c33606858158b6093969a
2006-02-05 18:55:20 +00:00
drh
570b935c2a
In joins of the form: "A, B left C" make sure that the reordering optimization
...
does not put table A after table C. Ticket #1652 . (CVS 3052)
FossilOrigin-Name: 248b9be93d9532e31c640432b75c3310e180acb3
2006-02-01 02:45:02 +00:00
drh
7aae9943f5
Fix an problem in the test scripts that was show false failures under
...
windows. (CVS 3044)
FossilOrigin-Name: 0cf4e3c6e767cab7e145c50f1fa7097844ad5abc
2006-01-31 15:19:45 +00:00
drh
81f2ccdce9
Authorization callback on the ALTER TABLE ADD COLUMN command.
...
Ticket #1479 . (CVS 3043)
FossilOrigin-Name: 461f586973431438bb074aa3077f705e9b1b80da
2006-01-31 14:28:44 +00:00
drh
3caf58ea65
Memory DB works with autovacuum. (CVS 3041)
...
FossilOrigin-Name: 34dff874a2bf8331be87310809ba11d813fadb7d
2006-01-30 22:48:44 +00:00
drh
9051a420d6
Make sure the 3rd parameter to sqlite3_prepare() is honored. Ticket #1650 . (CVS 3040)
...
FossilOrigin-Name: 9d53cc880fd2aa3bd4b4a59f666b57b0b7864e8f
2006-01-30 22:35:43 +00:00
danielk1977
8f238103ed
Add a couple of extra test cases for #1644 . (CVS 3037)
...
FossilOrigin-Name: e10d229ff21ac884dda24f0ff936aaeb36ff9a3f
2006-01-30 15:41:53 +00:00
drh
fd426c6611
Expire all prepared statements whenever there is a change to the schema
...
of the TEMP database. Ticket #1644 . (CVS 3036)
FossilOrigin-Name: 4cd4efaf5ef40a07e76fba3073bbd2600ca7e327
2006-01-30 15:34:22 +00:00
drh
afa5f68091
Fix bug with CHECK constraints contain an IN operator. Ticket #1645 . (CVS 3035)
...
FossilOrigin-Name: 944df310ce8d32798135c70becee7845676520ae
2006-01-30 14:36:59 +00:00
danielk1977
9dfa60bf8c
Add omittest.tcl script to automate testing compile-time OMIT symbols. (CVS 3031)
...
FossilOrigin-Name: 540d28a7d355d846cedfc21fb5156379fec830ce
2006-01-26 13:11:36 +00:00
danielk1977
8d34dfd656
Handle errors in saving cursor positions during a rollback by aborting all active statements. (CVS 3027)
...
FossilOrigin-Name: 5df9f022bfb22976f22b996bda169635354b825c
2006-01-24 16:37:57 +00:00
danielk1977
2b8c13e7a7
Save the position of any open cursors before a rollback. (CVS 3026)
...
FossilOrigin-Name: 32d45bcf746e7e926b8cc8bd038d66e7c2ec6562
2006-01-24 14:21:24 +00:00
danielk1977
f2fa8310f9
Return code was being dropped because of overridden variable in OP_IsUnique. Fix this and the test logic problem that hid it. (CVS 3025)
...
FossilOrigin-Name: c30705a00d7d9d61fb9cb47a1019b1a186d690a7
2006-01-24 13:09:33 +00:00
danielk1977
7246f5b9cb
Coverage improvements for main.c. (CVS 3023)
...
FossilOrigin-Name: 50964ef9b0159bfdcd7eae88b0806957cab184dc
2006-01-24 11:30:27 +00:00
danielk1977
161fb79619
General test coverage improvements. (CVS 3022)
...
FossilOrigin-Name: 153940af5af4f775fa3b1784931d3fd1e41764c5
2006-01-24 10:58:21 +00:00
drh
80d56827fe
More test script changes to get it to run without -DSQLITE_MEMDEBUG. (CVS 3018)
...
FossilOrigin-Name: 0ede5e496bc779e96f05602bebadd10f8a208d48
2006-01-24 00:15:15 +00:00
drh
7b3822b36b
Disable shared-cache OOM tests if not compiled with -DSQLITE_MEMDEBUG. (CVS 3016)
...
FossilOrigin-Name: 2d896667e460dcdaf83d18bd03050e917d54edc7
2006-01-23 23:49:34 +00:00