]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
17 years agoFix for memory leak in malloc3.test. (CVS 4913)
danielk1977 [Tue, 25 Mar 2008 09:56:44 +0000 (09:56 +0000)] 
Fix for memory leak in malloc3.test. (CVS 4913)

FossilOrigin-Name: ef0e40e814b3d3a00721f8ca39bac0db1be24347

17 years agoUse a vdbe memory cell to allocate the space required for vdbe cursors. (CVS 4912)
danielk1977 [Tue, 25 Mar 2008 09:47:35 +0000 (09:47 +0000)] 
Use a vdbe memory cell to allocate the space required for vdbe cursors. (CVS 4912)

FossilOrigin-Name: 047153648155654b0cd70b811935209d2e21776c

17 years agoRemoved the direct btree tests - part of the ongoing effort to test by
drh [Tue, 25 Mar 2008 00:22:21 +0000 (00:22 +0000)] 
Removed the direct btree tests - part of the ongoing effort to test by
calling only public interfaces.  Modify the sqlite3VdbeRecordCompare
interface to used a pre-parsed second key - resulting in a 13%
performance improvement on speed1p.test. (CVS 4911)

FossilOrigin-Name: 0e1d84f2f456e7680bb667266745b629ddf3605f

17 years agoImproved documentation of sqlite3_blob_open(). (CVS 4910)
drh [Mon, 24 Mar 2008 12:51:46 +0000 (12:51 +0000)] 
Improved documentation of sqlite3_blob_open(). (CVS 4910)

FossilOrigin-Name: 1ed695f560a58786f2a8467c601f281c67034fd4

17 years agoRemove redundant tests from the reparenter in the btree module. (CVS 4909)
drh [Sun, 23 Mar 2008 00:20:36 +0000 (00:20 +0000)] 
Remove redundant tests from the reparenter in the btree module. (CVS 4909)

FossilOrigin-Name: a807e7184b857414ce203af129ac1adf2012096c

17 years agoBug fix in the newly revised sqllimit1.test script. (CVS 4908)
drh [Sat, 22 Mar 2008 23:59:58 +0000 (23:59 +0000)] 
Bug fix in the newly revised sqllimit1.test script. (CVS 4908)

FossilOrigin-Name: 2a89fb3c3e991b2c02e07b8b86b67b8d80e0360d

17 years agoAdd the speed1p.test script. Like speed1.test except that it tries to take
drh [Sat, 22 Mar 2008 01:08:00 +0000 (01:08 +0000)] 
Add the speed1p.test script.  Like speed1.test except that it tries to take
advantage of prepared statements. (CVS 4907)

FossilOrigin-Name: ece4fb9f7b93dc3e3cb77e40b011d013d0750dcf

17 years agoAdd the SQLITE_OMIT_DECLTYPE compile-time option. Remove more code when
drh [Sat, 22 Mar 2008 01:07:17 +0000 (01:07 +0000)] 
Add the SQLITE_OMIT_DECLTYPE compile-time option.  Remove more code when
SQLITE_ENABLE_COLUMN_METADATA is not defined. (CVS 4906)

FossilOrigin-Name: 8ef26646cff9be75c584a9abfcfffcfdb49b3969

17 years agoDefer allocating memory space to hold the array of column values and
drh [Fri, 21 Mar 2008 18:01:14 +0000 (18:01 +0000)] 
Defer allocating memory space to hold the array of column values and
names in sqlite3_exec() until there is a need to use the array.  In
the common case where there is no callback, this avoids a malloc() call. (CVS 4905)

FossilOrigin-Name: d8686abcdf9e566571033f2f137142f742df9357

17 years agoBetter integrate the new malloc related instrumentation with the test infrastructure...
danielk1977 [Fri, 21 Mar 2008 17:29:37 +0000 (17:29 +0000)] 
Better integrate the new malloc related instrumentation with the test infrastructure. (CVS 4904)

FossilOrigin-Name: d2140cae39dcced63e3ad5771e52d522ce587c96

17 years agoMake sure the text result of an aggregate function has the correct
drh [Fri, 21 Mar 2008 17:13:13 +0000 (17:13 +0000)] 
Make sure the text result of an aggregate function has the correct
encoding.  Ticket #3009. (CVS 4903)

FossilOrigin-Name: 13e388cecf53d680a79ef29ff4e82e59de8f1264

17 years agoAdd a completely new testing system for the Bitvec object. The new
drh [Fri, 21 Mar 2008 16:45:47 +0000 (16:45 +0000)] 
Add a completely new testing system for the Bitvec object.  The new
testing system uses sqlite3_test_control() instead of unpublished
APIs.  Now provides 100% condition/decision coverage.  Obscure bugs
in Bitvec found and fixed as a result of the enhanced coverage. (CVS 4902)

FossilOrigin-Name: 2498d3ea36ecab6d9c0f04ef1c49d76a7a215a4f

17 years agoAdd some more logging to the malloc system used when SQLITE_MEMDEBUG is defined....
danielk1977 [Fri, 21 Mar 2008 14:22:44 +0000 (14:22 +0000)] 
Add some more logging to the malloc system used when SQLITE_MEMDEBUG is defined. (CVS 4901)

FossilOrigin-Name: 79738f582fbac87f2d335e0c6b7f53e3054b41ba

17 years agoIn the sqlite3_limit() interface, take out the feature where zero means
drh [Thu, 20 Mar 2008 18:00:49 +0000 (18:00 +0000)] 
In the sqlite3_limit() interface, take out the feature where zero means
use the hard upper bound.  If an application wants the hard upper bound,
it can set the limit to 0x7fffffff and the bound will be automatically
truncated. (CVS 4900)

FossilOrigin-Name: d6be1f495ec57158f7bcca3e32145a9a8fde723a

17 years agoReinstate test cases for the limit tests. The sqlite3_limit() API is now
drh [Thu, 20 Mar 2008 16:30:17 +0000 (16:30 +0000)] 
Reinstate test cases for the limit tests.  The sqlite3_limit() API is now
tested and working. (CVS 4899)

FossilOrigin-Name: 4c4be4c3c8aae97f1d85442b25afba9f0b02c8b3

17 years agoDo not run crash7.test as part of a quick test. (CVS 4898)
danielk1977 [Thu, 20 Mar 2008 16:26:48 +0000 (16:26 +0000)] 
Do not run crash7.test as part of a quick test. (CVS 4898)

FossilOrigin-Name: 53b4a09040341a981b2f33399a1ddcee952ba3ef

17 years agoInitial implementation of per-connection limits and the sqlite3_limit() API.
drh [Thu, 20 Mar 2008 14:03:29 +0000 (14:03 +0000)] 
Initial implementation of per-connection limits and the sqlite3_limit() API.
The sqllimits1.test script crashes.  SQLITE_LIMIT_PAGE_COUNT and
SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897)

FossilOrigin-Name: 60c77882b2de9f6a45f8bd87c9c6a0cc613f8373

17 years agoAllow a VACUUM operation to change the page-size in the same way as it can be used...
danielk1977 [Thu, 20 Mar 2008 11:04:21 +0000 (11:04 +0000)] 
Allow a VACUUM operation to change the page-size in the same way as it can be used to change a database between auto-vacuum and normal mode. (CVS 4896)

FossilOrigin-Name: 871df0e7c36a88f175cfc63797745e52a1b1796b

17 years agostick everything that sqlite links against into Libs.private (CVS 4895)
vapier [Thu, 20 Mar 2008 10:44:42 +0000 (10:44 +0000)] 
stick everything that sqlite links against into Libs.private (CVS 4895)

FossilOrigin-Name: 8b198617f572d35f04d119ba688e0f5c67f81144

17 years agoWrite the page-size into the first journal-header of each journal file. (CVS 4894)
danielk1977 [Thu, 20 Mar 2008 04:45:49 +0000 (04:45 +0000)] 
Write the page-size into the first journal-header of each journal file. (CVS 4894)

FossilOrigin-Name: 79f573cc7be89b3dd5540c45ef132b5cedc98e9b

17 years agoMake out-of-tree builds work as expected when using configure script (CVS 4893)
mlcreech [Thu, 20 Mar 2008 02:25:35 +0000 (02:25 +0000)] 
Make out-of-tree builds work as expected when using configure script (CVS 4893)

FossilOrigin-Name: e2d05ea3c3e4a11bc1c0cc4c4403a445b9c2b64d

17 years agoFix the load-extension mechanism so that tests build with or without it.
drh [Thu, 20 Mar 2008 00:32:20 +0000 (00:32 +0000)] 
Fix the load-extension mechanism so that tests build with or without it.
This check-in also includes prototypes for the new sqlite3_limit()
interface, but no implementation. (CVS 4892)

FossilOrigin-Name: bee38c2dda50592fef5fedab01311d5486240b95

17 years agoFix build whether compiling with or without auto-extension enabled (CVS 4891)
mlcreech [Wed, 19 Mar 2008 23:52:34 +0000 (23:52 +0000)] 
Fix build whether compiling with or without auto-extension enabled (CVS 4891)

FossilOrigin-Name: 7b9682c65f545b09d410173cf282f7c4f4438097

17 years agoDon't wrongly look for the amalgamation in $(TOP) (CVS 4890)
mlcreech [Wed, 19 Mar 2008 23:15:37 +0000 (23:15 +0000)] 
Don't wrongly look for the amalgamation in $(TOP) (CVS 4890)

FossilOrigin-Name: 41d6ca31acbc0bd8555e5487ba3b695db5c9a81a

17 years agoAdd a new interface, sqlite3_context_db_handle(), that returns the database
drh [Wed, 19 Mar 2008 21:45:51 +0000 (21:45 +0000)] 
Add a new interface, sqlite3_context_db_handle(), that returns the database
connection pointer for an application-defined function. (CVS 4889)

FossilOrigin-Name: 54c55cae556af5a16c0ce8be1a96d2932db80ad8

17 years agoUndefine the "isView" macro when compiling with SQLITE_OMIT_VIEW so that
drh [Wed, 19 Mar 2008 20:42:13 +0000 (20:42 +0000)] 
Undefine the "isView" macro when compiling with SQLITE_OMIT_VIEW so that
the macro does not interfer with subsequent modules in the amalgamation. (CVS 4888)

FossilOrigin-Name: a42caa8f83ce19af1e569c4545ea8b2449152430

17 years agoUse the xCurrentTime method of the default VFS instead of stdlib time() to
drh [Wed, 19 Mar 2008 20:18:27 +0000 (20:18 +0000)] 
Use the xCurrentTime method of the default VFS instead of stdlib time() to
get the current time when compiling with SQLITE_OMIT_DATETIME_FUNCS. (CVS 4887)

FossilOrigin-Name: 73fbac7cf7b61b23831f62b996fbdd358695b473

17 years agoUpdate the loadable extension module to include recently added interfaces. (CVS 4886)
drh [Wed, 19 Mar 2008 19:55:55 +0000 (19:55 +0000)] 
Update the loadable extension module to include recently added interfaces. (CVS 4886)

FossilOrigin-Name: bf1cecede88d2a21eb4891a343f3c19bb5416263

17 years agoInitialize the MD5 SQL functions from test_func.c instead of using
drh [Wed, 19 Mar 2008 19:01:21 +0000 (19:01 +0000)] 
Initialize the MD5 SQL functions from test_func.c instead of using
conditional compilation in tclsqlite.c. (CVS 4885)

FossilOrigin-Name: 801a0e3c9972c1fc9f55a9c55cd0ff19fd79fa37

17 years agoCreate the test_destructor16() test SQL function to enhance test coverage.
drh [Wed, 19 Mar 2008 16:35:24 +0000 (16:35 +0000)] 
Create the test_destructor16() test SQL function to enhance test coverage.
Prior to check-in (4883), the test_destructor() function was sufficient,
but we now need separate functions since the implementation is restricted
to using the published API. (CVS 4884)

FossilOrigin-Name: bb7218657f3b06d810ad710fe64e5c9984aa518c

17 years agoMove SQL functions used for testing only out of func.c and into a new
drh [Wed, 19 Mar 2008 16:08:53 +0000 (16:08 +0000)] 
Move SQL functions used for testing only out of func.c and into a new
test file named test_func.c.  Use sqlite3_auto_extension() to make sure
the test functions appear in every database connection. (CVS 4883)

FossilOrigin-Name: e90c4cc8a89838161f218739bc821126e247498c

17 years agoAdd a new api sqlite3_randomness() for providing access to SQLite's
drh [Wed, 19 Mar 2008 14:15:34 +0000 (14:15 +0000)] 
Add a new api sqlite3_randomness() for providing access to SQLite's
internal PRNG.  Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882)

FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32

17 years agoWhen a parse of the sqlite_master table fails, include the name of the
drh [Wed, 19 Mar 2008 13:03:33 +0000 (13:03 +0000)] 
When a parse of the sqlite_master table fails, include the name of the
object being parsed as part of the error message. (CVS 4881)

FossilOrigin-Name: 57805b588f6b6d070918102a0ff096ade674279a

17 years agoRemove the dependency on the direct btree interface from as many test
drh [Wed, 19 Mar 2008 00:21:30 +0000 (00:21 +0000)] 
Remove the dependency on the direct btree interface from as many test
scripts as is practical.  Fix a bug in the output limiter of the
integrity_check pragma that came up while making this change. (CVS 4880)

FossilOrigin-Name: 24e769972eb6052b82dc94d20444c186a213e104

17 years agoUpdate the documentation to distinguish between protected and unprotected
drh [Tue, 18 Mar 2008 13:47:20 +0000 (13:47 +0000)] 
Update the documentation to distinguish between protected and unprotected
sqlite3_value objects. (CVS 4879)

FossilOrigin-Name: 074ee55ffd1f0b7bb120a440d8bcf19e249ada96

17 years agoTest script changes that go with the coverage enhancements of the
drh [Tue, 18 Mar 2008 13:46:53 +0000 (13:46 +0000)] 
Test script changes that go with the coverage enhancements of the
previous check-in. (CVS 4878)

FossilOrigin-Name: f87ddf83a5d1340652f222972a7d75f4fdbe776b

17 years agoMinor test coverage enhancements. (CVS 4877)
drh [Tue, 18 Mar 2008 13:01:38 +0000 (13:01 +0000)] 
Minor test coverage enhancements. (CVS 4877)

FossilOrigin-Name: edd207b9a9df5d73ec34474a4e90fcb592f06cf1

17 years agoFix a memory leak introduced by the previous bug fix. (CVS 4876)
drh [Tue, 18 Mar 2008 00:54:22 +0000 (00:54 +0000)] 
Fix a memory leak introduced by the previous bug fix. (CVS 4876)

FossilOrigin-Name: b9c5dce34985f7e6d1b6314ae8674f07d0bf518b

17 years agoAdd the ability to simulate out-of-memory errors when using the default
drh [Tue, 18 Mar 2008 00:07:10 +0000 (00:07 +0000)] 
Add the ability to simulate out-of-memory errors when using the default
memory allocator, mem1.c.  Fix a bug that this enhancement revealed. (CVS 4875)

FossilOrigin-Name: d55a5e1c11ef90534abd2e5f18d06dd4739ade70

17 years agoVersion 3.5.7 (CVS 4874)
drh [Mon, 17 Mar 2008 19:03:03 +0000 (19:03 +0000)] 
Version 3.5.7 (CVS 4874)

FossilOrigin-Name: 9a6583d375a1b922e88eed888e54e51cbc85f400

17 years agoFix an uninitialized variable in the Prev and Next opcodes. (CVS 4873)
drh [Mon, 17 Mar 2008 17:18:37 +0000 (17:18 +0000)] 
Fix an uninitialized variable in the Prev and Next opcodes. (CVS 4873)

FossilOrigin-Name: fcf3d0a3d5d3a71155ab0aa5f533da72063d54f0

17 years agoAbandon the OR optimization following a memory allocation failure,
drh [Mon, 17 Mar 2008 17:08:33 +0000 (17:08 +0000)] 
Abandon the OR optimization following a memory allocation failure,
to avoid referencing uninitialized memory. (CVS 4872)

FossilOrigin-Name: 9d2afbb543e1493e1d9c2eb4329143bcb1ceca19

17 years agoDetect the failure to zero-terminate a result string due to a malloc
drh [Mon, 17 Mar 2008 16:54:01 +0000 (16:54 +0000)] 
Detect the failure to zero-terminate a result string due to a malloc
failure. (CVS 4871)

FossilOrigin-Name: 57db14067ff7d519291bebe695dcf991a9462372

17 years agoLabel test case bindxfer-1.9 as a misuse test case, since it is one. (CVS 4870)
drh [Mon, 17 Mar 2008 16:23:26 +0000 (16:23 +0000)] 
Label test case bindxfer-1.9 as a misuse test case, since it is one. (CVS 4870)

FossilOrigin-Name: 7b99122632f467cd0c34ad1a91e18fee8833980b

17 years agoModify the tableapi.test script so that it works under windows. (CVS 4869)
drh [Mon, 17 Mar 2008 15:09:47 +0000 (15:09 +0000)] 
Modify the tableapi.test script so that it works under windows. (CVS 4869)

FossilOrigin-Name: 89e06b4e083e7fd2c053c1cefc0063a5b772d7f8

17 years agoPut the statement journal in the temp-file directory since that
drh [Mon, 17 Mar 2008 13:50:58 +0000 (13:50 +0000)] 
Put the statement journal in the temp-file directory since that
directory is often on optimized storage such as RAM disk and because
unlike the main journal, the statement journal does not need to
be colocated with the database file. (CVS 4868)

FossilOrigin-Name: 72c40726932695a2cf5c593707d098c8fb6e8875

17 years agoReturn an error when an xBestIndex() method indicates that it intends to use the...
danielk1977 [Mon, 17 Mar 2008 09:36:44 +0000 (09:36 +0000)] 
Return an error when an xBestIndex() method indicates that it intends to use the value of an unusable constraint. Related to #2998. (CVS 4867)

FossilOrigin-Name: ffd470279540b1b8e3fdce6eb14001bae489b16d

17 years agoSkip tests that require setting detailed unix permissions on files when
drh [Sat, 15 Mar 2008 14:53:04 +0000 (14:53 +0000)] 
Skip tests that require setting detailed unix permissions on files when
running on filesystems such as AFP that do not support that capability. (CVS 4866)

FossilOrigin-Name: 5589b9d395fb8267a124d56dd5d7987e57505e3d

17 years agoAdd tests to make sure the busy handler resets. (CVS 4865)
drh [Sat, 15 Mar 2008 02:09:21 +0000 (02:09 +0000)] 
Add tests to make sure the busy handler resets. (CVS 4865)

FossilOrigin-Name: 5e4df441815ed7d02e9ad8ee2e1c2f937ee675d7

17 years agoReset the busy callback iteration counter at the beginning of each
drh [Fri, 14 Mar 2008 19:33:05 +0000 (19:33 +0000)] 
Reset the busy callback iteration counter at the beginning of each
lock test loop. (CVS 4864)

FossilOrigin-Name: 66777f048195e4242905c40f790ed7360af7028b

17 years agoChange an instance of intptr_t to sqlite3_intptr_t. (CVS 4863)
drh [Fri, 14 Mar 2008 19:17:54 +0000 (19:17 +0000)] 
Change an instance of intptr_t to sqlite3_intptr_t. (CVS 4863)

FossilOrigin-Name: 6db7186c304ed5e06afb207ce11ebc2a47e491b0

17 years agoRevise Bitvec struct sizing to prevent assertion failure on 64-bit systems (CVS 4862)
mlcreech [Fri, 14 Mar 2008 13:02:08 +0000 (13:02 +0000)] 
Revise Bitvec struct sizing to prevent assertion failure on 64-bit systems (CVS 4862)

FossilOrigin-Name: a3c12dbe95c8fb93f5b9006bf5d2c5b933fc5e87

17 years agoFix a second race condition in lock4.test. (CVS 4861)
danielk1977 [Fri, 14 Mar 2008 08:57:41 +0000 (08:57 +0000)] 
Fix a second race condition in lock4.test. (CVS 4861)

FossilOrigin-Name: e62858b9b8a12ecbad8037868d03469d27418377

17 years agoAllow the testfixture to be built even when using the amalgamation (CVS 4860)
mlcreech [Fri, 14 Mar 2008 04:11:03 +0000 (04:11 +0000)] 
Allow the testfixture to be built even when using the amalgamation (CVS 4860)

FossilOrigin-Name: 8a726e3731cd19cc52c6dab16d032d7237b7450b

17 years agoOne additional intptr_t conversion (in the same vein as check-in 4824) (CVS 4859)
mlcreech [Thu, 13 Mar 2008 23:34:38 +0000 (23:34 +0000)] 
One additional intptr_t conversion (in the same vein as check-in 4824) (CVS 4859)

FossilOrigin-Name: 2777ca788204c37ae5607f7acabe78f414255fa2

17 years agoApply patch for #2915 to add target extension for executables (CVS 4858)
mlcreech [Thu, 13 Mar 2008 23:28:22 +0000 (23:28 +0000)] 
Apply patch for #2915 to add target extension for executables (CVS 4858)

FossilOrigin-Name: 63fc7b72078b1e12de39893dc8374a7e24703d2e

17 years agoSpecify installation lib in 'rpath' options for sqlite3 executable (CVS 4857)
mlcreech [Thu, 13 Mar 2008 19:55:20 +0000 (19:55 +0000)] 
Specify installation lib in 'rpath' options for sqlite3 executable (CVS 4857)

FossilOrigin-Name: 5076d480337145f2e4b36798c6c13b9810f62721

17 years agoAdd/move files in Makefile.in to bring it more in line with main.mk (CVS 4856)
mlcreech [Thu, 13 Mar 2008 18:28:03 +0000 (18:28 +0000)] 
Add/move files in Makefile.in to bring it more in line with main.mk (CVS 4856)

FossilOrigin-Name: b57fc81c3d5f6c7091bdd37f8164887f990a5128

17 years agoEliminate a race condition from lock4.test. (CVS 4855)
danielk1977 [Thu, 13 Mar 2008 04:53:52 +0000 (04:53 +0000)] 
Eliminate a race condition from lock4.test. (CVS 4855)

FossilOrigin-Name: 85585f11049c4c3278dc2732676b0caa44cf1e9d

17 years agoDo not segfault after a parse error in a sub-select in a statement of the form "DELET...
danielk1977 [Wed, 12 Mar 2008 10:39:00 +0000 (10:39 +0000)] 
Do not segfault after a parse error in a sub-select in a statement of the form "DELETE WHERE ... IN(sub-select)". Ticket #2991. (CVS 4854)

FossilOrigin-Name: 3f9f81e908aad6cdc0a16ec52f4ec46d89fd78bc

17 years agoIf tclsh is not found, don't default to building the amalgamation (CVS 4853)
mlcreech [Tue, 11 Mar 2008 18:03:30 +0000 (18:03 +0000)] 
If tclsh is not found, don't default to building the amalgamation (CVS 4853)

FossilOrigin-Name: cbc0167556bd0abd16eb24d1c840ecbc530fd854

17 years agoIncrease the version number to 3.5.7 in anticipation of the next release. (CVS 4852)
drh [Tue, 11 Mar 2008 15:41:14 +0000 (15:41 +0000)] 
Increase the version number to 3.5.7 in anticipation of the next release. (CVS 4852)

FossilOrigin-Name: c85e97e4f0f02219b567e1ab2d4602c5680e7331

17 years agoRemove the #includes of stdlib.h and sys/types.h from sqliteInt.h since
drh [Mon, 10 Mar 2008 16:17:59 +0000 (16:17 +0000)] 
Remove the #includes of stdlib.h and sys/types.h from sqliteInt.h since
they are never used and because they broke the build. (CVS 4851)

FossilOrigin-Name: 2668000fc8e23a98fb3e104474032d6c70eeee38

17 years agoAdd explicit !=0 tests in order to suppress warning messages in
drh [Mon, 10 Mar 2008 14:12:53 +0000 (14:12 +0000)] 
Add explicit !=0 tests in order to suppress warning messages in
Borland-C.  Ticket #2985 (CVS 4850)

FossilOrigin-Name: d4ab14b974f2249d9d9e5a78ae47f3764a88b657

17 years agoFix for #2981 - specifically use "tclsh8.4" if it's available (CVS 4849)
mlcreech [Sun, 9 Mar 2008 02:51:10 +0000 (02:51 +0000)] 
Fix for #2981 - specifically use "tclsh8.4" if it's available (CVS 4849)

FossilOrigin-Name: 8ced1d6464585ea81227b31f7bfcd0874076aeaa

17 years agoFix for #1802, #2041, and #2270 - link libsqlite with -lrt (CVS 4848)
mlcreech [Sun, 9 Mar 2008 02:20:11 +0000 (02:20 +0000)] 
Fix for #1802, #2041, and #2270 - link libsqlite with -lrt (CVS 4848)

FossilOrigin-Name: ccd70a6ee495a02362161b4004597fa191d46bc2

17 years agoChange <sqlite3.h> to "sqlite3.h" in #includes (CVS 4847)
mlcreech [Sun, 9 Mar 2008 02:00:19 +0000 (02:00 +0000)] 
Change <sqlite3.h> to "sqlite3.h" in #includes (CVS 4847)

FossilOrigin-Name: 98e55fa4d32c4579d54b3a8cc26abdb3c8148e13

17 years agoUse autoconf to detect presence of gmtime_r() and localtime_r() (CVS 4846)
mlcreech [Sun, 9 Mar 2008 01:38:09 +0000 (01:38 +0000)] 
Use autoconf to detect presence of gmtime_r() and localtime_r() (CVS 4846)

FossilOrigin-Name: 9894d2ce418180b874406a7407e019dc872f289a

17 years agoReplace SQLITE_EXTERN with SQLITE_API in exported variables when generating
mlcreech [Sun, 9 Mar 2008 01:14:41 +0000 (01:14 +0000)] 
Replace SQLITE_EXTERN with SQLITE_API in exported variables when generating
the amalgamation.  Should fix #2982 (CVS 4845)

FossilOrigin-Name: f134c282ea841fe35f322a1f8c326242c6ad7b24

17 years agoClarify the language in the sqlite3_create_function() documentation.
drh [Sat, 8 Mar 2008 12:37:30 +0000 (12:37 +0000)] 
Clarify the language in the sqlite3_create_function() documentation.
Ticket #2980. (CVS 4844)

FossilOrigin-Name: 2db43738bfcd2db29167ff02f4291e74324225d7

17 years agoFix asserts in prepare.c to handle the misuse case of ppStmt==0. (CVS 4843)
drh [Sat, 8 Mar 2008 12:23:30 +0000 (12:23 +0000)] 
Fix asserts in prepare.c to handle the misuse case of ppStmt==0. (CVS 4843)

FossilOrigin-Name: 788b2c6b537809a496bf30550a12e743c1697eb7

17 years agoMove a comment within the Parse structure to make it more accurate. No actual code...
danielk1977 [Sat, 8 Mar 2008 06:16:29 +0000 (06:16 +0000)] 
Move a comment within the Parse structure to make it more accurate. No actual code changes. (CVS 4842)

FossilOrigin-Name: 0ca14399b19ee22870394065c5c6a136ea41418d

17 years agoMake sure all necessary mutexes are held prior to initializing the
drh [Fri, 7 Mar 2008 21:37:19 +0000 (21:37 +0000)] 
Make sure all necessary mutexes are held prior to initializing the
schema in sqlite3_table_column_metadata(). (CVS 4841)

FossilOrigin-Name: 4996ff93573c69b51eb7b1348058f85e6cb2728a

17 years agoFix an alignment problem in test_async.c. (CVS 4840)
drh [Fri, 7 Mar 2008 21:04:02 +0000 (21:04 +0000)] 
Fix an alignment problem in test_async.c. (CVS 4840)

FossilOrigin-Name: 752d8e21bb250d7df58a3abc945fcd7a3b38ad15

17 years agoAnother fix to the OsUnlock I/O error logic. (CVS 4839)
drh [Fri, 7 Mar 2008 20:14:38 +0000 (20:14 +0000)] 
Another fix to the OsUnlock I/O error logic. (CVS 4839)

FossilOrigin-Name: 22bd537ee2af6779ecb38502513ae533f85f7c2e

17 years agoCorrectly handle I/O errors that occur during OsUnlock(). Before this
drh [Fri, 7 Mar 2008 19:51:14 +0000 (19:51 +0000)] 
Correctly handle I/O errors that occur during OsUnlock().  Before this
fix, an I/O error during OsUnlock() could lead to database corruption.
That is not a serious problem, though, since errors during OsUnlock()
are not possible on most systems. (CVS 4838)

FossilOrigin-Name: b4c1258edb4a40501d13c9da674d0366d5a8c694

17 years agoCleanup the locking-style code in os_unix.c. (CVS 4837)
drh [Fri, 7 Mar 2008 15:34:11 +0000 (15:34 +0000)] 
Cleanup the locking-style code in os_unix.c. (CVS 4837)

FossilOrigin-Name: 40f55c09dbd31f861b9f9c7641cce92553d94e35

17 years agoTrivial documentation fixes (CVS 4836)
mlcreech [Fri, 7 Mar 2008 03:20:31 +0000 (03:20 +0000)] 
Trivial documentation fixes (CVS 4836)

FossilOrigin-Name: 9819cefbd7032fe6884c6c891e8e399000e0821f

17 years agoAdd missing prefix & exec_prefix to Makefile - fixes #2979. (CVS 4835)
mlcreech [Fri, 7 Mar 2008 02:20:56 +0000 (02:20 +0000)] 
Add missing prefix & exec_prefix to Makefile - fixes #2979. (CVS 4835)

FossilOrigin-Name: 4cda019b63e8ba9f1101fb296a7d745c69e84e00

17 years agoUpdates to the locking-style code in os_unix.c. Not yet working. (CVS 4834)
drh [Fri, 7 Mar 2008 00:27:10 +0000 (00:27 +0000)] 
Updates to the locking-style code in os_unix.c.  Not yet working. (CVS 4834)

FossilOrigin-Name: 6ebce3b798c60050fb3c583d805570bb06837108

17 years agoClean up recent autoconf-related additions, add config.h to the amalgamation (CVS...
mlcreech [Thu, 6 Mar 2008 16:28:58 +0000 (16:28 +0000)] 
Clean up recent autoconf-related additions, add config.h to the amalgamation (CVS 4833)

FossilOrigin-Name: 8044623062e9aa43593c46e3e5d5bc7361ea7418

17 years agoHandle non-autoconf build correctly with new changes (CVS 4832)
mlcreech [Thu, 6 Mar 2008 09:58:50 +0000 (09:58 +0000)] 
Handle non-autoconf build correctly with new changes (CVS 4832)

FossilOrigin-Name: e2a9f5f1054f077e4773dd3d2c8f2ce5be118a01

17 years agoTypo in amalgamation non-x86 builds (CVS 4831)
mlcreech [Thu, 6 Mar 2008 09:19:00 +0000 (09:19 +0000)] 
Typo in amalgamation non-x86 builds (CVS 4831)

FossilOrigin-Name: a8424e06064ee356db8231820737a7d5ba722873

17 years agoDon't try and include common.h on stand-alone amalgamation builds (CVS 4830)
mlcreech [Thu, 6 Mar 2008 09:16:24 +0000 (09:16 +0000)] 
Don't try and include common.h on stand-alone amalgamation builds (CVS 4830)

FossilOrigin-Name: 9898320be05cdbe78dac799f3fef34dccb644ca8

17 years agoRemove amalgamation on "make clean" (fixes #2559) (CVS 4829)
mlcreech [Thu, 6 Mar 2008 09:03:20 +0000 (09:03 +0000)] 
Remove amalgamation on "make clean" (fixes #2559) (CVS 4829)

FossilOrigin-Name: e03802f362307ee91fcecaeab6b8f3b43a61d4ca

17 years agoMiscellaneous autoconf cleanups - get rid of TARGET_CFLAGS, fix header list (CVS...
mlcreech [Thu, 6 Mar 2008 08:54:38 +0000 (08:54 +0000)] 
Miscellaneous autoconf cleanups - get rid of TARGET_CFLAGS, fix header list (CVS 4828)

FossilOrigin-Name: a674f76db9035375772706b6ff1cfaa2a459ffb0

17 years agoRespect user's configured bindir/libdir/includedir if present (fixes #558) (CVS 4827)
mlcreech [Thu, 6 Mar 2008 08:09:12 +0000 (08:09 +0000)] 
Respect user's configured bindir/libdir/includedir if present (fixes #558) (CVS 4827)

FossilOrigin-Name: 48c9fa97b9d9000f6fba5adb04c1026b162eb3ab

17 years agoActually use TARGET_CFLAGS on autoconf-driven builds (CVS 4826)
mlcreech [Thu, 6 Mar 2008 07:51:15 +0000 (07:51 +0000)] 
Actually use TARGET_CFLAGS on autoconf-driven builds (CVS 4826)

FossilOrigin-Name: dda3d658998b00748f0e7693b3756d45400e8c8a

17 years agoAdd headers for use with autoconf (missing from previous checkin) (CVS 4825)
mlcreech [Thu, 6 Mar 2008 07:36:18 +0000 (07:36 +0000)] 
Add headers for use with autoconf (missing from previous checkin) (CVS 4825)

FossilOrigin-Name: 4513a5f493bb612134d04685c0d6777e0d5c65bc

17 years agoUse intptr_t definition to silence warnings about ptr-int casts (CVS 4824)
mlcreech [Thu, 6 Mar 2008 07:35:21 +0000 (07:35 +0000)] 
Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824)

FossilOrigin-Name: 54839a84e6ce080ea8a0f6ce32acaa053d20f311

17 years agoInclude inttypes.h when available, add support for intptr_t (CVS 4823)
mlcreech [Thu, 6 Mar 2008 07:19:20 +0000 (07:19 +0000)] 
Include inttypes.h when available, add support for intptr_t (CVS 4823)

FossilOrigin-Name: 88698fbdd5387b195e1c04c0c597f3c7458757c5

17 years agoMake extension loading more easily configurable. Fixes #2977 (CVS 4822)
mlcreech [Thu, 6 Mar 2008 04:14:17 +0000 (04:14 +0000)] 
Make extension loading more easily configurable.  Fixes #2977 (CVS 4822)

FossilOrigin-Name: fc401ad9d1c62db136ad4a1c931381aff047e164

17 years agoMake extension loading more easily configurable. Fixes #2977 (CVS 4821)
mlcreech [Thu, 6 Mar 2008 04:14:17 +0000 (04:14 +0000)] 
Make extension loading more easily configurable.  Fixes #2977 (CVS 4821)

FossilOrigin-Name: 2a2e8b64df3ff9ea5831b226984ab2c85771131e

17 years agoBuild amalgamation by default on autoconf-driven builds, add
mlcreech [Tue, 4 Mar 2008 19:03:08 +0000 (19:03 +0000)] 
Build amalgamation by default on autoconf-driven builds, add
--disable-amalgamation option to configure script (CVS 4820)

FossilOrigin-Name: f9391fa06f22aea5c6af9e1c76d7f5404483189a

17 years agoVarious renames & cleanups to limit exported symbols on amalgamation build (CVS 4819)
mlcreech [Tue, 4 Mar 2008 17:45:01 +0000 (17:45 +0000)] 
Various renames & cleanups to limit exported symbols on amalgamation build (CVS 4819)

FossilOrigin-Name: 9c6694bb61a8ecdbfb2d05e5e05a8cc97b792240

17 years agoAdditional documentation and tests making it clear that whenever
drh [Mon, 3 Mar 2008 18:47:28 +0000 (18:47 +0000)] 
Additional documentation and tests making it clear that whenever
sqlite3_prepare() fails it sets *ppStmt to NULL. (CVS 4818)

FossilOrigin-Name: 39769f00c5d9ea20ad5d1c0569464529e953fa9d

17 years agoAdd fts2/3 files to autoconf-generated Makefile (needed for amalgamation) (CVS 4817)
mlcreech [Sun, 2 Mar 2008 05:40:05 +0000 (05:40 +0000)] 
Add fts2/3 files to autoconf-generated Makefile (needed for amalgamation) (CVS 4817)

FossilOrigin-Name: 89666f94906c0ad651a444800dcf8ac886fe0c22

17 years agoAdd mem5.c to source files in autoconf-generated Makefile (CVS 4816)
mlcreech [Sun, 2 Mar 2008 05:34:10 +0000 (05:34 +0000)] 
Add mem5.c to source files in autoconf-generated Makefile (CVS 4816)

FossilOrigin-Name: 8c1b6357f0bc86645017913e8b6ea8e82473f7df

17 years agoTrivial text cleanups (CVS 4815)
mlcreech [Sun, 2 Mar 2008 03:32:05 +0000 (03:32 +0000)] 
Trivial text cleanups (CVS 4815)

FossilOrigin-Name: bbf9f0e6e23ce6c2729843535b8599c7bacb0f83

17 years agoFix typo for #2968 (CVS 4814)
mlcreech [Sat, 1 Mar 2008 23:34:46 +0000 (23:34 +0000)] 
Fix typo for #2968 (CVS 4814)

FossilOrigin-Name: d1f6b243822c0dcbc4acf153e682b841cf6c22c2