Commit Graph

4994 Commits

Author SHA1 Message Date
drh
bf8a4341f1 Zero the per-pager temporary space allocation to avoid warnings from
valgrind. (CVS 5068)

FossilOrigin-Name: f854ae576ee0b223b86a1169178fc4399e8d08ce
2008-04-29 15:38:58 +00:00
drh
e509094bee Fix a potential buffer overrun in sqlite3_mprintf() when a non-terminated
string is passed to a "%s" format with a precision specifying the number
of bytes to copy. (CVS 5067)

FossilOrigin-Name: 1f5b18419bb4e2552ac26593381e2eb866bb67fd
2008-04-29 15:22:27 +00:00
drh
2eaf93d34f Always convert IEEE NaN into NULL. Ticket #3060. Add test cases to verify
that this is happening. (CVS 5066)

FossilOrigin-Name: 9b07e59e510e2de39c2081653662fbc654ca6fbb
2008-04-29 00:15:20 +00:00
drh
7d133d8889 Allow SQLITE_MAX_COLUMN to be set to zero at compile-time in order to
disable the checks.  Also SQLITE_MAX_EXPR_DEPTH.  Ticket #3069. (CVS 5065)

FossilOrigin-Name: e6f71abb22fb74e5910d817caec98fa44070fc5f
2008-04-28 20:35:48 +00:00
drh
cd3dd9d343 Add test cases to verify that multiple virtual tables can be updated
within a trigger and that xSync, xCommit, and xRollback are never called
except following xBegin or xCreate.  Ticket #3083. (CVS 5064)

FossilOrigin-Name: 76175199ac2fda57e616eb386ba0bad6aa9f74b4
2008-04-28 20:27:53 +00:00
drh
4f3dd1502e Make sure that transactions are started on all virtual tables that
changes in a single statement, not just the first.  Ticket #3083.
Need to add test cases. (CVS 5063)

FossilOrigin-Name: 133b7ee50ea6012739ebe0e334374c5d9b1fcc7f
2008-04-28 18:46:43 +00:00
shane
952856ad3a Modified Varint32 functions to disable code for single-byte handling as it is already handled by their respective macro forms. (CVS 5062)
FossilOrigin-Name: be10f5dda6e9c245c05b51840c173e83ece6b245
2008-04-28 17:41:30 +00:00
drh
82286fd237 Add tests to create and drop a virtual table during a recursive call from
an application-defined function.  Ticket #3080. (CVS 5061)

FossilOrigin-Name: d4d6eff353edd5680776436ab3406227b8c830b3
2008-04-28 17:12:10 +00:00
drh
0de3ae95d5 Change the implementation of the NaN recognition to be more cross-platform.
Ticket #3089. (CVS 5060)

FossilOrigin-Name: 07fd9a8c6ca0876f7ec447ce65173957005dc75c
2008-04-28 16:55:26 +00:00
danielk1977
f51bf48b32 Fix a shared-cache mode problem triggered when sqlite3_open16() was used to open the second or subsequent connections to a utf-8 database. (CVS 5059)
FossilOrigin-Name: 20946bf6dd704416c41edd863103e85fc7ab4ef2
2008-04-28 16:19:35 +00:00
drh
394f07ef8c Work around a NaN bug in some versions of Tcl. (CVS 5058)
FossilOrigin-Name: 7bf8213ce9f591f4c2ef6c1e19a17712e3bae9e3
2008-04-28 15:23:02 +00:00
drh
d65e530b7c Changes to test scripts to accommodate different architectures and different
versions of Tcl. (CVS 5057)

FossilOrigin-Name: 8eb2c07c520c12c2cd4610596dbec451c8275e95
2008-04-28 13:02:57 +00:00
drh
06af763e30 Restore the #include of stdint.h removed in (5051). (CVS 5056)
FossilOrigin-Name: e96e8b9b4137c3ea239674683cf9fd8682851908
2008-04-28 12:54:15 +00:00
drh
460e290006 Delete requirement F12764 as it has never been implemented and the
same effect can be easily achieved by other means.  Ticket #3085. (CVS 5055)

FossilOrigin-Name: fadeed998e63c2fd94811b911cf263713c5fcdca
2008-04-27 22:48:04 +00:00
drh
e1b3e8064e Fix the documentation to agree with long-standing behavior for the
sqlite3_bind_parameter_name() interface on an ?NNN parameter.
Ticket #2975. (CVS 5054)

FossilOrigin-Name: df9991d5bbc6d90087f022c55b070c11dc510077
2008-04-27 22:29:01 +00:00
drh
a5808f31f0 Allow multiple occurrances of %include in lemon input files.
Ticket #3001. (CVS 5053)

FossilOrigin-Name: f22fa11bde0b77cfc5ff438f2ec6ab95dc87c291
2008-04-27 22:19:44 +00:00
drh
7f7c257b6b Fix the lemon parser generator so that it works again with the "error"
symbol.  Ticket #3079 (CVS 5052)

FossilOrigin-Name: 20ed749266d099eb35f40ca479db8baa75186b60
2008-04-27 18:45:10 +00:00
drh
7209c697a1 Remove all references to sqlite3_intptr_t. (CVS 5051)
FossilOrigin-Name: 6a94d19747a05df2694d3720f76de3dab3836578
2008-04-27 18:40:11 +00:00
drh
59020f32cd Use "(void)" function arguments in declarations instead of "()". Both are
legal but some pedantic compilers complain about the latter.  Ticket #3086. (CVS 5050)

FossilOrigin-Name: a4149ca317c2fd7ce87b8f23029c3f87a7f4c2e8
2008-04-26 13:39:46 +00:00
drh
82ed1e5b37 Clarify some comments. No changes to code. (CVS 5049)
FossilOrigin-Name: 7f80539225b17a62e4aa09e6d514e3e9e1b22c36
2008-04-25 12:25:42 +00:00
drh
05a3e474cb Add test cases to prove that ticket #3082 has been fixed. (CVS 5048)
FossilOrigin-Name: 776e7024101dd2eeb29484a36c7e1ac751444ec8
2008-04-25 12:10:15 +00:00
drh
b287f4b646 Candidate fix for ticket #3082. Test cases needed. (CVS 5047)
FossilOrigin-Name: f6313311ddfb1ee2d6660b9be99afe721a8a9aff
2008-04-25 00:08:38 +00:00
drh
ce3d5cf0c7 Remove two more unused files. (CVS 5046)
FossilOrigin-Name: a400faf51970b312e9d8c8b4fa099558cc620b69
2008-04-24 22:57:28 +00:00
shane
3f8d5cfcad Consolidated varint macro usage from btreeInt.h, vdbe.c, and vdbeaux.c into sqliteInt.h and made their use consistent. Slight improvements to varint32 macros. (CVS 5045)
FossilOrigin-Name: 0d04ccd97841bbbda564cc6ae5da057ee3888fa3
2008-04-24 19:15:09 +00:00
danielk1977
9c9eb741be Fix a problem with the test scripts caused by not cleaning up the global tcl namespace. (CVS 5044)
FossilOrigin-Name: 440492395854a0886ef954ef2ed638bf587c6f03
2008-04-24 12:38:28 +00:00
danielk1977
700b9c5a58 Fix an assert() failure that can occur if "journal_mode=off" is used in a build with the atomic-write optimization enabled. (CVS 5043)
FossilOrigin-Name: 709d17b19d343f45aa6c7684685ab58c67d83da0
2008-04-24 12:37:40 +00:00
danielk1977
d7eb2ed5cd Fix a crash that can follow a malloc() failure in malloc7.test. (CVS 5042)
FossilOrigin-Name: 85eedad186327a1f0b0983413b833efd41640d0e
2008-04-24 12:36:35 +00:00
danielk1977
36961ed23f Ensure that it is not possible to open either virtual table or view columns using the blob API. Ticket #3078. (CVS 5041)
FossilOrigin-Name: 6039328fe05aaf9380d545e84dfabccb32a4d8ea
2008-04-24 09:49:55 +00:00
danielk1977
9eca081c13 Minor change to comment on sqlite3_blob_read(). No code changes. Ticket #3072. (CVS 5040)
FossilOrigin-Name: adb4bc5a7dd56e625b20c48a7416f2b3480f4de1
2008-04-24 08:56:54 +00:00
danielk1977
ecc91f6868 Remove redundant assert() statement from vdbeaux.c. Ticket #3065. (CVS 5039)
FossilOrigin-Name: 3cba1166076bf0506597e2d7686a271922817668
2008-04-24 08:36:51 +00:00
danielk1977
9a9b1564cf Add version comment to vdbeaux.c. No code changes. Ticket #3066. (CVS 5038)
FossilOrigin-Name: d667add44b87f9011b0ef10d45101dfc1e38feaa
2008-04-24 08:31:51 +00:00
pweilbacher
5ff1020dd8 We should better not pass open file handles to child processes, so add respective flag for DosOpen(). (CVS 5037)
FossilOrigin-Name: 1518e8542cebd977d46e720544bfad16d3f8895e
2008-04-23 23:03:10 +00:00
drh
a06ecba2f6 Always sync the journal file after zeroing out the header. (CVS 5036)
FossilOrigin-Name: 5896ae3d68d29dc172c027c72aa2a98ced2b7eb8
2008-04-22 17:15:17 +00:00
danielk1977
a664f8ebd0 Avoid non-contiguous writes when creating a journal header. (CVS 5035)
FossilOrigin-Name: dfacddbb5055b4e104bf536d5f5b35287fbbb904
2008-04-22 14:31:48 +00:00
drh
5cd6256950 Add some tests for journal_mode=off. Need to come up with a way of handling
rollback attempts when there is no journal. (CVS 5034)

FossilOrigin-Name: e29b870ed0db6360a95fb017f56c0b5388efb437
2008-04-19 20:53:26 +00:00
drh
16e45a4306 Continuing work on journal_mode. Journal_mode=persist now appears to be
working, though additional testing would be welcomed. (CVS 5033)

FossilOrigin-Name: 277e4099cee9105e1801a6d7f5d477f0d2efa858
2008-04-19 20:34:18 +00:00
drh
981642f389 Comment and variable-name cleanup in where.c. Add testcase() macros to
insure adequate test coverage of table-driven logic. (CVS 5032)

FossilOrigin-Name: adcef73b3925266a14a552cd9b06c14f22aaefc8
2008-04-19 14:40:43 +00:00
drh
1cceeb93ea Fix a typo in the documentation on sqlite3_open_v2(). (CVS 5031)
FossilOrigin-Name: f7b62daa9fe71dc713bde107507fc7bcb812d62b
2008-04-19 14:06:28 +00:00
danielk1977
61dd58391f Remove unused code from OP_IdxLt and OP_IdxGE. (CVS 5030)
FossilOrigin-Name: df02175ec0f28d57942b8275b540ff855dfbeb09
2008-04-18 11:31:12 +00:00
danielk1977
b790c6c596 Combine cases 3 and 4 in where.c, since case 4 is now a special case of case 3. (CVS 5029)
FossilOrigin-Name: 9a976819246eb558ba43429f8889972c4a4bce9d
2008-04-18 10:25:24 +00:00
danielk1977
751de567c1 Allow OP_MoveGt and similar to use an array of registers instead of a serialized record. Modify one type of index range scan to use this. (CVS 5028)
FossilOrigin-Name: c448f15aa5ed3dec511426775e893efea324faa1
2008-04-18 09:01:15 +00:00
drh
fdc40e9156 Continuing progress on the journal_mode pragma. It still does not work. (CVS 5027)
FossilOrigin-Name: 4a72a7bb9c5793cdaf4ee038482053e042d8db54
2008-04-17 20:59:37 +00:00
drh
dafc0ce818 Additional work on ticket #3015. The previous fix (check-in (4919)) did
not appear to work in all cases and it disabled indexing in some places
where it should not have.  New test cases added to help insure that the
current fix is better. (CVS 5026)

FossilOrigin-Name: 0d2e258e1a3276e55903ba2ded987f8d8a18cacd
2008-04-17 19:14:02 +00:00
drh
a95174bd2f Fix a typo in the documentation for sqlite3_bind_text. Ticket #3056. (CVS 5025)
FossilOrigin-Name: 79571e2c74fa365b7f471428c48e1678375b8c9d
2008-04-17 17:03:25 +00:00
drh
3b02013e73 Add the journal_mode pragma. This is currently just syntax - it is not
operational. (CVS 5024)

FossilOrigin-Name: 8eaa0c71023ac428f6f9f8091341584caa773ab9
2008-04-17 17:02:01 +00:00
drh
f3a87624a2 In exclusive locking mode, commit by zeroing the first 28 bytes of the
journal file, not by truncating the journal.  Overwriting is much faster
than truncating. (CVS 5023)

FossilOrigin-Name: 8efb7f4ffbfc3ad901a3bb1b4ff9390b8c13760b
2008-04-17 14:16:42 +00:00
drh
f708cff4c1 Add the -overwrite option to speedtest8.c. (CVS 5022)
FossilOrigin-Name: 6765ea52b33270a323c620b060cffd4f59004db1
2008-04-16 23:50:23 +00:00
drh
0e0d73c120 Clear a global variable in the incrblob.test script. Ticket #3062. (CVS 5021)
FossilOrigin-Name: 1c19854ae7790a8a1d5c9cfe8b2cb71e2c19ce50
2008-04-16 23:39:26 +00:00
drh
78ddb7ceed Fix the bind.test test script so that the tests for zeros embedded in
strings work correctly for UTF-16 encoded databases. (CVS 5020)

FossilOrigin-Name: 7c094c80b2439480ffc680b2d63031d1033b266a
2008-04-16 16:11:49 +00:00
drh
f1c97f4637 Version 3.5.8 (CVS 5019)
FossilOrigin-Name: 6a2e3eb26af63386ce32594e24f1ce5605cd1068
2008-04-16 15:39:31 +00:00