1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

19158 Commits

Author SHA1 Message Date
drh
51f015eb9c A cosmetic changes to btree.c which (we are told) works around a bug
in MSVC++. (CVS 4491)

FossilOrigin-Name: 329dd014b0d851f21ff6690b6149e9d73c92302d
2007-10-16 19:45:29 +00:00
drh
d2bb3278e0 Add a malloc size histogram to the debugging malloc implementation
in mem2.c. (CVS 4490)

FossilOrigin-Name: 3e51696cb878063e4ebfdcc2a61ba94c9bebdfe3
2007-10-15 19:34:32 +00:00
danielk1977
db2d286b59 Fix for OMIT_AUTHORIZATION builds. (CVS 4489)
FossilOrigin-Name: 260711a14d5ab2d7c9888c7c46c33a28a3da0415
2007-10-15 07:08:44 +00:00
drh
a6d0ffc359 Do not invoke the authorizer when reparsing the schema after a schema
change or when trying to figure out the result set of a view. (CVS 4488)

FossilOrigin-Name: e756bc9b74ef357c088b3044527c41e6834ba1a2
2007-10-12 20:42:28 +00:00
drh
7d97efbe57 Convert a K&R style function to ANSI style. Ticket #2548. (CVS 4487)
FossilOrigin-Name: e1b2e7c24ce0f838687a503dc98188a0e67c79de
2007-10-12 19:35:48 +00:00
drh
64f31519b7 Make the 3rd parameter of the SUBSTR() function optional. Ticket #2579. (CVS 4486)
FossilOrigin-Name: 4a807d48ea9923c1e3df4a5ad503710e62ae29f8
2007-10-12 19:11:55 +00:00
drh
4145f83275 Update documentation to talk about the SQLITE_UTF16_ALIGNED option
for sqlite3_create_collation(). Ticket #2722 (CVS 4484)

FossilOrigin-Name: a7292c14ded6cfca65850ef8169799d2d5f35a61
2007-10-12 18:30:12 +00:00
drh
fc3afb6a98 Still more tweaks to the wince interface. Ticket #2711. (CVS 4482)
FossilOrigin-Name: b2bdb476858c6e4b8977ea06be68b2331d1d84df
2007-10-09 15:36:10 +00:00
drh
e825609ac0 Fix a typo in the wince driver. Ticket #2710. See also ticket #2702. (CVS 4481)
FossilOrigin-Name: beb91af7061a3950636064bf60946132a884cd7b
2007-10-09 15:20:39 +00:00
drh
0cd1ea5e44 More untested changes for wince contributed by users. Ticket #2702. (CVS 4479)
FossilOrigin-Name: ccd709e1791b1c1091a61139633b972b378c1816
2007-10-08 15:06:03 +00:00
drh
7229ed434f Reverting check-in (3836) at the request of winCE users. We no ability
to test this change.  Presumably this is a fix for tickets #2698, #2533,
and #2598.  It is unclear if this causes #2294 to be reopened or not. (CVS 4478)

FossilOrigin-Name: 27346fa55ed9b5c20016d07a37268fbd42dc097f
2007-10-08 12:29:17 +00:00
drh
aab2e6d271 Fix a bug in code for winCE. Ticket #2700. (CVS 4477)
FossilOrigin-Name: a36fca4cdef162c87ce47a50ededdea19a8865f9
2007-10-08 12:22:57 +00:00
drh
496936c881 In windows, always open files using FILE_FLAG_RANDOM_ACCESS. Ticket #2699. (CVS 4476)
FossilOrigin-Name: 5cdbc0972fe94c13dffee1f908a77f903e580449
2007-10-08 12:21:10 +00:00
drh
e31de778e1 Fix a memory leak in the sqlite3_realloc() implementation of the
non-debugging memory allocator. (CVS 4475)

FossilOrigin-Name: 7e9b886dabf10557bc1aa80caad411809ce5a39f
2007-10-06 01:40:35 +00:00
drh
d560305d84 Remove #include <math.h> from all source files. It is no longer needed but
causes compile problems when -DSQLITE_OMIT_FLOATING_POINT is defined.
Ticket #2696. (CVS 4474)

FossilOrigin-Name: 4424357d17f615fab922780616eac6773535923a
2007-10-05 16:23:55 +00:00
drh
865050681a Do not attempt to use TryEnterCriticalSection() under win32. It causes
too many compiler problems.  Ticket #2685. (CVS 4471)

FossilOrigin-Name: f795431c725d88bd4011f20cf63cac630de842f1
2007-10-05 15:08:01 +00:00
danielk1977
20e987a140 Fix problem building testfixture on mac. Ticket #2689. (CVS 4470)
FossilOrigin-Name: fe067d706b40d9756433eac9896660514d1c8216
2007-10-05 15:04:12 +00:00
drh
ee8683e1a8 Use FormatMessageA() instead of FormatMessage() in the w32 VFS.
Ticket #2687. (CVS 4468)

FossilOrigin-Name: 38674fd287e0ca67e27c46a3ad0db4dcc8ed1e0c
2007-10-05 14:49:45 +00:00
danielk1977
b5258c3db3 Fixes for OMIT_AUTHORIZATION builds. #2691. (CVS 4466)
FossilOrigin-Name: 755fcaf7e355042d88fed6b9b49669300b010695
2007-10-04 18:11:15 +00:00
drh
e0ea9bf4a4 Fix a syntax error that comes up when memory debugging is disabled. (CVS 4462)
FossilOrigin-Name: 96dd3c336b5bbf9da6ba9ace85dbe7c4b1ff2bcb
2007-10-03 21:10:58 +00:00
drh
7c3472a37b Update documentation to talk about the response to errors
within an explicit transaction. (CVS 4460)

FossilOrigin-Name: 84616a13af633700635ad2f91e92c2f7271e96d1
2007-10-03 20:15:28 +00:00
drh
d181704ec5 Simplify the vdbeHalt logic slightly. (CVS 4459)
FossilOrigin-Name: b59f7bcbabcccde9d2519e10e65e121343f2af7a
2007-10-03 18:45:04 +00:00
drh
71b890a3f6 Rollback the transaction if an SQLITE_FULL error is encountered.
This is a preliminary fix for ticket #2686.  More testing and
analysis is needed before we close the ticket. (CVS 4458)

FossilOrigin-Name: 0fb6d5a5773c282882e7283e6f8f8c009e238ff4
2007-10-03 15:30:52 +00:00
danielk1977
c4f6f62900 Fix a memory leak that could occur during error-state recovery. (CVS 4457)
FossilOrigin-Name: 3d1d13d1eb5817c22956e6e7792783116a828962
2007-10-03 15:22:25 +00:00
danielk1977
ae72d98252 Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454)
FossilOrigin-Name: 12eca32a6a3d68d5b20eed03afdffe7599e66014
2007-10-03 08:46:44 +00:00
pweilbacher
ae1463b941 Use local variables instead of #defines for the mutex name and length in OS/2's sqlite3_mutex_alloc(). (CVS 4453)
FossilOrigin-Name: 272959cc91d0c9299d6fca8a962eb563650af87b
2007-10-02 19:56:04 +00:00
drh
e5e7a901bd Additional #ifdefing around _XOPEN_SOURCE. Ticket #2681. (CVS 4452)
FossilOrigin-Name: eb5d78451ee2a5d8480537530f30fbb305bf7632
2007-10-01 17:47:00 +00:00
drh
6708061770 Omit the _XOPEN_SOURCE 500 define on Mac OS-X. Ticket #2673 (CVS 4450)
FossilOrigin-Name: 0bbf654b6745058a705ef5c320bdd5fb06735271
2007-10-01 14:30:14 +00:00
drh
98c948048b Fix comment typos in sqlite3.h. Ticket #2666. (CVS 4447)
FossilOrigin-Name: 2ea278a2af5b3e94acf5321375cc33d1f58c3885
2007-10-01 13:50:31 +00:00
drh
6cca08c274 Remove "const" keywords from the sqlite3_index_info structure definition.
The use of this keyword is suspected to be causing problems for some
compilers. (CVS 4445)

FossilOrigin-Name: 005d780de6e9e377ee296ff576e58cf1b512f245
2007-09-21 12:43:16 +00:00
danielk1977
aaa40c1c8f Another comment typo. Also #2660. (CVS 4444)
FossilOrigin-Name: 0c1e6f69cd55ced4af5dcfbeff04820ba0d5b051
2007-09-21 04:28:16 +00:00
danielk1977
6eb91d20a4 Fix a typo in comments. Ticket #2660. (CVS 4443)
FossilOrigin-Name: 02c8d60bea36825c1c763bbf2c6107869915aafd
2007-09-21 04:27:02 +00:00
pweilbacher
ec70b6b02f Initial attempt of the new OS/2 mutex implementation. (Compiles and an attempt to create a new table does not crash in mutex_os2 any more.) (CVS 4442)
FossilOrigin-Name: aa61b244252399cce3b9c1ece9c6816ae9cb6717
2007-09-20 21:40:23 +00:00
drh
c51250a56b Replace "i64" with "sqlite3_int64" in the w32 VFS. (CVS 4441)
FossilOrigin-Name: 138d3fcc5a74eb570107ae1299184a318b5417df
2007-09-20 14:39:23 +00:00
rse
b72e88d71c fix typo in comment (CVS 4438)
FossilOrigin-Name: c2ac43a4ef674c0202d5bd1ec57fc25c89d0554e
2007-09-20 11:32:18 +00:00
drh
777b17af7e Fixes for uninitialized variables. Tickets #2658 and #2659. (CVS 4437)
FossilOrigin-Name: 27fe1288336665c4d47c5d7ddcbeacc451ec4a9d
2007-09-20 10:02:54 +00:00
rse
25c0d1a18a The code is correct as it contains an assert(3) in the "default" switch
case, but GCC 4.3 is not able to detect this and instead complains
with "warning: 'amode' may be used uninitialized in this function".
Hence, although the assert(3) already protects the code here, get rid of
this compiler warning by doing a simple initialization of the "amode"
variable. (CVS 4436)

FossilOrigin-Name: 91831ff2922666b39d8f4ba448982c6763030633
2007-09-20 08:38:14 +00:00
drh
728b577934 Remove unneeded pSchema field from the Expr structure. (CVS 4434)
FossilOrigin-Name: b2d605a2714245febb316a24edc7a076e21a3849
2007-09-18 15:55:07 +00:00
danielk1977
adfb9b0501 Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433)
FossilOrigin-Name: 8b29f5fbfc723cdf67cf3410cd01f7c17ea39a4b
2007-09-17 07:02:56 +00:00
danielk1977
76ee37f9bb Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432)
FossilOrigin-Name: ad3687b16e9420d8bbaa3a645aaf803813b36061
2007-09-17 06:06:39 +00:00
drh
6ac164d708 Corrections to the winCE code. Untested. (CVS 4431)
FossilOrigin-Name: 8cc51e0a817115c4eb667f7257a3f5a4a39d0a4a
2007-09-14 20:32:18 +00:00
danielk1977
a15db35304 Minor fixes for the OMIT_INCRBLOB compilation option. (CVS 4430)
FossilOrigin-Name: 87e37eabf0ddef252bbc12f6857d33c2b136dcd3
2007-09-14 16:20:00 +00:00
danielk1977
b61c16d987 Add demo code for a vfs that operates on a single pre-allocated file. (CVS 4429)
FossilOrigin-Name: 15680ca4821ec0652dfbe863199b4c3f2afad4ba
2007-09-14 16:19:27 +00:00
drh
8e70e34a28 Fix incorrect index cost assumptions that occur after an ANALYZE.
Ticket #2643. (CVS 4424)

FossilOrigin-Name: 2cfdbfe6543bac42961deecec7d085d806e604b5
2007-09-13 17:54:40 +00:00
danielk1977
4152e677b8 Fixes for compilation/testing when the various OMIT macros are defined. (CVS 4423)
FossilOrigin-Name: c8405b15c074c94dab5e33272cf1471f458d11df
2007-09-12 17:01:45 +00:00
drh
a430ae8e54 In the query optimizer, make sure table dependencies from all terms
of a compound SELECT statement are recognized so that subqueries in
a WHERE clause are not evaluated too early.  Fix for ticket #2640. (CVS 4422)

FossilOrigin-Name: 9c9c2a1da2b6235b3b0541d1f55a02a1f350567f
2007-09-12 15:41:01 +00:00
danielk1977
076f1c0d63 Add a missing semi-colon to os_win.c. Ticket #2642. (CVS 4421)
FossilOrigin-Name: c6ee5929e7d1f9b7c351f57ee8886f71ea0b6619
2007-09-12 14:09:23 +00:00
danielk1977
c15f0b3df7 Fix a problem in the noop-mutexes used for testing. (CVS 4420)
FossilOrigin-Name: 4dbeb915b3138194abd5554b52003162235f9a5f
2007-09-10 16:12:59 +00:00
danielk1977
e9dcd5e6e3 Add another test file to help verify thread-safety. (CVS 4419)
FossilOrigin-Name: c758cc1d885b4528c0b0ef6382119f20956d4816
2007-09-10 10:53:01 +00:00
danielk1977
d9b5b1177d Upgrade thread001.test to test with multiple database handles. (CVS 4417)
FossilOrigin-Name: 6ee2b8ffc4310c8e329f634f3ade058b33c53a2a
2007-09-10 06:23:53 +00:00