Commit Graph

3070 Commits

Author SHA1 Message Date
drh
91171cde62 Make sure sqlite3FindCollSeq() returns NULL after a malloc() failure. (CVS 3134)
FossilOrigin-Name: 0e05355f3ca795f0ab959553e6c9462e5483c3b2
2006-03-14 11:08:27 +00:00
drh
03b808a694 Get parserless builds working again. (CVS 3133)
FossilOrigin-Name: 5ddc09a5e4d81a73228cd8038c6dc345b1fdf4af
2006-03-13 15:06:05 +00:00
drh
aa701b2827 Fix documentation to show the correct return type from sqlite3_db_handle().
Ticket #1716. (CVS 3132)

FossilOrigin-Name: f4fb047d0a0939ab6a25b75999501f5956e9f67c
2006-03-13 14:31:39 +00:00
drh
cfed7bce7e Changes to get the Serialized Statement Extension working again. (CVS 3131)
FossilOrigin-Name: 255fdbe6fa31ce276a8e6511af4ec6c36a741c20
2006-03-13 14:28:05 +00:00
drh
8aa34ae0b1 Additional changes due to Coverity scans. (CVS 3130)
FossilOrigin-Name: a69f697d50124f2c0c654d56390ae83a4ac5e9e8
2006-03-13 12:54:09 +00:00
drh
ff3b170023 Add an assert() to demonstrate that Klockworks is wrong about an aleged bug. (CVS 3129)
FossilOrigin-Name: 0910022be3ec8ce540e0e6adce2eed7a7cd28fd3
2006-03-11 12:04:18 +00:00
drh
643054c18b Correct names returned from a query against a view. Ticket #1709, #1688, #1711. (CVS 3128)
FossilOrigin-Name: 36830fafa405c9eae4795045efc6843394c67555
2006-03-09 17:28:12 +00:00
drh
86b7f57555 Remove all reference to EXTERN from tclsqlite.c. Ticket #1687. (CVS 3127)
FossilOrigin-Name: b4d3e0d528c7d17fa3d05956a188cd4d431204b2
2006-03-06 23:30:51 +00:00
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
c001c58a72 Pager performance enhancements. (CVS 3125)
FossilOrigin-Name: 9c26570743d878dee963e37728969fb30a2fb436
2006-03-06 18:23:16 +00:00
drh
f1d83a7134 Fix typo in documentation. Ticket #1578. (CVS 3124)
FossilOrigin-Name: cb2e009f1748e8c4945e85a3d36b4435003412f0
2006-03-03 21:39:54 +00:00
drh
b806798865 EXPLAIN sets the length of its text return values correctly. Ticket #1583. (CVS 3123)
FossilOrigin-Name: 34b560e81170b33b766a6a7cd462a227425c15d9
2006-03-03 21:38:03 +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
91c839b86e Make sure the default busy handler uses usleep() when available.
Ticket #1684. (CVS 3121)

FossilOrigin-Name: 43e5462608819e9c2c8bcb4860d4c2d6ecda600c
2006-03-03 20:54:41 +00:00
drh
eae3a0d8c4 The --enable-debug option on configure enables verbose explain and vdbe_trace.
Ticket #1680. (CVS 3120)

FossilOrigin-Name: ee2f706800849a95cc74a08ba0f25d3728dbe3ec
2006-03-03 20:37:52 +00:00
drh
27ed1d90f6 Fix tclsqlite.c to better support Mingw. Ticket #1687. (CVS 3119)
FossilOrigin-Name: da0e843c05fc708d48e396aaab00fb6247180b51
2006-03-03 20:32:18 +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
e3dd8bb5be Reduce the size of a memory allocation in the windows driver to the
minimum needed.  Ticket #1690. (CVS 3115)

FossilOrigin-Name: 1fe9ca078b77b79ac738a095d8d4c82ae0926286
2006-02-27 23:44:35 +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
8fc3345f29 Detect stack overflow in the parser and report an error. (CVS 3112)
FossilOrigin-Name: bd2c38f4670d1243284f2431b5e0712a6d1de1d7
2006-02-27 21:58:07 +00:00
drh
580eeaf348 Additional compiler warnings suppressed. (CVS 3111)
FossilOrigin-Name: a359b1817e85a9c5f31085817ae70e3e0b8ac7a7
2006-02-24 03:09:37 +00:00
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