Commit Graph

262 Commits

Author SHA1 Message Date
drh
c60d04464f Allow functions to be created when there are outstanding VMs.
(Ticket #926)  Fix problems with sqlite3_errcode().  Add tests for
sqlite3_errcode(). (CVS 1989)

FossilOrigin-Name: d0f1dc5898382258b283308c2cce55a8bc378ee4
2004-09-30 13:43:13 +00:00
drh
ae29ffbe23 Code cleanup: get rid of the sqlite3SetNString utility function. (CVS 1984)
FossilOrigin-Name: 9ef4c24a9acc2128891303de1ffd2ef4509d779c
2004-09-25 14:39:18 +00:00
drh
c16a03b54b The callback on sqlite3_trace() is invoked the first time sqlite3_step()
is called after sqlite3_prepare() or sqlite3_reset().  Ticket #900. (CVS 1960)

FossilOrigin-Name: 0cc2f40e6afa157ead45140c4e28a9a33c469b73
2004-09-15 13:38:10 +00:00
drh
9bb575fd72 Fix a naming conflict between sqlite versions 2 and 3. An open sqlite3
connection now *must* be called "sqlite3".  You cannot call it "sqlite".
This might break existing code. (CVS 1941)

FossilOrigin-Name: 3ddf5a9d1c480a2e3aa32685879063b11afddbe1
2004-09-06 17:24:11 +00:00
drh
c44af71c08 Address some minor 32/64 bit issues. (CVS 1932)
FossilOrigin-Name: 6c9be972c1c289b657ba87db8db08fceb89b0171
2004-09-02 15:53:56 +00:00
drh
92f02c31d4 Transactions commit on the last sqlite3_step(), not on sqlite3_finalize().
This allows the sqlite3_step() to return SQLITE_BUSY if the commit is
blocked by a lock.  Ticket #885. (CVS 1928)

FossilOrigin-Name: d1b29156558f1c576002cdb2544dffaa693da39b
2004-09-02 14:57:08 +00:00
drh
208f80a7d4 Fix a bug in the NOCASE collating function. (CVS 1917)
FossilOrigin-Name: 32c2974af67abbbfa75c46afdab59ea6d5c15beb
2004-08-29 20:08:58 +00:00
drh
4aec8b65c7 Add the sqlite3_libversion() API (ticket #834). Fix the build scripts to
correctly build the shared libraries with version 8.4 of Tcl. (CVS 1908)

FossilOrigin-Name: 6db26a19ea7ac77be41a7416dedaef1b9dfd9e16
2004-08-28 16:19:00 +00:00
drh
1bcdb0c0b2 Add new defenses against misuse of the C API. Ticket #870. (CVS 1906)
FossilOrigin-Name: 6ef1f662d71c75bdb7f61b2fff03f5b1b41e5586
2004-08-28 14:49:46 +00:00
drh
290c19482e Optimizations to the code generator. (CVS 1899)
FossilOrigin-Name: bd6649c5aae1bf182610eb267b546c297a34481d
2004-08-21 17:54:45 +00:00
drh
dc3ff9c34c Avoid creating a TEMP database unless it is absolutely necessary. (CVS 1890)
FossilOrigin-Name: 5914a11caa4c6e778cd7ca010427897c8f971552
2004-08-18 02:10:15 +00:00
drh
ae15787643 If meta(3)>0 then make the database readonly for now. This allows the current
database to interact with future releases that might include autovacuum. (CVS 1888)

FossilOrigin-Name: 7619bf4771781005da23a3e9d7b00de405e27a64
2004-08-14 19:20:09 +00:00
drh
22ac46d15d Fix a bug that was preventing "PRAGMA temp_store=MEMORY" from working. (CVS 1887)
FossilOrigin-Name: bb55894521848b6a9d8b516a3c7eeb3482936d7e
2004-08-14 18:34:54 +00:00
drh
feac5f8dbc Add the ".import" command to the command-line shell. (CVS 1873)
FossilOrigin-Name: b56afe640f7f3f2837120e3dd923c529c4a3123a
2004-08-01 00:10:45 +00:00
drh
3f7d4e49d8 Fix more problems with deferred execution of CREATE. Still need to do DROP.
There is now a memory leak. (CVS 1865)

FossilOrigin-Name: 6db3f122aad25b5226670ce682b7263d55c0d301
2004-07-24 14:35:58 +00:00
drh
234c39dff7 Progress towards getting prepared statements and CREATE and DROP to play
nicely together.  Work is incomplete.  Some tests are known to fail. (CVS 1864)

FossilOrigin-Name: 49b991492496e104f5eca620a5d465a742b7ff3a
2004-07-24 03:30:47 +00:00
drh
90f5ecb39d Initial implementation of variable page sizes and the temp_store pragma. (CVS 1843)
FossilOrigin-Name: 4cf6e9db757931aba2f300b7869305434d6f2d2b
2004-07-22 01:19:35 +00:00
drh
c275b4ea91 Store schema cookies on the TEMP database. Ticket #807. (CVS 1817)
FossilOrigin-Name: c6c13dc460094e6adea2b14849edf9f485238b99
2004-07-19 17:25:24 +00:00
danielk1977
13073931a3 Coverage improvements for malloc and vdbemem.c (CVS 1781)
FossilOrigin-Name: a98dd004c4d328eb44a71fecdbf8c5ab416dc524
2004-06-30 11:54:06 +00:00
danielk1977
96fb0dd55a Coverage tests for vacuum.c (CVS 1776)
FossilOrigin-Name: 152e9940b919a53fcd0da4091dbf75ab8ef15b38
2004-06-30 09:49:22 +00:00
danielk1977
312d6b36e3 Test cases intended to improve coverage of main.c. (CVS 1763)
FossilOrigin-Name: 15a084e9ea14d093f75c54a321f146c18f4453d7
2004-06-29 13:18:23 +00:00
drh
b97759ed11 Add testing for sqlite3_trace() and fix a bug. (CVS 1760)
FossilOrigin-Name: 7a15391079ae9ce5360fa13e8779c8872885e789
2004-06-29 11:26:59 +00:00
drh
ef0715c20a Do not set new error messages after a malloc failure. (CVS 1758)
FossilOrigin-Name: f46251ee0a654e9aa927df31968f7792f771caa9
2004-06-29 10:53:54 +00:00
danielk1977
8a41449ecc Fix error reporting path for errors that occur while reading the database
schema. (CVS 1757)

FossilOrigin-Name: 157db33e09399f31bcdaf58ea90fe618fefcd9bd
2004-06-29 08:59:35 +00:00
danielk1977
2b444853e0 Bug-fixes to get the two threadtest C programs working again. (CVS 1756)
FossilOrigin-Name: ffd3312b66e2657c3431eab814aadec254af2403
2004-06-29 07:45:33 +00:00
danielk1977
e0d4b060db Fix a bunch of harmless warnings. (CVS 1749)
FossilOrigin-Name: fae7c6e004aa4752fd3db09a42bfdb900861b3c0
2004-06-28 01:11:46 +00:00
danielk1977
b2c7f5b31e Fix error message returned when a database cannot be opened. (CVS 1739)
FossilOrigin-Name: 440bfd2ac57d228d10913aca81ca8c6d7f38aa61
2004-06-26 10:02:16 +00:00
danielk1977
e35ee196dc Minor fixes related to the tests in misuse.test (CVS 1738)
FossilOrigin-Name: 0af3ff39422e02afdfdaf2005ab5eb01b496dc72
2004-06-26 09:50:11 +00:00
danielk1977
91cf71b01f Remove default_synchronous and temp_store pragmas. Allow the safety-level
and cache-size to be set for attached databases. (CVS 1735)

FossilOrigin-Name: 212de3ce66f746036cb2267a9f924fd55fa2f37a
2004-06-26 06:37:06 +00:00
drh
efad99959b Patch around compilers that do not support "long long int". (CVS 1656)
FossilOrigin-Name: d98b1502e2947d24ab9f4a5d2e5b9a95dde92faf
2004-06-22 12:13:55 +00:00
danielk1977
9e6db7d70f Ensure sqlite3ErrorMsg() is used to report errors during compilation,
sqlite3Error() during execution. Also remove unused param from
sqlite3VdbeReset() and Finalize(). (CVS 1647)

FossilOrigin-Name: 7a33daef5b49b1f2d89f27e0063372fe4f1702c8
2004-06-21 08:18:51 +00:00
danielk1977
b28af71a22 Update sqlite3_changes() to match the documentation and add
sqlite3_total_changes(). (CVS 1645)

FossilOrigin-Name: ae2f4a0943854fedbbb6fab1dc3aaf972722ed95
2004-06-21 06:50:26 +00:00
danielk1977
ec8450f6cb Remove the unused 'next_cookie' mechanism. (CVS 1634)
FossilOrigin-Name: c94a9759ca6346a8c32f388a7aa1f0f139d6abc2
2004-06-19 09:35:36 +00:00
danielk1977
f9d64d2c30 Remove the iCollate argument from sqlite3_create_function() (CVS 1632)
FossilOrigin-Name: 728d57ff5517a51c3aad4ba95525b1aa2065bd19
2004-06-19 08:18:07 +00:00
danielk1977
96d81f99d4 Update sqlite3_close() API to match documentation. (CVS 1630)
FossilOrigin-Name: 61819740fe8916892afe502196bb8b75a51f81e8
2004-06-19 03:33:57 +00:00
danielk1977
d008cfe305 Fix for #764. When reloading the schema, load the temp schema last. (CVS 1628)
FossilOrigin-Name: 1f43219a7402af7255743466731dba2afb31d12b
2004-06-19 02:22:10 +00:00
drh
38f8271f81 Changes to allow libsqlite3.a and libsqlite.a to be both linked into the
same program at the same time. (CVS 1621)

FossilOrigin-Name: 2590fffcaa92adc619f7a927d2b5169d8dfef50a
2004-06-18 17:10:16 +00:00
danielk1977
bfd6cce56b Optimisation for unicode encoding conversion routines. (CVS 1614)
FossilOrigin-Name: 39a415eaa65964742e40b7ea4d471fa04007c6c9
2004-06-18 04:24:54 +00:00
danielk1977
cfe9a69f90 Trivial modifications to prevent compiler warnings. (CVS 1606)
FossilOrigin-Name: 6001c5e1ced08096bb404e72ff533b7edcc896ec
2004-06-16 12:00:29 +00:00
danielk1977
5c4c77878d Fix handling of a failed malloc() in various places (CVS 1604)
FossilOrigin-Name: 7d8edce4c12d075acbc6bac6758aabb2769f983a
2004-06-16 10:39:23 +00:00
danielk1977
e00484002f Assorted memory leak fixes. (CVS 1600)
FossilOrigin-Name: 07b90f3690768e852384fbbde0ba59e69e24d1da
2004-06-15 16:51:01 +00:00
danielk1977
b20e56b451 Memory leak fixes for tests in file select1.test. (CVS 1599)
FossilOrigin-Name: 59db58ebd30cd7c79c32f5a725620e740eff661d
2004-06-15 13:36:30 +00:00
danielk1977
962398d395 Ensure master journal file is deleted when a transaction is committed. (CVS 1586)
FossilOrigin-Name: cb3cbe00be9a42e974688016a056053cedb55eef
2004-06-14 09:35:16 +00:00
drh
59eb676017 os_win.c is now working with the new locking protocol. (CVS 1581)
FossilOrigin-Name: 77c5eaa10a9d2e2bb8f89b7434d6e6efbacf35e9
2004-06-13 23:07:04 +00:00
danielk1977
d8123366c4 (1) Modifications to the user-function interface and (2) Internal changes
to automatically created indices. (CVS 1575)

FossilOrigin-Name: 5903f53828b5d282b33e27813417e4317c9ecf0b
2004-06-12 09:25:12 +00:00
danielk1977
2a764eb0cd Change prototype for busy callbacks to "int xBusy(void *, int);" (CVS 1573)
FossilOrigin-Name: 4f1cfca5ca703d0068cf8d6222dc8e0cfb7e24b6
2004-06-12 01:43:26 +00:00
danielk1977
dc8453fd7a Use the SQLITE_UTF* symbols instead of the old internal TEXT_Utf* symbols. (CVS 1572)
FossilOrigin-Name: 9b84f2f488e1d37ba1a4c4cf31490bcbba0f6edd
2004-06-12 00:42:34 +00:00
danielk1977
dc1bdc4f9d Fix various collation sequence issues. (CVS 1568)
FossilOrigin-Name: 66835ee67051027456a536e33b2f88a741654525
2004-06-11 10:51:27 +00:00
danielk1977
7cedc8d4d6 Add the sqlite3_collation_needed() API and fix some error handling cases
involving unknown collation sequences. (CVS 1562)

FossilOrigin-Name: edf069b9f4044ed2a80962c7722052bf1b80bf45
2004-06-10 10:50:08 +00:00
danielk1977
466be56bcf Change the collation sequence interface to allow collation sequences that
use UTF-16 in non-native byte order to be registered. (CVS 1559)

FossilOrigin-Name: b8aaa3a29e0ddef357ab1b3b0b9f87ed390f2f36
2004-06-10 02:16:01 +00:00