danielk1977
d0f1958682
Changes to jrnlmode.test to account for in-memory temp databases. (CVS 6483)
...
FossilOrigin-Name: c31d4359ae056dca9e9de61ef8ceb683b92850e7
2009-04-10 15:02:43 +00:00
drh
73d34e92f4
Simplifications and additional comments on the sqlite3_get_table()
...
implementation. Changes to facilitate full branch test coverage. (CVS 6482)
FossilOrigin-Name: 57e3e6b3cb54e6626bee41a084c927ee264b6d03
2009-04-10 14:27:59 +00:00
danielk1977
f7590db099
Changes to ensure that when running in shared-cache mode with a non-threadsafe build, the correct busy-handler callback is always invoked. (CVS 6481)
...
FossilOrigin-Name: 683e4bd74783e6e3f6cf75f9582008c7b7e02a01
2009-04-10 12:55:16 +00:00
danielk1977
2a50ff0309
Always set BtShared.db when entering the BtShared mutex. Ticket #3793 . (CVS 6480)
...
FossilOrigin-Name: ed6620ba589ddbb6ca86f42a7652e3b019195647
2009-04-10 09:47:06 +00:00
drh
8c5d152b53
Force 8-byte alignment of sqlite3_value objects in the
...
sqlite3VdbeUnpackRecord() primitive. Ticket #3777 . (CVS 6479)
FossilOrigin-Name: 2cc68272b1f70701268075cfa82fa64bb2a8179d
2009-04-10 00:56:28 +00:00
drh
3c3cb6be73
Increase the version number to 3.6.13 in preparation for the next release. (CVS 6478)
...
FossilOrigin-Name: 9a09a47495d498a3372ead0eef5e3642a3ff30c2
2009-04-09 21:02:29 +00:00
chw
a5dc7f73f9
Provide dummy DWORD arguments to output parameters of GetDiskFreeSpace(A|W),
...
NULL causes access violations on Windows NT 4.0 (CVS 6477)
FossilOrigin-Name: 5350a6586cd6504a0724631e4ef46245832435f9
2009-04-09 14:27:06 +00:00
drh
0f5ea0b34c
Remove misuse detection from the deprecated sqlite3_transfer_bindings()
...
interface. The code was hard to test and was simply taking up space. (CVS 6476)
FossilOrigin-Name: 4cd829107cc9e94b092490aa821574492292b425
2009-04-09 14:02:44 +00:00
drh
bb77b753c5
Enhance sqlite3_shutdown() so that it automatically invokes
...
sqlite3_reset_auto_extension(). This is a harmless no-op if applications
are already calling sqlite3_reset_auto_extension() prior to sqlite3_shutdown().
And it prevents possible memory corruption if they do not. So it works
either way. Most of the changes are to the test cases. (CVS 6475)
FossilOrigin-Name: 0c41f7cff4f6ffb9321f6f6b6ef3e431b750d41a
2009-04-09 01:23:49 +00:00
drh
c6c7fd51c5
Simplify the implementation of the columnName() function in vdbeapi.c.
...
This is a code cleanup only - no behavior changes. (CVS 6474)
FossilOrigin-Name: 0628f5864f8cc035b41bbe644bd8ec8fb43c70ce
2009-04-08 23:05:28 +00:00
drh
2e79c3d51c
Add an assert() to the implementation of count(*) that checks the
...
correct operation of the sqlite3_aggregate_count() function. (CVS 6473)
FossilOrigin-Name: f322be3833c4a938ee7d9e4bcfd5decaca57db0b
2009-04-08 23:04:14 +00:00
drh
874ba04c73
Reconfigure the default case for the printf switch in order to improve
...
branch coverage. (CVS 6472)
FossilOrigin-Name: 3cc79162dbdbce9d08bb28942128780277101e0d
2009-04-08 16:10:04 +00:00
drh
bc6160b0d6
Remove a pair unnecessary conditions from printf.c. The "db" parameter is
...
now required for sqlite3MPrintf(). (CVS 6471)
FossilOrigin-Name: 6fe8b5d70247d9c6b70dd482db3990986be97e69
2009-04-08 15:45:31 +00:00
drh
12ffee8cb9
Minor refactoring of the expression-compaction logic for clarity of
...
presentation. New comments added. The EXPRDUP_DISTINCTSPAN flag is
removed as obsolete. (CVS 6470)
FossilOrigin-Name: 44ded2ea67374f187a111df69c3f51f866735400
2009-04-08 13:51:51 +00:00
drh
0a9aa2253c
Do not attempt to walk a TokenOnly or SpanOnly expression tree node.
...
Ticket #3791 . (CVS 6469)
FossilOrigin-Name: 8362d883248f00a8ec7294bf027fd19758aec5f2
2009-04-08 12:21:30 +00:00
drh
7e3ff5d84e
Add a comment to printf.c - no changes to code. (CVS 6468)
...
FossilOrigin-Name: ee5a4a0e595a7b916db7d55d30ddfda0a8d40d90
2009-04-08 11:49:42 +00:00
drh
65a73bad9e
Fix the sqlite3_unlock_notify() interface so that when the callback is NULL
...
it simply cancels any outstanding callbacks. (CVS 6467)
FossilOrigin-Name: 9ccfcb760745df28b04e746355b1b6dec49a93de
2009-04-07 22:06:57 +00:00
drh
695c0266b7
Remove two unused tests from the integrity_check pragma logic. (CVS 6466)
...
FossilOrigin-Name: 22999d31418aa9ecb17ab5d135b206b967889614
2009-04-07 22:05:43 +00:00
danielk1977
5d189858e9
Fix an incorrect assert in btree.c. (CVS 6465)
...
FossilOrigin-Name: 2c1f59834ab7a16066ee12cb8a8342d438c23ce9
2009-04-07 14:38:58 +00:00
danielk1977
2943c37228
Fix compilation and testing when SQLITE_OMIT_TRIGGER is defined. Ticket #3786 . (CVS 6464)
...
FossilOrigin-Name: 277dace43d51fbc79c7a62fc841c150ecd8d0823
2009-04-07 14:14:22 +00:00
drh
85799a4715
Only enable WHERE-tracing when both TEST and DEBUG are enabled. (CVS 6463)
...
FossilOrigin-Name: 55b93649258204797f56a58322cf31b564469633
2009-04-07 13:48:11 +00:00
danielk1977
64aca19127
Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pla
...
ces. Ticket #3783 . (CVS 6462)
FossilOrigin-Name: 6f79e6ae0d30948db4ba26bb5b448c15c470464f
2009-04-07 11:21:28 +00:00
danielk1977
c4d201c632
Have OP_IdxRowid handle the case where the index entry it is reading from is deleted. (CVS 6461)
...
FossilOrigin-Name: cdad29b582ca832f6a717d8a6e3f3bca424e84a4
2009-04-07 09:16:56 +00:00
chw
78a1318b2e
Compile fixes and improvements for vxwork: fixed deadlock in semClose,
...
detect if fcntl is usable, fall back to named semaphores if not. (CVS 6460)
FossilOrigin-Name: efd0682b7e78acc4242cf257fc246350fc29b5c8
2009-04-07 05:35:03 +00:00
drh
1086172f7d
Remove an unused test for EXPLAIN-mode in the PRAGMA processing. (CVS 6459)
...
FossilOrigin-Name: 909683b3428784ce91d222ccf887033d86250bd5
2009-04-07 00:49:16 +00:00
drh
081a166489
Always enable WHERE-tracing on a test build.
...
Oops - accidentally included a debugging change to pragma.c in
this check-in. The real fix for the pragma problem is in the
following checking. (CVS 6458)
FossilOrigin-Name: 567cf90b038a37da93d02954ef8f9f435dcc9a38
2009-04-07 00:43:28 +00:00
drh
577d674f1a
It is OK for a unix file descriptor to be zero. It just can't be negative.
...
Adjust an assert accordingly. Ticket #3781 . (CVS 6457)
FossilOrigin-Name: 47aa7eb0e047e30bbf09cb08c1e48c61f8d9861c
2009-04-07 00:35:20 +00:00
danielk1977
ef165cedeb
Test cases and minor code changes to increase coverage of btree.c. (CVS 6456)
...
FossilOrigin-Name: def3a016914f683818b5f013ec4efecbb8fd4c0d
2009-04-06 17:50:03 +00:00
drh
1a25f11ccc
Updates and clarification to the documentation of the sqlite3_temp_directory
...
global variable. No changes to code. (CVS 6455)
FossilOrigin-Name: aea99c572a69a00b709f0de816ea16488d899375
2009-04-06 15:55:03 +00:00
drh
6da861be0e
Allow "default" to be a keyword used by PRAGMA statements. (CVS 6454)
...
FossilOrigin-Name: ed99d2d97f11784dda0f61f8e7d0eb5ca1bca371
2009-04-06 14:16:43 +00:00
drh
69a442ef1f
Make sure the reverse_unordered_selects pragma works even on unindexed
...
tables that are queried without a WHERE clause (CVS 6453)
FossilOrigin-Name: d8c6b28a734fccbbbd567d98ffa7e6557280f737
2009-04-06 12:26:57 +00:00
drh
3c6d9a48e0
Check-in (6450) introduced the possibility of calling memset() with a
...
negative 3rd argument. This fixes that bug. Ticket #3777 . (CVS 6452)
FossilOrigin-Name: 8ca612c42e0de3ef5b2f92d80a56db1bef34b1c6
2009-04-06 11:11:42 +00:00
drh
02368c983f
Fix a segfault in Lemon that occurs if the input grammar does not define
...
a type for tokens. This does not effect SQLite since the SQLite grammar
does define a type for tokens. (CVS 6451)
FossilOrigin-Name: 4424aee958b2e764a61141b5c66c063e36ed5aae
2009-04-05 15:18:02 +00:00
drh
ea598cbd8d
Additional code to make sure and to assert that memory allocations have
...
8-byte alignment. Ticket #3777 . (CVS 6450)
FossilOrigin-Name: 208382e032134d9c78fe1cfcb98ce9defb4e3e26
2009-04-05 12:22:08 +00:00
drh
3c71364643
Allow the journal_size_limit to be larger than 2147483647 bytes. (CVS 6449)
...
FossilOrigin-Name: 81931259611ef10de731ea0e38cee92eb8629733
2009-04-04 16:02:32 +00:00
drh
5d73854b27
Allow the journal_mode for in-memory databases to be either OFF or MEMORY,
...
not just MEMORY. (CVS 6448)
FossilOrigin-Name: 11c77f4c2c2beee5267ea6e2f1a4bb845531b42c
2009-04-04 15:53:47 +00:00
drh
eb0d629257
Clarify the meanings of the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags
...
passed into the xSync method of the VFS. Comment changes only - no changes
to code. (CVS 6447)
FossilOrigin-Name: c47aeb37a1c054a8e0444b95e29cb332599af2d8
2009-04-04 14:04:58 +00:00
drh
0d1d5abffa
Remove a blank line in sqlite.h.in that was preventing the
...
SQLITE_LOCKED_SHAREDCACHE constant appears in the automatically-generated
documentation. Ticket #3775 . (CVS 6446)
FossilOrigin-Name: 65f9d3b948cd6ed4728ab49833b9f2fca96563a2
2009-04-03 12:12:58 +00:00
drh
07758962f5
Use integer rather than floating point compuations in converting from julian
...
day number to unix-time to avoid round-off errors on Borland compilers.
Ticket #3769 . (CVS 6445)
FossilOrigin-Name: c26f97bd857f3ddb15e63216cdd4a00e06d8eac8
2009-04-03 12:04:36 +00:00
drh
ada2ee0d8b
Fix the PRAGMA parser so that it can accept negative numbers in parentheses,
...
like the syntax diagrams say it should be able to. (CVS 6444)
FossilOrigin-Name: 286e83178ddcd2efe2888697bcf8cc95ccdef880
2009-04-03 01:43:57 +00:00
drh
818e39ad35
Make sure count(*) works on the sqlite_master table of an empty database.
...
Ticket #3774 . (CVS 6443)
FossilOrigin-Name: e0c1a780f5a356c48b2a4cc66fab988fe441722f
2009-04-02 20:27:28 +00:00
drh
ce4869f893
Make sure the VACUUM statement locks down the page_size and auto_vacuum
...
modes after it runs. Otherwise, pragmas might change these settings on
a populated database, resulting in problems. (CVS 6442)
FossilOrigin-Name: 85e6a4740d6db731c8c35a331031c346e9189c27
2009-04-02 20:16:58 +00:00
drh
860e077a7a
Fix the sqlite3_prepare() family of interfaces so that they zero the *ppStmt
...
value even on an SQLITE_MISUSE return. Make it clear in the documentation
that the ppStmt parameter cannot be zero. (CVS 6441)
FossilOrigin-Name: 23bf9f266559603e37b2703715eaf8ef5af6bb17
2009-04-02 18:32:26 +00:00
danielk1977
fa542f1fc8
Fix a problem causing the BtShared.isPending flag to be cleared to early. Also coverage improvements for btree.c. (CVS 6440)
...
FossilOrigin-Name: 8f1423445b29a5f52ed907de6db82128a96ebfe2
2009-04-02 18:28:08 +00:00
danielk1977
e1fb65a0b8
Ensure the required VerifyCookie/Transaction/TableLock opcodes are added for "x
...
IN (SELECT c FROM t)" expressions. Ticket #3771 . (CVS 6439)
FossilOrigin-Name: 058a2f20930d7707c03c3c27db8e761d5657ee46
2009-04-02 17:23:32 +00:00
drh
de46798569
Fix a couple of harmless nuisance warnings. (CVS 6438)
...
FossilOrigin-Name: 53dac0a455b9a822f710c257711e8d319060cf84
2009-04-02 17:22:41 +00:00
drh
e8902a70fe
Disable the query flattening optimization when the subquery is a compound
...
query with an ORDER BY clause. Ticket #3773 shows why that combination
does not work. (CVS 6437)
FossilOrigin-Name: 23f90d50737a36ebd17152dd4667948ce7049967
2009-04-02 16:59:47 +00:00
drh
3034e3d364
Change the way that the random() SQL function prevents the maximum
...
negative integer so that it is testable. (CVS 6436)
FossilOrigin-Name: 995f2b9b1031fadc85e179701536b9dd4153654b
2009-04-02 14:05:21 +00:00
drh
d27135ad82
Use ALWAYS and NEVER macros on unchangeable conditions within func.c. (CVS 6435)
...
FossilOrigin-Name: eb65e64e7ed5edbe506365971d4d81ea037098d3
2009-04-02 13:36:37 +00:00
drh
27e62dbedd
In the built-in SQL function implementations, improve some comments, fix
...
an off-by-one error in detecting over-size strings, and add testcase()
macros to verify that boundary values have been tested. (CVS 6434)
FossilOrigin-Name: 868a487f5fd7c795e04a08de36a85ba1e06bc8c6
2009-04-02 10:16:17 +00:00