drh
e0e5ef1471
Remove the restriction that a transaction cannot be started by one linuxthread
...
and continued by another. Leave in the documentation the warning about not
carrying a database connection across fork() but do not test for it any more.
Ticket #130 . (CVS 701)
FossilOrigin-Name: bdbdb866f2e76abd1f8f545adadc9a900ed0cd1a
2002-08-02 10:36:09 +00:00
drh
f573c99ba7
Fix for ticket #104 : Make triggers on views work properly even after closing
...
and reopening the database. Also fixed an unrelated bug in the version
2.6.0 database format upgrade logic. The upgrade logic bug was found while
testing the trigger fixes. (CVS 697)
FossilOrigin-Name: 04973fc2a6a0c93877de7e564618e0e9fcffc06c
2002-07-31 00:32:50 +00:00
drh
92ed08a9d7
Fix for ticket #114 : Correctly handle SQLITE_BUSY if it occurs during
...
database initialization. (CVS 696)
FossilOrigin-Name: 5b814b5df667ccc91d85fbb7f96e523483e9219b
2002-07-30 18:43:40 +00:00
drh
096c497eb3
Rig the ident string so that it is not changed by RCS on checkin. (CVS 692)
...
FossilOrigin-Name: 773d36c8d94bdcd0c78401282e48432ddd9b61d6
2002-07-19 19:03:41 +00:00
drh
26b3e1bc06
Fix an assertion failure that occurs when attempting to delete all rows of
...
a table while the "count_changes" pragma is turned on. Up the version number
to 2.6.1. (CVS 690)
FossilOrigin-Name: 612df004017b241651074ee859096dd0ee5062b8
2002-07-19 18:52:40 +00:00
drh
426cc56a6b
Add static ident strings (such as picked up by the RCS "ident" command)
...
containing the library version number. (CVS 689)
FossilOrigin-Name: 712ee3914e988f0077e9a3d6170ff8db496a9600
2002-07-19 18:13:35 +00:00
drh
c231172f3f
Better detection and reporting of errors when initializing from the
...
sqlite_master table. (CVS 688)
FossilOrigin-Name: c8a7b725b7cec792d2148455a4cecbce9dfebe80
2002-07-19 17:46:38 +00:00
drh
8e5ba84643
Make the automatic database upgrade work even if there are triggers. Add
...
tests for automatic upgrade and for failing if reading a more advanced version
of the database. Ticket #107 . (CVS 682)
FossilOrigin-Name: 0493e39c1cbbe4a38e990a2370181a79606af222
2002-07-18 01:27:17 +00:00
drh
491791a827
Fix for ticket #107 : Fix a design defect in indices that was causing queries
...
to fail when using an index on a column containing an empty string. This
fix is an incompatible file-format change. (CVS 681)
FossilOrigin-Name: 20d152fcddb4fa53556a9c93c7a869600a7c5183
2002-07-18 00:34:09 +00:00
drh
70562cd342
Partial fix for ticket #96 : Return SQLITE_MISUSE from sqlite_exec() if called
...
from a child process with an active transaction that was started in the parent. (CVS 675)
FossilOrigin-Name: 72a609ec6492e7d740b6e6184fa14a5e6b04a5dc
2002-07-13 17:23:21 +00:00
drh
411995dc0d
Add the sqlite_open_aux_file() API. (CVS 646)
...
FossilOrigin-Name: 332164d6455658ca633a1dc49811d9fb0fd4b01c
2002-06-25 19:31:18 +00:00
drh
e0bc4048a0
Added support for the "sqlite_temp_master" table. Increased the version
...
number to 2.5.2. (CVS 640)
FossilOrigin-Name: 9c1432bf7485258e485bd652e3acdaeabbfe8850
2002-06-25 01:09:11 +00:00
drh
f46f905a1e
An optimization: avoid the use of an intermediate table on UNION ALL if there
...
is no ORDER BY clause. (CVS 637)
FossilOrigin-Name: 8aa73ce61268a50d353d9a5c878461290195525f
2002-06-22 02:33:38 +00:00
drh
bb3a6dbd2e
Fix for ticket #78 : Avoid an assertion failure when sqlite_close() to be
...
called in the middle of a transaction. (CVS 634)
FossilOrigin-Name: 2532792a5875f9cc0f7d8eaf90dd49d1f6025ca3
2002-06-21 11:55:48 +00:00
drh
c9b84a1fb1
This patch contains the beginnings of the data-typing infrastructure.
...
The new build-in TypeOf() function is added. New opcodes for doing
pure text comparisons are added. Most changes are disabled pending
the 2.6.0 release. (CVS 632)
FossilOrigin-Name: cbbc858d973c2d515c6a2464981316549a241b73
2002-06-20 11:36:48 +00:00
drh
e0140fc13a
Expose an additional internal API routine (sqliteInitCallback()) for
...
use by private code. (CVS 624)
FossilOrigin-Name: cd74495f995803eeb5c2b900d536deb52e5584eb
2002-06-16 18:21:44 +00:00
drh
c67980bedc
Fix for bug #72 : Make sure the file descriptors are properly closed if
...
sqliteInit() fails for any reason. (CVS 617)
FossilOrigin-Name: e67ac0fec51788aca0429d04310f86c9c1cf9d13
2002-06-14 20:54:14 +00:00
drh
28f4b6885b
Fix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613)
...
FossilOrigin-Name: 74d297d97e66452acc5c21048ee8ddf2a90c846f
2002-06-09 10:14:18 +00:00
drh
0b4efed236
Fix for ticket #50 . (CVS 582)
...
FossilOrigin-Name: 82b74a494ac7c751a13e67dcfa7fffb1b98ec808
2002-05-23 13:15:37 +00:00
drh
e4697f5e90
Fix some places where a malloc() failure would lead to a segfault. (CVS 580)
...
FossilOrigin-Name: 01ad352c3c82a86d9c94010cbc85d098b8fbc08a
2002-05-23 02:09:03 +00:00
danielk1977
f29ce55958
Style fixes to triggers code in various *.c files (partial fix to ticket #39 ) (CVS 571)
...
FossilOrigin-Name: 8a4195c7466962291a296e8f53034ea8cb25005f
2002-05-19 23:43:12 +00:00
drh
ce9079c8f2
Fix for ticket #41 : Better handling of CREATE TRIGGER in the sqlite_complete()
...
function. (CVS 567)
FossilOrigin-Name: f45c4b767a6b1451787836060235ff7499dea0de
2002-05-15 14:17:44 +00:00
drh
9adf9ac4e4
Remove all tabs from the beginning of source code lines. Replace tabs with
...
the appropriate number of spaces. (CVS 565)
FossilOrigin-Name: 690f9a163173c4c7af7e8e92e942cee4184c7974
2002-05-15 11:44:13 +00:00
danielk1977
c3f9bad209
Added FOR EACH ROW triggers functionality (CVS 562)
...
FossilOrigin-Name: 794bf67b6b36fce8854d5daff12f21dbb943240c
2002-05-15 08:30:12 +00:00
drh
c22bd47d55
Improvements to the SQLITE_MISUSE detection logic. Also added test cases
...
for this logic, including the new test file "misuse.test". (CVS 559)
FossilOrigin-Name: f42907ce457e012592f8c043dc6c915e87258b35
2002-05-10 13:14:07 +00:00
drh
247be43d60
Attempt to detect when two or more threads try to use the same database at
...
the same time and return an SQLITE_MISUSE error. Also return this error
if an attempt is made to use a closed database. (CVS 558)
FossilOrigin-Name: a05fabd2df1cb38c555a7b2f31b0ca687db500c2
2002-05-10 05:44:55 +00:00
drh
c8d30ac109
Fix for bug #15 : Add the sqlite_changes() API function for retrieving the
...
number of rows that changed in the previous operation. (CVS 526)
FossilOrigin-Name: 6e71493b9dc77d508c3ce90562766789e87e6d80
2002-04-12 10:08:59 +00:00
drh
cd61c2816f
Added the default_cache_size and default_synchronous pragmas. Added additional
...
tests for pragmas. Added a new speedtest script. (CVS 421)
FossilOrigin-Name: 161c0c5f5db66815e4345c9b5f7a600c03a67475
2002-03-06 22:01:34 +00:00
drh
603240cf5d
Add the ability to turn of calls to fsync() using the "synchronous" pragma.
...
Increased the default cache size from 100 to 2000 and made the "cache_size"
pragma persistent. (CVS 418)
FossilOrigin-Name: 414da4af1f4aebc3936ca339fbc7932add081912
2002-03-05 01:11:12 +00:00
drh
0bce8354b4
Completely remove the old SQL function system and replace it with the
...
new user functions. The code currently compiles but it coredumps on the
test suite. Do not use in its present state. (CVS 400)
FossilOrigin-Name: 50797fee5066ec9ea23b720e5ab7e8fc8ccc1988
2002-02-28 00:41:10 +00:00
drh
1350b030c1
Revise the API for user-defined functions. (CVS 398)
...
FossilOrigin-Name: 633951f0fa11c91f93aa2862df84691750c01e73
2002-02-27 19:00:20 +00:00
drh
4e0f995347
The user-defined function routines failed to detect a malloc() failure. (CVS 397)
...
FossilOrigin-Name: 085b0d671a1dac964693d69d866224de155dfe4c
2002-02-27 01:53:13 +00:00
drh
dc04c58360
Move the build-in function definitions into a new source file "func.c". (CVS 391)
...
FossilOrigin-Name: 530b0f4f2def89e200b7b0724a5967bf981bd91d
2002-02-24 01:55:15 +00:00
drh
8e0a2f903a
Added support for user-defined normal functions. Support for user-defined
...
aggregates is pending. (CVS 390)
FossilOrigin-Name: c490a1ff951c5d4a2de8e4f8d349189bfaef7f74
2002-02-23 23:45:45 +00:00
drh
17f7193434
Change the SQLITE_MASTER format to version 2 in preparation for adding views. (CVS 386)
...
FossilOrigin-Name: b2a9807fed544e83002366149b9a363759338c5d
2002-02-21 12:01:27 +00:00
drh
5cf8e8c7fa
New ROWIDs are numbered sequentially. (CVS 383)
...
FossilOrigin-Name: 1686196a8aea326f616bc8205df99cd84d955ec4
2002-02-19 22:42:05 +00:00
drh
969fa7c128
Add support for CREATE TABLE AS. (CVS 377)
...
FossilOrigin-Name: 78a50971e9adc8739e7888201c79465a40e1a152
2002-02-18 18:30:32 +00:00
drh
fa86c4127d
Checkpoint code added to the pager. Regression tests work but the new APIs
...
have not been tested yet. (CVS 361)
FossilOrigin-Name: aaa53e113ef849e34883ead8ae584c722ad967db
2002-02-02 15:01:15 +00:00
drh
1c92853dac
Change to five conflict resolution algorithms: ROLLBACK, ABORT, FAIL,
...
IGNORE, and REPLACE. This checkin is code only. Documentation and
tests are still needed. Also, ABORT is not fully implemented. (CVS 360)
FossilOrigin-Name: d0e7cf4a83e6abad7129bed356b7492dddaff474
2002-01-31 15:54:21 +00:00
drh
af9ff33ac1
Added the last_insert_rowid API function. Improved documentation of
...
the random ROWID algorithm. (CVS 349)
FossilOrigin-Name: f74d61aaf3fec06cde2c4a6f1465f86ac9058ad2
2002-01-16 21:00:27 +00:00
drh
da9e034610
Fix a problem with the way temporary tables mask permanent tables. (CVS 345)
...
FossilOrigin-Name: ba89da603135e5f63f6f97ba3adad02682375c07
2002-01-10 14:31:48 +00:00
drh
74e24cd0fa
Working on a bug: Dropping and recreating a table within a transaction
...
causes an assertion failure. (CVS 342)
FossilOrigin-Name: b3656a5cfef91c89de2cbb9790087d0d53c03e6f
2002-01-09 03:19:59 +00:00
drh
aacc543e23
Comment updates most. Also some small changes to the VDBE. (CVS 339)
...
FossilOrigin-Name: 9b0be4fcc1cbca69f5fee906f86dfb36a323fe84
2002-01-06 17:07:40 +00:00
drh
4a32431ce7
Added support for the INTEGER PRIMARY KEY column type. (CVS 333)
...
FossilOrigin-Name: 236a54d289e858a1e0505a20d907a2a40c01b521
2001-12-21 14:30:42 +00:00
drh
b8ca307e7b
Bug fix: sqlite_exec() would sometimes return SQLITE_PROTOCOL when it
...
should have returned SQLITE_BUSY. There was also a deadlock that the
previous bug was masking. (CVS 322)
FossilOrigin-Name: 585ed5ebf1c1afc8ae1d569b121208018d8ecd49
2001-12-05 00:21:20 +00:00
drh
f5bf0a78be
Fix a bug in DROP TABLE that could cause SQLITE_MASTER table corruption.
...
The root problem was that the sequence of BTree operations (Delete, Next)
would not always leave the cursor pointing at the first entry after the
entry that was deleted. A consequence of this error was that a DROP TABLE
on a table with indices would not always remove every index associated
with that table from the SQLITE_MASTER table. Subsequent attempts to
open the database will fail when the index for the missing table was
parsed. Changes have also been made to ignore extra indices in the
SQLITE_MASTER table so that a database previously corrupted by this bug
is once again readable. (CVS 316)
FossilOrigin-Name: 8a984667113564f2bac7412165b6ff8b7e3e8f70
2001-11-23 00:24:12 +00:00
drh
6b56344d4a
New Next opcode and indexing style implemented. (CVS 304)
...
FossilOrigin-Name: decbeb9151885fee473b3fa58c8cf78a2338d2d8
2001-11-07 16:48:26 +00:00
drh
9f71c2e002
Added "const" to lots of "char*" parameters in the API. (CVS 298)
...
FossilOrigin-Name: 1c448f1fd2a2e103e7464df896174534d02152ed
2001-11-03 23:57:09 +00:00
drh
6d4abfbee5
More changes for 2.0.7. (CVS 293)
...
FossilOrigin-Name: f8328a5f11801c5124f9a8dace22df3c1cfb2191
2001-10-22 02:58:08 +00:00
drh
81a20f21d5
Fix an assertion failure when the disk fills up. Add tests for a full
...
disk situation. (CVS 285)
FossilOrigin-Name: 0a7848b6190981cb7eb673bbe68cb217694daf2e
2001-10-12 17:30:04 +00:00