drh
26e4a8b11d
Fix more compiler warnings. (CVS 5074)
...
FossilOrigin-Name: 59568844e774dbe89fd20bbc8f49a3665cc54717
2008-05-01 17:16:52 +00:00
drh
e265b08458
Fix harmless compiler warnings. (CVS 5073)
...
FossilOrigin-Name: 227a6f67c21c87a7cf98f84b9d57a6dc9da93ebb
2008-05-01 17:03:49 +00:00
shane
356574e97a
Test versions of getVarint functions. The updates essentially utilize loop unrolling and some shifting/anding tricks to minimize the number of logical operations required. (CVS 5072)
...
FossilOrigin-Name: 682dc24dbe82d0326377e27c5ff97db3499873b0
2008-05-01 02:47:03 +00:00
drh
4697988687
Add comment to speculate when setting journal_mode=OFF on VACUUM does not
...
help performance. No changes to code. (CVS 5071)
FossilOrigin-Name: 9c8b4babb2222a5e0c2ecf7a116b7df90084c81d
2008-04-30 16:38:23 +00:00
shane
0068b225ff
Improved option handling in speedtest8.c. Added -quiet and -priority options. Added reporting of total user and system time. (CVS 5070)
...
FossilOrigin-Name: aa59974ec15508d69c5b65ab89ec7bc32690018c
2008-04-30 15:55:33 +00:00
danielk1977
f96d8aebf3
Fix test for buffer overrun in unixGettempname(). Fix for #3091 . (CVS 5069)
...
FossilOrigin-Name: fc0ca647bd1c7c953bb0f3eb7d3471572fd18c34
2008-04-30 08:56:10 +00:00
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
drh
10dfbbb580
Add tests to verify that strings may use embedded zero characters.
...
Ticket #3056 . (CVS 5018)
FossilOrigin-Name: bb0f9e92e427d4ae8ea143d3d3773c9552e63565
2008-04-16 12:58:53 +00:00
drh
4c68e6d28a
Add speed-test scripts that also show EXPLAIN output. (CVS 5017)
...
FossilOrigin-Name: d11f5dafdaf7c18c43615d0ac018c7d221460244
2008-04-16 12:57:48 +00:00
drh
a0af99f91c
Make sure the database connection mutex is held before calling
...
sqlite3SafetyOn() or sqlite3SafetyOff(). Ticket #3059 . (CVS 5016)
FossilOrigin-Name: d35dea059e2cb936e4277f513f036b9b0bdfc4a5
2008-04-16 00:49:12 +00:00
drh
b08c2a72ea
Back out the zero-terminator optimization introduced in check-in (4915).
...
Ticket #3056 . (CVS 5015)
FossilOrigin-Name: cce8deae2d556916e2817e0cb9748dceb162085d
2008-04-16 00:28:13 +00:00
pweilbacher
d190be8539
Support UTF-8 filenames on OS/2 by converting them to and from the local codepage. Ticket 3052. (CVS 5014)
...
FossilOrigin-Name: cafa8ac2687890355a7faa751d71859eb0fadd01
2008-04-15 18:50:02 +00:00
drh
1d3a5ac998
Increment the version number. (CVS 5013)
...
FossilOrigin-Name: a12fa0252c1bc45a116d0123758ef639cc8e451b
2008-04-15 14:37:51 +00:00
drh
f93d99990c
Do not attempt to omit unused columns of a view in an instead-of trigger
...
since sometimes those columns can be used in ways that we do not expect.
Ticket #3055 . (CVS 5012)
FossilOrigin-Name: f5fc42e96d36b78797d7fa10b01d22b8501112b1
2008-04-15 14:36:42 +00:00
drh
191b54cb5d
Fix a code generator bug caused by the new CSE optimization. Add test cases
...
to prevent a recurrence. (CVS 5011)
FossilOrigin-Name: d04246a46399e839e70b1bd57e209f80143f0d5b
2008-04-15 12:14:21 +00:00
drh
5f3a367bf3
Fix a bug in the RTRIM collating sequence discovered while working
...
on condition/decision branch coverage. Increase test coverage of
the date/time functions. (CVS 5010)
FossilOrigin-Name: c5435f71efa0b34c759bac4a15fdf43abf39ddfc
2008-04-15 04:02:40 +00:00
drh
521cc8494e
Add out-of-range tests on the first parameter to sqlite3_limit().
...
Add the ability to record tests that have been skipped due to
configuration limitations. (CVS 5009)
FossilOrigin-Name: b7ffc6f0f33b14430ab84a6c60110bc07514f056
2008-04-15 02:36:33 +00:00
drh
110af53360
Add a test case to cover the bug fixed in check-in (5007). (CVS 5008)
...
FossilOrigin-Name: 1863e87c40499ee3d9fd9cba6670e9a0e946d390
2008-04-15 00:01:59 +00:00
drh
4c02a23557
Do not attempt to write to temporary database files that have never
...
been opened. (CVS 5007)
FossilOrigin-Name: 7bb9a4165afb96043dfeffad21eb51591a1fd2dd
2008-04-14 23:13:45 +00:00
mlcreech
57ee05248d
Fix #3053 : bashism (CVS 5006)
...
FossilOrigin-Name: 7217cecee71fbc992acd07b4ac90c1929e2207ae
2008-04-14 22:57:55 +00:00
danielk1977
30f72bf2c5
Fix alignment issue in instrumentation code. (CVS 5005)
...
FossilOrigin-Name: c9e0d625bcf3ff24229d7f011b4cfbd8d8140d16
2008-04-14 17:42:41 +00:00
danielk1977
a3e5218c6e
Do not set the pager to persistent error state if a call to OsAccess() fails. (CVS 5004)
...
FossilOrigin-Name: aa16eb572915632bfff88d544f9c428ca723346e
2008-04-14 16:37:10 +00:00
drh
1c9f50a277
Make sure the page size in crash6.test does not exceed the maximum
...
configured page size. (CVS 5003)
FossilOrigin-Name: 36b6610b25997074f398a2f2ddcdd6ace8c83fba
2008-04-14 15:27:19 +00:00
danielk1977
65710b151f
Free Mem.z buffers when a vdbe statement is reset. (CVS 5002)
...
FossilOrigin-Name: 0bedbe092aa3079dc49157a9bcaa7716b00e0bdb
2008-04-14 15:15:22 +00:00
drh
04924d89c7
Cleanup some #ifdefs to make their meaning clearly. No logical changes. (CVS 5001)
...
FossilOrigin-Name: b8bc5f3a83408375cfbff90e2c574fb8996dfbd9
2008-04-14 14:34:44 +00:00
drh
10b20ef148
Disable auto_vacuum during the vacuum3 test. (CVS 5000)
...
FossilOrigin-Name: e2e1ca818c5f77abdb423aebe34eea80b2fb84b2
2008-04-14 13:42:39 +00:00
drh
c5d0bd907b
Get the SQLITE_SECURE_DELETE compile-time option working again.
...
Ticket #3050 . (CVS 4999)
FossilOrigin-Name: 40ba51fd4c621e29e7ff85495b1212c92f06ab31
2008-04-14 01:00:57 +00:00
mlcreech
ede2627695
Fix build errors in test_osinst (CVS 4998)
...
FossilOrigin-Name: f047399799798e693ef75c472144f30a0175b662
2008-04-13 23:13:39 +00:00
danielk1977
2551caf381
Modify speedtest8.c so that it can use the logging from test_osinst.c when HAVE_OSINST is defined. (CVS 4997)
...
FossilOrigin-Name: 7622d74ad6088de4d94cb727b60ac4a042c52016
2008-04-12 16:03:37 +00:00
drh
8a29dfdea0
Remove all instances of sprintf() from the FTS modules. Ticket #3049 . (CVS 4996)
...
FossilOrigin-Name: 062bf5d44d53ae0ee2bf96eddcc8de09157aa789
2008-04-12 13:06:09 +00:00
danielk1977
0520dbbae3
Modify test_osinst.c so that it only uses public interfaces. (CVS 4995)
...
FossilOrigin-Name: 3866a5da2bdcfafe956e1a9bf117f3277207de05
2008-04-12 11:30:12 +00:00
danielk1977
70b9b04c7c
Add a logfile option to test_osinst.c. (CVS 4994)
...
FossilOrigin-Name: f97d89458259978b7b1b5c5e5a0d19cabcb9e536
2008-04-12 10:53:11 +00:00
drh
c2a721f73a
Add the speedtest8inst1.c program for running speed tests with an
...
instrumented VFS. (CVS 4993)
FossilOrigin-Name: baa8056c67c03ac78a1ed6da5a46fda793340739
2008-04-11 21:20:48 +00:00
drh
06fbb733b9
Faster implementation of hexToInt that uses not branches. Ticket #3047 . (CVS 4992)
...
FossilOrigin-Name: a70e9587569c99dd05e79c6745ff930aa31d763c
2008-04-11 19:37:55 +00:00
drh
3a200e0a44
Avoid the use of uninitialized variables in sqlite3GenerateRowIndexDelete.
...
Ticket #3048 . (CVS 4991)
FossilOrigin-Name: a93b7a344a713a9ed9d72be4707eb28c2979648c
2008-04-11 19:18:24 +00:00
danielk1977
1ea1b3f8b9
Remove a recently added assert() that is failing with certain compilers on 32-bit platforms. Ticket #3043 . (CVS 4990)
...
FossilOrigin-Name: 03c0279d7b004ccc4264143e366c793b4d774f9f
2008-04-11 17:15:46 +00:00
danielk1977
006015d8e5
Remove entries from the sqlite_stat1 table whenever an index is dropped. Related to #3033 . (CVS 4989)
...
FossilOrigin-Name: 349aab42c7896f04ecb6ca33f08a4c194051e837
2008-04-11 17:11:26 +00:00
drh
5c070538f1
Additional reductions in the use of memset(). (CVS 4988)
...
FossilOrigin-Name: 38746c54385e3cb456cda660ea50769b5424db30
2008-04-11 15:36:03 +00:00
drh
26c9b5eaba
Speed improvements by removing unnecessary memset() operations.
...
Also: do not resize the opcode array of a virtual machine to its
minimum size after code generation completes. The extra resize
merely uses time. (CVS 4987)
FossilOrigin-Name: 2589955507fc1717891c4e07d1d658eb41660b87
2008-04-11 14:56:53 +00:00
drh
80106e5c4b
Enhancements to the change counter tests. Ticket #3013 . (CVS 4986)
...
FossilOrigin-Name: 1aaed6a4694f60ebcec5dee98f09fe756c81dfa4
2008-04-10 18:44:36 +00:00
drh
665850fbef
Correctly handle virtual tables that are created and dropped all within
...
a single transaction. Ticket #2994 . (CVS 4985)
FossilOrigin-Name: 0acb1b428d1181f597a2a665cae3eef5775f15f1
2008-04-10 18:35:21 +00:00
danielk1977
1e21fd523b
Add the --ostrace and --ossummary options to tester.tcl. To log calls the vfs layer from within test scripts. (CVS 4984)
...
FossilOrigin-Name: e1322415d0ca2d6b45f35ef9257b37161ec043e2
2008-04-10 17:27:38 +00:00
drh
00e087b24b
Enhanced testing and documentation of sqlite3_result_error_code().
...
Ticket #2940 . (CVS 4983)
FossilOrigin-Name: 5be56dbe879f89351239accf5069e4cb166e0792
2008-04-10 17:14:07 +00:00
drh
e296582705
Disable nuisance warnings on borland compilers. ticket #2936 . (CVS 4982)
...
FossilOrigin-Name: 1e094ecfd7c6feaf8d524aa3c1477910b2328946
2008-04-10 16:47:41 +00:00
drh
19bba916f9
Make sure check-in (4976) also fixes ticket #2935 . (CVS 4981)
...
FossilOrigin-Name: e3f798b1cafc3458941cf86ac4f9d4269fdf5b7e
2008-04-10 16:42:58 +00:00
drh
de24478e78
Give file scope to the sqlite3Apis constant. Ticket #3024 . (CVS 4980)
...
FossilOrigin-Name: 30c5086068071385c13f02b3d33511127968335b
2008-04-10 16:01:10 +00:00
drh
4154c22345
Verify that a RAISE(ROLLBACK,...) works like RAISE(FAIL,...) when not
...
inside a transaction. Ticket #3035 . (CVS 4979)
FossilOrigin-Name: 87dc82d0436c6c3a9bd67544d52911012a5a7c66
2008-04-10 15:12:45 +00:00
drh
fab69597cc
Make sure all memory allocations are 8-byte aligned. Ticket #3040 .
...
Note that the mem3.c memory allocator returns 4-byte aligned memory
allocations. But as mem3.c is intended for use in 32-bit embedded
systems, we are not going to change that. (CVS 4978)
FossilOrigin-Name: d11e8e307af906db75ae7aede790464fabd06422
2008-04-10 14:57:24 +00:00
danielk1977
5d1f5aa6ef
Add source file test_osinst.c. A wrapper vfs with instrumentation capabilities. (CVS 4977)
...
FossilOrigin-Name: d9a6b653d3cb608610f13d2492fe9b3887acb3b9
2008-04-10 14:51:00 +00:00
drh
b5df14486d
Make sure changes to virtual tables are counted the same as real tables.
...
Ticket #3038 . (CVS 4976)
FossilOrigin-Name: 55591fc49c8ab8146c1f3eff733e637501bff627
2008-04-10 14:00:09 +00:00
drh
e5fb98af23
Fix to the "copy" method in the TCL interface. Ticket #3039 . (CVS 4975)
...
FossilOrigin-Name: 6f07968ec4c9d773a852ecc8343df416d17af2a4
2008-04-10 13:42:56 +00:00
drh
d9b97cf3ef
Document the fast that the result flag combinations to
...
sqlite3_open_v2() that are not defined in the documentation results
in undefined behavior. Ticket #3037 . (CVS 4974)
FossilOrigin-Name: b390e1f7f8d2b530a6765f2ab6804335c5550870
2008-04-10 13:38:17 +00:00
drh
08c88eb0d3
First cut at optimizing single-row updates to use a one-pass algorithm. (CVS 4973)
...
FossilOrigin-Name: fba97f7874d723111e873d1470fc1a95e64f922d
2008-04-10 13:33:18 +00:00
drh
67ade0a2d0
Add three new test cases to speed4p.test. Two of the three do single-row
...
updates based on rowid and on primary key. (CVS 4972)
FossilOrigin-Name: a2da7f9ac24ed17329ce9bde2e521a5b945e4ec2
2008-04-10 13:32:36 +00:00
drh
0e6ed0f040
Fix a bug in the speed4p.test performance testing script. (CVS 4971)
...
FossilOrigin-Name: 80311594149af093f1719ec433a633c332a5955e
2008-04-10 13:20:21 +00:00
mlcreech
4003298ba2
Replace always-true condition with assertion (CVS 4970)
...
FossilOrigin-Name: be7f3240c21c01509263005af2ccc3d7626fe729
2008-04-08 03:09:22 +00:00
mlcreech
1f045330c0
Add test case for empty VFS list (CVS 4969)
...
FossilOrigin-Name: 6797814ec59fe819424e8e7f77779a719ecd82d3
2008-04-08 03:07:54 +00:00
drh
35b5a33e24
Add the sqlite3PutVarint32 routine as an alternative to sqlite3PutVarint.
...
Gives 0.5% speed increase. (CVS 4968)
FossilOrigin-Name: b2517a7d8f7275943d44cc301f9d54fc8a4653e7
2008-04-05 18:41:42 +00:00
drh
335d29d208
Smaller and hopefully faster routine for converting blob literals into binary. (CVS 4967)
...
FossilOrigin-Name: 92d49499ee3371db64267c7e2ba72a5e12ea76f3
2008-04-04 15:12:21 +00:00
drh
1c22f2ddfb
Fix the output labels on the tests in malloc9. (CVS 4966)
...
FossilOrigin-Name: 9987a7b193095dc90a83666bdac5e23105909cba
2008-04-04 12:21:25 +00:00
drh
bd4d397ca9
Fix the TCL interface so that it does not use unpublished interfaces. (CVS 4965)
...
FossilOrigin-Name: 046a98a8c88be7389c1571a819ccf1907a3f7217
2008-04-04 12:21:08 +00:00
drh
d094db1c7b
Remove superfluous code from btree.c. (CVS 4964)
...
FossilOrigin-Name: 40173010706fb52ecd60197ce6e97d51a1899267
2008-04-03 21:46:57 +00:00
drh
4b1d66c1ec
Make sure the zTail return from sqlite3_prepare() is initialized even
...
if there is a malloc failure. (CVS 4963)
FossilOrigin-Name: 040cffe2727936ce9228666fce5b00db47493e7d
2008-04-03 21:42:21 +00:00
drh
75e99a4727
Fix to the previous check-in so that it works on a intel Mac. (CVS 4962)
...
FossilOrigin-Name: 1d67f41c885d052ab10a33892938a85b56882b3d
2008-04-03 20:09:06 +00:00
drh
d543a42248
Use an improved RDTSC access routine. (CVS 4961)
...
FossilOrigin-Name: b4eba9c533f6aac9dde4f2c9796fe02e25158a0f
2008-04-03 19:40:59 +00:00
drh
17afdd238f
Changes speedtest8 and speedtest16 so that the database file can be specified
...
on the command-line. Allows speed testing against a :memory: database. (CVS 4960)
FossilOrigin-Name: 64badc50531668de45d76a3dcd90db17e1fe1ab1
2008-04-03 17:57:24 +00:00
danielk1977
fb103a8488
Instead of calling sqlite3_exec() to evaluate "PRAGMA encoding = UTF16" in sqlite3_open16(), set the connection encoding flag directly. (CVS 4959)
...
FossilOrigin-Name: 33a12e737c343dbc452a25321a63456c1a8f7548
2008-04-03 16:28:24 +00:00
drh
7720d6448a
Add the speedtest8.c and speedtest16.c files to the tools subdirectory. (CVS 4958)
...
FossilOrigin-Name: b8d211a76fa56d812fc1758b58d65eef832494cb
2008-04-03 16:01:27 +00:00
danielk1977
3a2c8c8b73
Avoid an out-of-bounds read in sqlite3_prepare() and fix a case where the output variable *pzTail was being set incorrectly. Fix for #3027 . (CVS 4957)
...
FossilOrigin-Name: c287a7b29410be12cf88f886e8e2525a42aa9c03
2008-04-03 14:36:25 +00:00
danielk1977
ce98bba24b
Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956)
...
FossilOrigin-Name: fd97f8762cb1e4653c932402940f74d7c0ebf71f
2008-04-03 10:13:01 +00:00
drh
41eb9e9986
Minor optimizations. (CVS 4955)
...
FossilOrigin-Name: e8529455803e0dab167f4faba5846fa1eafef741
2008-04-02 18:33:07 +00:00
drh
6a9ad3da22
Simplifications to the LockTable opcode. (CVS 4954)
...
FossilOrigin-Name: 66c5d715bbb732b0861a8a6f994cb4a8f259f2f8
2008-04-02 16:29:30 +00:00
mlcreech
6cc9c28920
Set flags = MEM_Null on allocation failure in sqlite3VdbeMemGrow (CVS 4953)
...
FossilOrigin-Name: 846f9739d3e288dc81e40f5bfab046bd80bb22b2
2008-04-02 04:23:32 +00:00
drh
47de955ea9
Avoid factoring single-instruction constants that end up getting replaced
...
by an SCopy instruction. (CVS 4952)
FossilOrigin-Name: e84ff57b6217afa84d60547dcc3a270b5e116818
2008-04-01 18:04:11 +00:00
drh
c5499bef4b
Add the testcase() macro. Additional CSE test coverage. (CVS 4951)
...
FossilOrigin-Name: 492490f9c86e52c7a706d9e1bf0ba216d5bb8aba
2008-04-01 15:06:33 +00:00
drh
b3843a82ea
Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)
...
FossilOrigin-Name: e25939fb25ec8bde8500a672ca5be3cbb514ac3a
2008-04-01 12:24:11 +00:00
drh
da250ea599
Fix the CSE mechanism so that it takes into account column affinity
...
changes that might be imposed by comparison operators. (CVS 4949)
FossilOrigin-Name: 91cc646e2b0c1d62a1989405cc9384a2c22d98d0
2008-04-01 05:07:14 +00:00
drh
2f7794c111
More test cases and bug fixes with CSE. (CVS 4948)
...
FossilOrigin-Name: 7e8156129d6d240fe046bbc4ea269ebe1657e2a1
2008-04-01 03:27:39 +00:00
mlcreech
aac7b93ea4
Add a configure option for using gcov (makes things easier for versions of
...
GCC that fail to build otherwise) (CVS 4947)
FossilOrigin-Name: 7d1e79716246b0dd4a64d7c9575b2300e0f6123e
2008-04-01 02:45:22 +00:00
drh
652fbf55c5
Initial test cases and bug fixes in the CSE logic. (CVS 4946)
...
FossilOrigin-Name: e5aff09ac693946dc7ebb2f245b6434995b12155
2008-04-01 01:42:41 +00:00
drh
e1349cb0f0
Break up the implementation of OP_Move, OP_Copy, and OP_SCopy to reduce
...
the number of branch instructions. (CVS 4945)
FossilOrigin-Name: 53e533d3a764d1973c24bffaacc505ea4b61a2b9
2008-04-01 00:36:10 +00:00
drh
9e6675f73f
Add the veryquick.test script for a very fast overview test that omits
...
all i/o and malloc testing. (CVS 4944)
FossilOrigin-Name: f61df8daa89f07dad2a0ded00c326ef35dead257
2008-03-31 23:51:35 +00:00
drh
e55cbd7228
Avoid duplicate OP_Column opcodes by remembering prior results.
...
This is similar to CSE, but only applies to columns. (CVS 4943)
FossilOrigin-Name: c29ee0fed23dcdbd9dde6b1e42b603100ea2389c
2008-03-31 23:48:03 +00:00
drh
678ccce8b3
Factor constant subexpressions out of loops. (CVS 4942)
...
FossilOrigin-Name: 2126db39854c751aea6c95c67894ed9b9dfc0763
2008-03-31 18:19:54 +00:00
danielk1977
a686bfcfa5
In setQuotedToken(), only make a malloced copy if the argument contains one or more " characters. (CVS 4941)
...
FossilOrigin-Name: b266924b8975b69bdb9ab45cf462e41436f89cc2
2008-03-31 17:41:18 +00:00
mlcreech
fe3f4e8a4a
Minor cleanup: Use size_t for struct size cast (CVS 4940)
...
FossilOrigin-Name: 618df68b8b78d376d30cea79a273fd39140f5033
2008-03-29 23:25:27 +00:00
drh
f704c1d6cd
Set exclusive locking mode by default on the speed4p test. (CVS 4939)
...
FossilOrigin-Name: 2d9fea95335ab8f399868f63c51bee89ed7633fa
2008-03-29 17:26:01 +00:00
drh
a2c20e433b
Make the sqlite3BtreeMoveto routine a no-op if the cursor is already pointing
...
at the cell we are trying to move to. (CVS 4938)
FossilOrigin-Name: 9b567ab61e7542141b7bc9c3c053c2d1180da92d
2008-03-29 16:01:04 +00:00
rse
907b46ca16
add two missing initializer values (CVS 4937)
...
FossilOrigin-Name: bf28f1c260b3efbec3b031edb97ccb7b4b039947
2008-03-29 12:50:33 +00:00
rse
28f667fc22
eliminate compile-time warnings related to missing field initializations (CVS 4936)
...
FossilOrigin-Name: d6a34d983e2181f1d1763bd3821a1e63f1e18818
2008-03-29 12:47:27 +00:00
rse
867780aea2
add three missing initializers (CVS 4935)
...
FossilOrigin-Name: f45f0593cf5dd8c0172b13c300a4a9393540e0d7
2008-03-29 12:39:39 +00:00
drh
8359d8cb9d
Add the --pause option to the main test driver. (CVS 4934)
...
FossilOrigin-Name: 37dfcdf529378a8ef37ed8672e28339a7d9e9da6
2008-03-29 11:00:54 +00:00
danielk1977
473c35223e
Fix a problem with min() and descending indexes. (CVS 4933)
...
FossilOrigin-Name: 39705b617a775d4299e98ac88fab4525a64d8b78
2008-03-28 19:16:56 +00:00
danielk1977
75eb016666
Fix a memory leak that can occur when the library API is misused. (CVS 4932)
...
FossilOrigin-Name: 2b6d3e015e3088531c62230c9b3bdab47ef534da
2008-03-28 19:16:33 +00:00
danielk1977
f934c5a98b
Do not incorrectly report a malloc() failure when allocating 0 bytes. Fixes a problem in bind.test. (CVS 4931)
...
FossilOrigin-Name: b99d19d651b00dcc7bdb36facfd9ecffe4fafd9f
2008-03-28 19:15:34 +00:00
danielk1977
e5f5b8f1f0
Fix for #3022 . Handle queries like "SELECT min(b) FROM T WHERE a = X AND b > X" when there is an index on (a,b). (CVS 4930)
...
FossilOrigin-Name: bce289753538ab504e55c4215d6cd4f5df137d9e
2008-03-28 18:11:16 +00:00
drh
334c80d615
Change the pager's sector size algorithm to the maximum of the size
...
reported by xSectorSize() from the VFS and 512. It was using the
maximum of xSectorSize() and the current page size, but that was adding
an extra 512 bytes to the size of the journal file in the common case. (CVS 4929)
FossilOrigin-Name: 17ea0c97a8bac1b34af1f9183d93a2f2a6af9690
2008-03-28 17:41:13 +00:00
danielk1977
5f09613545
Changes to the Mem structure to reduce the frequency of freeing and reallocating the dynamic buffer. (CVS 4928)
...
FossilOrigin-Name: d0bf73d81453da1d8e602e0445064d9f5e348063
2008-03-28 15:44:09 +00:00
drh
b940492e4a
Patch to the new memory tracing logic that allows it to build even if
...
memory debugging is turned off. (CVS 4927)
FossilOrigin-Name: 0a9c63b227b9c6d2bd0e7b491245947ffc83c828
2008-03-28 12:53:38 +00:00
danielk1977
dbdc4d49cb
If memory is leaked when running a test script with the --malloctrace option, write out a file called leaks.sql in the same format as mallocs.sql containing th e leaked applications. The same tools can then be used to examine the stack traces associated with leaked allocations. (CVS 4926)
...
FossilOrigin-Name: f1b97ed93183378ff56b4fe7ae8ea269c24092fc
2008-03-28 07:42:53 +00:00
drh
19db935225
Allow the xAccess method in the VFS to return -1 to signal an I/O
...
error, and in particular an SQLITE_IOERR_NOMEM. (CVS 4925)
FossilOrigin-Name: 3cb704c4c439425781644b1b653b7e50f02fd91e
2008-03-27 22:42:51 +00:00