Commit Graph

3146 Commits

Author SHA1 Message Date
drh
74161705f1 Remove unused parameters on internal APIs. Suppress warnings from
CodeWarrior. (CVS 3110)

FossilOrigin-Name: 4b22e4b847f8d5c29830baea541194ef3a0c4811
2006-02-24 02:53:49 +00:00
drh
874abbed68 Make sure the random() function always returns a value that can be passed
to abs(). (CVS 3109)

FossilOrigin-Name: 5d2e7ea01989fc9ba2c79d192760bc29f8cab463
2006-02-23 21:51:12 +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
fcce93f62c New compile-time option SQLITE_SECURE_DELETE takes care to overwrite deleted data with zeros. (CVS 3107)
FossilOrigin-Name: 614fac906807b8c75e04effc01666874d13ce636
2006-02-22 03:08:32 +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
8ae59d5233 Fix bug preventing compliation without MEMDEBUG when ENABLE_MEMORY_MANAGE is defined. (CVS 3105)
FossilOrigin-Name: 76912b33b1a15ee4baea9f7c8685933b4d551e91
2006-02-17 15:01:36 +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
drh
7e310a420b Fix more typos in the file format document. (CVS 3102)
FossilOrigin-Name: d7495be8060fe9e8fa2d2f81e215833d7085888b
2006-02-16 00:32:37 +00:00
drh
6f1fcdf80a Fix a typo in the file format document. (CVS 3101)
FossilOrigin-Name: fac0d202e1d9fcc33dc69006a369034ee003e183
2006-02-16 00:31:01 +00:00
drh
e8c1513254 Get the build working again. Fix for check-in (3093) (CVS 3100)
FossilOrigin-Name: 4e6b74b290282fd10fae97df8dfa643a1b7ef0c6
2006-02-15 21:19:01 +00:00
drh
8ba2b34883 Mention the NOT unary operator in the documentation. (CVS 3099)
FossilOrigin-Name: 3eca2d98683eb1b3b99604b07337347ad45e42f6
2006-02-15 17:30:31 +00:00
drh
94e4f82f4a Update the configure script to use AC_HELP_STRING. (CVS 3098)
FossilOrigin-Name: 92be79debf328b9b2aac6509ed1dd94528306d3b
2006-02-15 02:00:25 +00:00
danielk1977
16825cbebb test_async.c: Writer-thread should not relinquish mutex when writing a file for which only one file handle is open (fixes bug introduced in (3093)). (CVS 3097)
FossilOrigin-Name: f0c45b7eab219ee812dbd2eb5e1c39fdf52a0ff2
2006-02-14 14:46:41 +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
89ea93121d Add in-process file locking to test_async.c. The unix implementation of
sqlite3OsFullPathname() now attempts to remove /./ and /../ elements from
the path. (CVS 3090)

FossilOrigin-Name: 42379c623073eb541d053c2dff9f49087fb290f8
2006-02-13 17:03:47 +00:00
drh
99681dbbdb Fix a deadlock problem on the sqlite3async_wait test interface. Improvements
to tracing in test_async.c. (CVS 3089)

FossilOrigin-Name: 58c6d501385c6f7656290e8451e28be3fc45843f
2006-02-13 15:29:32 +00:00
drh
fc8748a772 Improvements to the TRACE macro in test_async.c. (CVS 3088)
FossilOrigin-Name: 4c6dfec54fc128644e066c04902433f8df30672e
2006-02-13 14:49:38 +00:00
drh
4b74b26052 I/O errors shut down all processing on the same file in test_async.c. (CVS 3087)
FossilOrigin-Name: 4366e7121703a18ebb799dfa4f168b3b2508604e
2006-02-13 13:50:55 +00:00
drh
4452838a65 Fix overlapping read logic in the test_async.c demonstration. (CVS 3086)
FossilOrigin-Name: ad25127b067b3135694ddb0de552aad981640669
2006-02-13 13:30:19 +00:00
drh
5c32354cb7 Fix a memory leak in test_async.c. (CVS 3085)
FossilOrigin-Name: 904ffa4dfb60e00b01db17049de2f4934537f3d8
2006-02-13 13:23:57 +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
b151ac0015 Version 3.3.4 (CVS 3083)
FossilOrigin-Name: 033aaab67f3759f2f65d047ecbc027de9b37d7a7
2006-02-11 02:12:00 +00:00
drh
e9565a6d94 Fix typo in os_unix.c. (CVS 3082)
FossilOrigin-Name: c0e987bcfa899c073d54fbd5a3606c704b8bc3d9
2006-02-11 02:03:52 +00:00
drh
71a355e379 Prepare for the release of 3.3.4. (CVS 3081)
FossilOrigin-Name: 951f3322c0eac4ae311c84f2d15f2c264f5c473a
2006-02-11 01:56:54 +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
drh
78aecb7250 Make sure pointers are always aligned to 8-bytes when creating internal
Index structures. (CVS 3079)

FossilOrigin-Name: d20a33ac2a29a3410fa28078dd122d87d8fca4fe
2006-02-10 18:08:09 +00:00
drh
0ac0719087 Clean up pointer misuse in vdbe.c. (CVS 3078)
FossilOrigin-Name: 9e82b927490bc152f61c4ee3e95b6d08ea16c858
2006-02-10 14:02:07 +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
ad2dccde5f Add documentation for new APIs. (CVS 3076)
FossilOrigin-Name: 84c2a5c4d753d1e39136ac7e80ac816442af0a49
2006-02-10 13:14:20 +00:00
drh
6a3d670205 More comments on the unix locking code. Ticket #1672. (CVS 3075)
FossilOrigin-Name: 4b6f5688843ebe39f6bd3e863666a44d486fbe0f
2006-02-10 13:11:32 +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
drh
5c11123df8 Fix deadlock problem in the unix mutex. Ticket #1672. (CVS 3071)
FossilOrigin-Name: a6c30be214bb575f9ecfa299b7a597d21e3d3aca
2006-02-10 04:33:12 +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
86631a5ad1 Ignore errors when when calling fsync() on a directory. Ticket #1657. (CVS 3068)
FossilOrigin-Name: d54d3b82c468b7e6dd39aac6aac56b26b3918c37
2006-02-09 23:05:51 +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
cf85a51c2a Deprecate the sqlite3_aggregate_count() API. Make sure all aggregate counters
are 64 bits.  Remove unused StdDev structure from func.c.  Ticket #1669. (CVS 3065)

FossilOrigin-Name: 44bd7ba432123ec77904b862d11521f4ab96d2cf
2006-02-09 18:35:29 +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
6a714ded6c Use 64-bit integers in sqlite3_analyzer. Ticket #1666. (CVS 3059)
FossilOrigin-Name: 8b3068aca7b28d2b6c326f632bb9fe9b4940792d
2006-02-09 02:41:07 +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
4440597187 Keep correct track of the amount of outstanding memory even when the
system memory allocator returns a different number of bytes than
requested.  Ticket #1660. (CVS 3057)

FossilOrigin-Name: 6f5eb74fd93a78ccdc2ddee0936ad4c5b2813720
2006-02-06 21:22:30 +00:00
danielk1977
ab63989d42 Update the per-thread bytes allocated counter with the number of bytes actually allocated, not the number requested. Ticket #1660. (CVS 3056)
FossilOrigin-Name: 3f0a0ff1973079956506daaba9b21912fc76982b
2006-02-06 13:59:42 +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
144f20cbc8 Typecast to silence (incorrect) compiler warning. (CVS 3054)
FossilOrigin-Name: 3a04fc45ccc31f2009be812a9c9057844cf4ae3b
2006-02-01 14:39:53 +00:00
drh
0e819f9032 Always register BINARY collating sequences for UTF-16BE and UTF-16LE both.
Formerly we were only registering the native byte order by default.
Ticket #1654.  Note:  There may still be problems with collating sequence
synthesis. (CVS 3053)

FossilOrigin-Name: 3861377bd93453161dfe78a8c1d7a9f919108c8f
2006-02-01 13:50:41 +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
8e2e2a1624 Added support for the -enable-thread-override-lock option on the
configure script. (CVS 3051)

FossilOrigin-Name: 82f558bd11ddb20792fbc9f579b40ad38d7f6af5
2006-02-01 01:55:17 +00:00
drh
5062d3a048 Add the SQLITE_THREADS_OVERRIDE_LOCKS compile-time option that disables
the run-time test to see if threads can override each others locks on unix. (CVS 3050)

FossilOrigin-Name: e83a19e8cb6d721b02502925b362f2e86b2de742
2006-01-31 23:03:35 +00:00
drh
15b9a15a8d Patches to support linux on embedded platforms. (CVS 3049)
FossilOrigin-Name: a088eb6d6eda70d89add1e5d95be5efda6c0de67
2006-01-31 20:49:13 +00:00
drh
0850b5374c Fix some pointless warnings from overly-pedantic compilers. (CVS 3048)
FossilOrigin-Name: b922c8e45f9a7799583d8b42875b27032fd71422
2006-01-31 19:31:43 +00:00
drh
5e6078bdba 3rd parameter to sqlite3_prepare() should be -1 if the string length is
unknown.  Passing in zero causes a zero-length SQL statement to be
prepared, which is a no-op.  Ticket #1651.  This bug introduced by the
fix for ticket #1650. (CVS 3047)

FossilOrigin-Name: 1e68ac590d9edd3784cd7afd6705a30f01740d0d
2006-01-31 19:07:22 +00:00
drh
99049b194a Version 3.3.3 (CVS 3046)
FossilOrigin-Name: 10a3f5654616cfe5b245f1348249101a7d956222
2006-01-31 16:21:13 +00:00
drh
4e15354c38 Put in the correct release date for version 3.3.3. (CVS 3045)
FossilOrigin-Name: 1133a84039e6a81855445b5309b36136f0a7d149
2006-01-31 16:20:50 +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
77e96d142a Remove support for the non-standard ON CONFLICT clause on CREATE INDEX.
Ticket #1486.  The ON CONFLICT clause has never worked on CREATE INDEX so
removing it should not break anything. (CVS 3042)

FossilOrigin-Name: 669bcf5ab694359485ab30913d8d9e4926f41789
2006-01-30 23:04:51 +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
drh
f28b266d43 Clarify that the nBytes parameter to sqlite3_prepare is always the
number of bytes and never the number of characters.  Ticket #1646. (CVS 3039)

FossilOrigin-Name: 8efc8c57103cab61bc06842391744bec69c24428
2006-01-30 22:12:31 +00:00
drh
f04902e8f6 Documentation updates in preparation for the release of 3.3.3 stable. (CVS 3038)
FossilOrigin-Name: 6537b5713a9541ec5712ae2564a801a07f93f4c8
2006-01-30 16:20:29 +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
4d5238f0c0 Fix a couple of (harmless) intel compiler warnings. (CVS 3034)
FossilOrigin-Name: 2e23231f0c10b2bba9e08ea47859e2c0ffa84c76
2006-01-27 06:32:00 +00:00
drh
0ed4fcdcac Enhanced comments on the opcode.h building script. (CVS 3033)
FossilOrigin-Name: 7ccebf68eb1f707c2349004ae33575b484cc31a2
2006-01-26 14:29:58 +00:00
danielk1977
8c831cdd2e Fix an error in the collation sequence examples in datatype3.html. Ticket #1641. (CVS 3032)
FossilOrigin-Name: 1658ea53c929f26741d788d170368d37ae5fd105
2006-01-26 13:25:08 +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
ace3eb21b4 Handle a malloc() failure in resizeOpArray(). (CVS 3030)
FossilOrigin-Name: 5cecb4527b40c245cc6f3d6ce9f33466045d1469
2006-01-26 10:35:04 +00:00
drh
f248e21136 Minor comment changes and code optimizations. (CVS 3029)
FossilOrigin-Name: 9e55dcd1a57f2b6ad5b267e8fa58c58b266dc8c7
2006-01-25 22:50:38 +00:00
drh
2d02a67db3 Rename files using for testing only so that their name begins with "test". (CVS 3028)
FossilOrigin-Name: e4e6a205e4f7c14aae31f26f42a143fce143db1c
2006-01-25 15:55:37 +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
f011300000 Rename some variables to avoid hiding others. Also add "static" to two function signatures that were missing it. (CVS 3024)
FossilOrigin-Name: d86f18a4277ebffb644ba2e574e0b697c8bbf8e4
2006-01-24 12:09:17 +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
a7531c699a Sqlite3_analyzer reports an error if it runs into trouble. (CVS 3021)
FossilOrigin-Name: 388b9262281308d0a9dd16e2fb3df3425c2a491a
2006-01-24 02:19:53 +00:00
drh
5bd719351a Update the publish scripts to correctly build the TCL DLL for windows. (CVS 3020)
FossilOrigin-Name: 5254874a96acf89fe5f76c1628057b73ce66de4c
2006-01-24 02:00:32 +00:00
drh
e09ca2ce83 Version 3.3.2 (beta) (CVS 3019)
FossilOrigin-Name: 1fdde6c5061ceb14baa43402652bdd24e3fa85df
2006-01-24 00:40:03 +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
5de03d6cfa Change the release date for version 3.3.2 to January 24. (CVS 3017)
FossilOrigin-Name: 7a2617f6a5990dc711cacc993d7a91e4d7b6a815
2006-01-23 23:53:17 +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
drh
36a5005946 Bug fix in the WinCE bindings. (CVS 3015)
FossilOrigin-Name: c57922838a31b45f69ba14ae13df8a612884cb4b
2006-01-23 22:15:07 +00:00
drh
2a3e4a714c More progress toward getting SQLITE_OMIT_FLOATING_POINT to pass tests.
Ticket #1621. (CVS 3014)

FossilOrigin-Name: b52674e5642a9d26b15a5d5c2a6716febaef130a
2006-01-23 21:44:53 +00:00
drh
c693e9e693 Fix the shared pager tests so that they work under windows. (CVS 3013)
FossilOrigin-Name: 4a1a9f3e9df6588bcd4da13456790fbbc58f66de
2006-01-23 21:38:03 +00:00
drh
1b91c729b5 Progress toward getting SQLITE_OMIT_FLOATING_POINT to pass all tests.
Ticket #1621 (CVS 3012)

FossilOrigin-Name: c4c90965c98c591f601cd69c70351c20ba37218a
2006-01-23 21:37:32 +00:00
drh
a86a5b6c7e Bug fix in cases where a compound select has an ORDER BY clause with
multiple terms. (CVS 3011)

FossilOrigin-Name: 4f56949bd69fed6167fa2ae115d0251e8369d796
2006-01-23 18:42:21 +00:00
drh
92915541f0 Add documentation on the IF NOT EXISTS clause to CREATE statements.
Ticket #1608. (CVS 3010)

FossilOrigin-Name: d4e4ba132a94e729ffd220e0ca942cfda87b3a76
2006-01-23 18:14:21 +00:00
drh
f1878b4ada Makefile changes so that builds work on Solaris. Ticket #1604. (CVS 3009)
FossilOrigin-Name: 7addf70445d46cab148496ba2f27ab3764b70f66
2006-01-23 18:06:52 +00:00
drh
c490e7dc92 Bug fix in the ROWID generation logic of the VDBE. I think this
is a benign bug - it never causes a real fault.  But I am not certain. (CVS 3008)

FossilOrigin-Name: dfe282386896967832826d130323c3ff11532873
2006-01-23 17:43:53 +00:00
drh
be1f84c021 Get I/O error tests working on windows. (CVS 3007)
FossilOrigin-Name: 2ef8b85db7607eb0989c5ecf49cc554fa13d894f
2006-01-23 16:25:22 +00:00
drh
2f1a4d106d Fix uninitialized variable in os_unix.c. (CVS 3006)
FossilOrigin-Name: 892e644d20b9d132cf29242a9bca0116ebe6968f
2006-01-23 16:24:54 +00:00
danielk1977
7d3a666f2c Add "#ifndef NDEBUG" around sqlite3pager_iswriteable() (only used in assert() expressions). Also set the internal page number of a page to zero if it fails to initialise. (CVS 3005)
FossilOrigin-Name: 77969c671c6ea1b5a2739f62de2bec10cc651b9e
2006-01-23 16:21:05 +00:00
drh
0acb23dcef Changes to the enc2.test script so that it will run on windows. (CVS 3004)
FossilOrigin-Name: 4c1818ecebc79f5f7e5f4a7843b5fae02a251f47
2006-01-23 15:59:55 +00:00
drh
72aead8102 Cut over the patches to support WinCE. Ticket #1600. (CVS 3003)
FossilOrigin-Name: 436287c2bfe38cf6c39e4c52b1da12f8c0d673ce
2006-01-23 15:54:25 +00:00
drh
6245e0d19c Fix a bug in pager.c that was overwriting freed memory. Comment changes
in util.c. (CVS 3002)

FossilOrigin-Name: 8c7e18c3f2f0487c6125f2d12720669e4d40e760
2006-01-23 15:39:58 +00:00
danielk1977
8a7aea3bb3 Further coverage improvements for pager.c and another IO error bug fix. (CVS 3001)
FossilOrigin-Name: a9ec5ee4724ab993e71ef8b387e2d92f3e74959c
2006-01-23 15:25:48 +00:00
drh
c6dc0f7a79 Fix os_common.h so that the code builds without -DSQLITE_MEMDEBUG. (CVS 3000)
FossilOrigin-Name: 06d6540026568ca69410354ca8d85da78970c94b
2006-01-23 14:05:18 +00:00
danielk1977
7f7bc66ef2 Do not automatically rollback at the btree or pager level if a commit fails. (CVS 2999)
FossilOrigin-Name: 0f6329ef1fe0d5b225b6381fda1e8d800f65ea0f
2006-01-23 13:47:47 +00:00
drh
c93cc42df8 Fix to sqlite3AllocMalloc() when it is a no-op macro. (CVS 2998)
FossilOrigin-Name: 8caa9f95b8a36e34510cf46d518bd63bd8fa0a32
2006-01-23 13:28:53 +00:00
drh
b52076cd7a Do not name variables "operator" because some compilers do not realize that
"operator" is not a reserved word in ANSI-C.  Ticket #1625. (CVS 2997)

FossilOrigin-Name: 1f42a338e2ee90f4c24a9eb19054c4b831dd661f
2006-01-23 13:22:09 +00:00
drh
158ff67b50 Work around buggy malloc() implementations that cause problems on malloc(0).
Ticket #1572. (CVS 2996)

FossilOrigin-Name: ada5490f12795a8d13d0f42077c463709c677846
2006-01-23 13:14:55 +00:00
danielk1977
75bab7d64e Improve coverage of pager.c and fix an IO error handling bug found in the process. (CVS 2995)
FossilOrigin-Name: 6ec8e6b7856a0b394b8497ab9166b882f98124ba
2006-01-23 13:09:45 +00:00
drh
d116739351 Fix additional compiler warnings. Tickets #1615, #1616, #1627 (CVS 2994)
FossilOrigin-Name: 6385628edd79187dff1687815d0101c31248e54f
2006-01-23 13:00:35 +00:00
danielk1977
a1686c9a3b Fixes for OMIT_UTF16 and OMIT_COMPOUND (CVS 2993)
FossilOrigin-Name: f58bbdc0ac6e618686c598aaafb3a41b972e078e
2006-01-23 07:52:37 +00:00
danielk1977
4b202ae2a5 Improve coverage of expr.c and btree.c slightly. (CVS 2992)
FossilOrigin-Name: cc2e8e87cfd474b4dc6833ee0c38e2cd2dd3a494
2006-01-23 05:50:58 +00:00
drh
6dc1d95dd8 Remove vestiges of the older TSD code for handling OOM exceptions.
Prepare for the release of 3.3.2. (CVS 2991)

FossilOrigin-Name: a65e85f0e01f3bca5f4e78999c10db3916824b5b
2006-01-23 00:04:54 +00:00
drh
504b69898b Performance optimization in btree.c. (CVS 2990)
FossilOrigin-Name: 3e1e6affe256a950a81ad5939b628bafb8463b42
2006-01-22 21:52:56 +00:00
drh
eda639e111 Code size reductions in select.c. (CVS 2989)
FossilOrigin-Name: 3c2eee5e1f6c7d701a6d362a04cf896d44e97fd9
2006-01-22 00:42:09 +00:00
drh
fe61378a22 Tests for the subquery flattening fix of check-in (2987). (CVS 2988)
FossilOrigin-Name: 72a067f0df5818c0fdb3b9f8af20f83bb2e1dd34
2006-01-22 00:14:39 +00:00
drh
ac83963afa Do not flatten subqueries in a join where the subquery includes a LIMIT.
Ticket #1634.  This is just an initial fix.  Many test cases need to be
added prior to closing the ticket. (CVS 2987)

FossilOrigin-Name: af18c0f431a1a6349e40249009f2ac222f8c8114
2006-01-21 22:19:54 +00:00
drh
bcdb66166e Fix a bug in os.h. How did this slip by before now? (CVS 2986)
FossilOrigin-Name: 29725de474f9aec81cea0041d9ac2df932258d01
2006-01-21 19:57:50 +00:00
danielk1977
c4da5b9f2c Fix more problems with malloc() and IO failures. (CVS 2985)
FossilOrigin-Name: 29281dea81c909b70b2d914d7061a6df8f388195
2006-01-21 12:08:54 +00:00
drh
02afc86171 More compiler warnings fixed - or in some cases comments are added to explain
that the compiler is wrong. (CVS 2984)

FossilOrigin-Name: 507653a98cbd096f836a977408e373640c7cdb8f
2006-01-20 18:10:57 +00:00
drh
24bd82c396 Fix some compiler warnings. (CVS 2983)
FossilOrigin-Name: b7bdac0afd99b8dc03749877f675a5f782120295
2006-01-20 17:56:32 +00:00
danielk1977
97a227c996 Fix another couple of IO or malloc() failure problems in a shared-cache context. (CVS 2982)
FossilOrigin-Name: 7e34163a65a5842ecc50a14a9d60601e7c9d3249
2006-01-20 16:32:04 +00:00
drh
90669c1dca Fix and test the processing of sqlite3_result_error() withing aggregate
functions.  Allow errors to come from the step function (a new
capability).  Ticket #1632. (CVS 2981)

FossilOrigin-Name: fd4a6bb1ac94d085dda247799c0a5c64aaeec046
2006-01-20 15:45:36 +00:00
danielk1977
07cb560b23 Handle some of the IO error conditions that may occur in a shared-cache context. (CVS 2980)
FossilOrigin-Name: 97491d4eb5fc24d8f5cc7605db844359ecc6a818
2006-01-20 10:55:05 +00:00
drh
f98477b846 Make sure sqlite3_thread_cleanup() does not try to allocate memory. (CVS 2979)
FossilOrigin-Name: 0208e4221a2d90b5ae0755061c345d3351a30da8
2006-01-19 17:42:50 +00:00
drh
dab97c1c8f Fix the #ifdef around sqlite3OutstandingMallocs() in test1.c. (CVS 2978)
FossilOrigin-Name: 218c6184c8edec22f9b56b3c9446d27fda9c1e00
2006-01-19 11:28:06 +00:00
danielk1977
ed4293119a Account for read-uncommitted cursors in sqlite3BtreeClearTable(). (CVS 2977)
FossilOrigin-Name: 950798326860de40926e82e10134f09e6ea86245
2006-01-19 08:43:31 +00:00
danielk1977
191c3e7db0 Fix a bug with internally saving cursors open on index tables. Also increase coverage of util.c and btree.c. (CVS 2976)
FossilOrigin-Name: a628d84d3185fb7742cc929e758bfd59c811ca0b
2006-01-19 07:18:14 +00:00
danielk1977
e7823cb591 Omit thread2.test if memory-management is enabled at compile time. (CVS 2975)
FossilOrigin-Name: df91f685cacbcb3e048eaa03260b33bbcfcb321c
2006-01-18 18:33:42 +00:00
danielk1977
76e8d1a292 Include the ThreadData structure in internal malloc() testing. Also fixes for revealed bugs. (CVS 2974)
FossilOrigin-Name: c7b9d50d0a975912776aaa2b870308652f77e1e6
2006-01-18 18:22:43 +00:00
drh
757b04ed36 Modify the sqlite3OsInMutex os-layer interface to take a single parameter
to distinguish between mutexes held by the current thread and mutexes held
by any thread.  Part of the fix for ticket #1630. (CVS 2973)

FossilOrigin-Name: e1ad9df1cf46287f2a7789275e98d28e05880e17
2006-01-18 17:25:45 +00:00
danielk1977
9e12800dec Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972)
FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
2006-01-18 16:51:35 +00:00
danielk1977
1de57847f8 Fix compilation error when neither MEMDEBUG or ENABLE_MEMORY_MANAGEMENT is enabled. (CVS 2971)
FossilOrigin-Name: 4de5c52920c94e2a29ef4b68eb8b990c63005b3d
2006-01-18 15:39:26 +00:00
danielk1977
54f0198e47 Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970)
FossilOrigin-Name: e0b022e5b2bfd272b4e25cd7a7b472206a118bbe
2006-01-18 15:25:17 +00:00
drh
332b1feaf1 Recursive mutexes in os_win.c. (CVS 2969)
FossilOrigin-Name: dd3e07cae4d0cbd4f8977e1dd11e0103e0e45b75
2006-01-18 14:20:17 +00:00
drh
a3fad6f5f3 Convert the unix driver to use a recusive mutex. Similar changes to the
windows driver are pending. (CVS 2968)

FossilOrigin-Name: 8830bbbac8e0c9243956aac42dc9f86a0bd1fa07
2006-01-18 14:06:37 +00:00
danielk1977
950f054cec Handle malloc() failures that occur in open16() and errmsg16(). (CVS 2967)
FossilOrigin-Name: 86eab9e53db8d7fecc789fe3d8cd8d7be3196fed
2006-01-18 05:51:57 +00:00
danielk1977
9a30cf653f Handle malloc() failures that occur inside create_collation() calls. (CVS 2966)
FossilOrigin-Name: 95c5903f368413019af83aa73263e0e9d1204b62
2006-01-18 04:26:07 +00:00
danielk1977
cbb8496c5e Arrange for ThreadData to be automatically deallocated even if SQLITE_MEMDEBUG is defined. Fix for #1623. (CVS 2965)
FossilOrigin-Name: 9e2e40845d30cc150abe23ee318a721b4fe9613c
2006-01-17 16:10:13 +00:00
danielk1977
08659fee65 Fix compilation errors when building SQLITE_DEBUG defined but without SQLITE_MEMDEBUG. (CVS 2964)
FossilOrigin-Name: 62dd2427784721436737a6e8e11fc05e10f0c44d
2006-01-17 15:36:32 +00:00
danielk1977
771151b67f Various fixes that allow the malloc() failure tests to pass again. (CVS 2963)
FossilOrigin-Name: 0505405fb9ae1068b7976718efbf2aabd07592d4
2006-01-17 13:21:40 +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
danielk1977
ff890793fc Test file fixes for libaries compiled with various SQLITE_OMIT_ macros. (CVS 2961)
FossilOrigin-Name: c058f483a52c8043178b6329aa5e58bedf0c8277
2006-01-16 16:24:25 +00:00