]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
23 years agoFix for ticket #64: Better error reporting in the shell. (CVS 676)
drh [Sat, 13 Jul 2002 17:33:45 +0000 (17:33 +0000)] 
Fix for ticket #64: Better error reporting in the shell. (CVS 676)

FossilOrigin-Name: e1842e04c4f47e1ce79575b5c787a164add5d559

23 years agoPartial fix for ticket #96: Return SQLITE_MISUSE from sqlite_exec() if called
drh [Sat, 13 Jul 2002 17:23:21 +0000 (17:23 +0000)] 
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

23 years agoFix for ticket #99: Added documentation on the sqlite_mprintf() API. (CVS 674)
drh [Sat, 13 Jul 2002 17:18:36 +0000 (17:18 +0000)] 
Fix for ticket #99:  Added documentation on the sqlite_mprintf() API. (CVS 674)

FossilOrigin-Name: d918de5f06d187c76aab0879b728c89a7d4ae55a

23 years agoAdded a document describing how to do a security audit. (CVS 673)
drh [Sat, 13 Jul 2002 16:52:35 +0000 (16:52 +0000)] 
Added a document describing how to do a security audit. (CVS 673)

FossilOrigin-Name: cff271837796d84471b09147c59cb7601d16b358

23 years agoFix for ticket #54: Export additional APIs to the Win32 DLL. (CVS 672)
drh [Sat, 13 Jul 2002 14:41:49 +0000 (14:41 +0000)] 
Fix for ticket #54: Export additional APIs to the Win32 DLL. (CVS 672)

FossilOrigin-Name: 072fd2ad588332b1f1f725515bedfbc0cf035315

23 years agoFix for ticket #95: Do not allow automatically created indices (associated
drh [Sat, 13 Jul 2002 03:11:52 +0000 (03:11 +0000)] 
Fix for ticket #95: Do not allow automatically created indices (associated
with UNIQUE or PRIMARY KEY constraints) to be dropped. (CVS 671)

FossilOrigin-Name: 0603eb74e6aca48f62bd95cb6c236b9e559af850

23 years agoTurn of the reporting of datatypes in the 4th callback argument unless the
drh [Thu, 11 Jul 2002 12:18:16 +0000 (12:18 +0000)] 
Turn of the reporting of datatypes in the 4th callback argument unless the
SHOW_DATATYPES pragma is ON.  Eliminate the NULL pointer that used to separate
the beginning of datatypes from the end of column names so that the callback
can test to see whether or not datatypes are provided.  This is an
incompatible changes, but since the prior behavior was never documented, we
will let it in. (CVS 670)

FossilOrigin-Name: b98727246d5fcc1b097b577be498a77e954c5dc4

23 years agoWhen reporting back the datatype of columns, use the text of the datatype
drh [Wed, 10 Jul 2002 21:26:00 +0000 (21:26 +0000)] 
When reporting back the datatype of columns, use the text of the datatype
as it appears in the CREATE TABLE statement, if available.  Also: removed
the ".reindex" command from the shell. (CVS 669)

FossilOrigin-Name: ff8b6f4ee8099a7170cb786b8ead9a3e42ab5869

23 years agoAdd support for TEMPORARY views. The code is here but it is mostly untested. (CVS...
drh [Mon, 8 Jul 2002 22:03:32 +0000 (22:03 +0000)] 
Add support for TEMPORARY views.  The code is here but it is mostly untested. (CVS 668)

FossilOrigin-Name: 87cd10c1f638db5d1f47bc12669f150485415b3e

23 years agoIn the BTree subsystem, when using pages from the freelist, attempt to select
drh [Mon, 8 Jul 2002 10:59:50 +0000 (10:59 +0000)] 
In the BTree subsystem, when using pages from the freelist, attempt to select
pages close to related pages in order to keep data structures near each other
in the database file.  This improves access speed in some circumstances. (CVS 667)

FossilOrigin-Name: fd7e41f0eed80fb1c7e18eb84834ec3cea74a649

23 years agoMake the BTree balance() routine a little faster by reusing database
drh [Mon, 8 Jul 2002 02:16:37 +0000 (02:16 +0000)] 
Make the BTree balance() routine a little faster by reusing database
pages locally rather than freeing and reallocating them. (CVS 666)

FossilOrigin-Name: 3c2dea4310af491d6cb09856d4bc5236d6dc44ac

23 years agoVersion 2.5.6 (CVS 664)
drh [Sun, 7 Jul 2002 17:13:00 +0000 (17:13 +0000)] 
Version 2.5.6 (CVS 664)

FossilOrigin-Name: 111c78e6835306fcd8b6d22b9ae68dfb9ab4febe

23 years agoFix for Win32: The %p format on Win32 does not prepend a "0x" as it should. (CVS...
drh [Sun, 7 Jul 2002 17:12:36 +0000 (17:12 +0000)] 
Fix for Win32: The %p format on Win32 does not prepend a "0x" as it should. (CVS 665)

FossilOrigin-Name: ee86704daf184307fe98b5631f22ceb3d701afce

23 years agoMore rollback problems: Fix two more errors introduced by checking (410) that
drh [Sun, 7 Jul 2002 16:52:46 +0000 (16:52 +0000)] 
More rollback problems:  Fix two more errors introduced by checking (410) that
can cause database corruption after a ROLLBACK.  Also add new tests to make
sure everything is working this time. (CVS 663)

FossilOrigin-Name: f6e24d5ccbcfcf5863ffbd65860dafa2f5663e99

23 years agoVersion 2.5.5 (CVS 662)
drh [Sat, 6 Jul 2002 16:34:20 +0000 (16:34 +0000)] 
Version 2.5.5 (CVS 662)

FossilOrigin-Name: 6284c65c174bb2cd049fd1db81de52be3abf4000

23 years agoPrepare for the 2.5.5 release. (CVS 661)
drh [Sat, 6 Jul 2002 16:32:14 +0000 (16:32 +0000)] 
Prepare for the 2.5.5 release. (CVS 661)

FossilOrigin-Name: 00f83c2576f4a9689720d344788f66219c1f6827

23 years agoFix for bug #94: Be sure to journal pages that are added to the freelist then
drh [Sat, 6 Jul 2002 16:28:47 +0000 (16:28 +0000)] 
Fix for bug #94: Be sure to journal pages that are added to the freelist then
removed from the freelist and reused during the same transaction. (CVS 660)

FossilOrigin-Name: db178646a01483d59e6f9af302e9bbe394956d93

23 years agoAll the code is now in place for SQLite to distinguish between NUMERIC and
drh [Fri, 5 Jul 2002 21:42:36 +0000 (21:42 +0000)] 
All the code is now in place for SQLite to distinguish between NUMERIC and
TEXT datatypes.  Still need to turn on the new code and test it. (CVS 659)

FossilOrigin-Name: b4737a16c997a6c139d616211fb6bc4b0fae181c

23 years agoFix for ticket #92: Correct the sqliteExprCompare() function so that is takes
drh [Tue, 2 Jul 2002 13:05:04 +0000 (13:05 +0000)] 
Fix for ticket #92: Correct the sqliteExprCompare() function so that is takes
into account the iTable and iColumn fields of the Expr structure.  Otherwise,
"min(a)" and "min(b)" will compare equal to each other in views. (CVS 658)

FossilOrigin-Name: 85793a4f03250166c21007cab3525709592d0866

23 years agoFix for ticket 91: Modify the "publish.sh" script to use the new mingw
drh [Tue, 2 Jul 2002 11:55:32 +0000 (11:55 +0000)] 
Fix for ticket 91: Modify the "publish.sh" script to use the new mingw
cross-compiler installed on the development platform. (CVS 657)

FossilOrigin-Name: 3cac283de4939538f09cd11e2cbdc84e9a9602f2

23 years agoVersion 2.5.4 (CVS 656)
drh [Mon, 1 Jul 2002 12:35:51 +0000 (12:35 +0000)] 
Version 2.5.4 (CVS 656)

FossilOrigin-Name: f7159fde6b8692f91fa8a3c928dc219d0f3d8884

23 years agoUpdate the change log and the version number for the next release. (CVS 655)
drh [Mon, 1 Jul 2002 12:34:36 +0000 (12:34 +0000)] 
Update the change log and the version number for the next release. (CVS 655)

FossilOrigin-Name: f9d77140aed301775b2b8dd88d464cc38edfe192

23 years agoFix for tickets #90 and #89: Make the AS keyword optional again. (CVS 654)
drh [Mon, 1 Jul 2002 12:27:09 +0000 (12:27 +0000)] 
Fix for tickets #90 and #89: Make the AS keyword optional again. (CVS 654)

FossilOrigin-Name: 1f8a73b1c3833e3924196458d4c1ecca90f63662

23 years agoAdded additional tests. No new errors found. (CVS 653)
drh [Mon, 1 Jul 2002 00:31:36 +0000 (00:31 +0000)] 
Added additional tests.  No new errors found. (CVS 653)

FossilOrigin-Name: 8924a7f5bab790ab552332d6359028d0d1825e4a

23 years agoAdd a few more tests and fix a few bugs that the tests uncovered. (CVS 652)
drh [Sat, 29 Jun 2002 02:20:08 +0000 (02:20 +0000)] 
Add a few more tests and fix a few bugs that the tests uncovered. (CVS 652)

FossilOrigin-Name: 91c0db66c86facb21b5b522afadd83d91a488256

23 years agoAdditional test cases added. The following bug fixed: A segfault was occurring
drh [Fri, 28 Jun 2002 12:18:47 +0000 (12:18 +0000)] 
Additional test cases added.  The following bug fixed: A segfault was occurring
if a VIEW consisted of a join with a USING clause. (CVS 651)

FossilOrigin-Name: 96515b813eb57e1f48c28d357d1f38639b2fdcfa

23 years agoFix for ticket #84: If the WHERE clause is too complex, issue an error message
drh [Fri, 28 Jun 2002 01:02:38 +0000 (01:02 +0000)] 
Fix for ticket #84: If the WHERE clause is too complex, issue an error message
and refuse to do the SELECT.  The cutoff is a WHERE clause with 100 terms. (CVS 650)

FossilOrigin-Name: c07e493b62125e85eaea36b6945f1e146e2792b8

23 years agoFix for ticket #88: A typo in the documention of the "sqlite" shell command. (CVS...
drh [Thu, 27 Jun 2002 13:21:01 +0000 (13:21 +0000)] 
Fix for ticket #88: A typo in the documention of the "sqlite" shell command. (CVS 649)

FossilOrigin-Name: 16552a7a29450a23765f0f05a9f4058638eafd74

23 years agoIn the TCL interface, the "sqlite" command now always returns the address
drh [Wed, 26 Jun 2002 20:06:05 +0000 (20:06 +0000)] 
In the TCL interface, the "sqlite" command now always returns the address
of the "sqlite*" pointer that sqlite_open() returns.  It used to do this
only when compiled with the SQLITE_TEST macro defined. (CVS 648)

FossilOrigin-Name: 9ca6368525fe81fe9c78c6911f4d23009ce858d5

23 years agoThe datatype of the i-th column in the result set is given by the
drh [Wed, 26 Jun 2002 02:45:03 +0000 (02:45 +0000)] 
The datatype of the i-th column in the result set is given by the
azColName(argc+1+i) parameter to the callback. (CVS 647)

FossilOrigin-Name: bdb006b809feb0f29342eb5138c0884d34e95599

23 years agoAdd the sqlite_open_aux_file() API. (CVS 646)
drh [Tue, 25 Jun 2002 19:31:18 +0000 (19:31 +0000)] 
Add the sqlite_open_aux_file() API. (CVS 646)

FossilOrigin-Name: 332164d6455658ca633a1dc49811d9fb0fd4b01c

23 years agoVersion 2.5.3 (CVS 645)
drh [Tue, 25 Jun 2002 15:19:02 +0000 (15:19 +0000)] 
Version 2.5.3 (CVS 645)

FossilOrigin-Name: d5cb675432cbaeac2c1a8a08181613b9d1eb5ca1

23 years agoFix a spelling error in the change log. (CVS 644)
drh [Tue, 25 Jun 2002 14:46:58 +0000 (14:46 +0000)] 
Fix a spelling error in the change log. (CVS 644)

FossilOrigin-Name: 37cc40442bab50506978f428001b77f23d3a4e4c

23 years agoBug fix: When the database file grows in size during a transaction, make sure
drh [Tue, 25 Jun 2002 14:43:57 +0000 (14:43 +0000)] 
Bug fix: When the database file grows in size during a transaction, make sure
the last page of the file gets written to disk even if that page is on the
free list and contains no data.  Otherwise the disk file will be too small
which can lead to database corruption in subsequent transactions. (CVS 643)

FossilOrigin-Name: 36fc0add660f9f3676783765d37280aa874caecb

23 years agoEnhance the INTEGRITY_CHECK pragma to test the auxiliary database file in
drh [Tue, 25 Jun 2002 13:16:02 +0000 (13:16 +0000)] 
Enhance the INTEGRITY_CHECK pragma to test the auxiliary database file in
addition to the main database file. (CVS 642)

FossilOrigin-Name: 52eba4de301121f254174b74042015bf6069ef11

23 years agoVersion 2.5.2 (CVS 641)
drh [Tue, 25 Jun 2002 01:09:30 +0000 (01:09 +0000)] 
Version 2.5.2 (CVS 641)

FossilOrigin-Name: 756310cad23668785eac679ef0842d1f37c306ee

23 years agoAdded support for the "sqlite_temp_master" table. Increased the version
drh [Tue, 25 Jun 2002 01:09:11 +0000 (01:09 +0000)] 
Added support for the "sqlite_temp_master" table.  Increased the version
number to 2.5.2. (CVS 640)

FossilOrigin-Name: 9c1432bf7485258e485bd652e3acdaeabbfe8850

23 years agoPartial fix for a problem with LEFT OUTER JOIN. It used to be that the test
drh [Mon, 24 Jun 2002 22:01:57 +0000 (22:01 +0000)] 
Partial fix for a problem with LEFT OUTER JOIN.  It used to be that the test
for the right-hand table not matching the left table occurred after all
ON, USING, WHERE clause processing.  The test should occur after ON and
USING clauses are checked but before the WHERE clause is check.  This fix
works as long as the total number of "AND" separated terms in the ON, USING,
and WHERE clause does not exceed 32.  To do: make this work for any number
of terms and add test cases.
that (CVS 639)

FossilOrigin-Name: 8b6574cfa86daaae910f8f3ee3c4723a21fb9e53

23 years agoFix a VDBE stack leak in LEFT OUTER JOIN. Fix a bug in the code generator
drh [Mon, 24 Jun 2002 12:20:23 +0000 (12:20 +0000)] 
Fix a VDBE stack leak in LEFT OUTER JOIN.  Fix a bug in the code generator
for JOIN ... USING(...). (CVS 638)

FossilOrigin-Name: d861489e1f7dffd1105c271fe8597f73e5b1703c

23 years agoAn optimization: avoid the use of an intermediate table on UNION ALL if there
drh [Sat, 22 Jun 2002 02:33:38 +0000 (02:33 +0000)] 
An optimization: avoid the use of an intermediate table on UNION ALL if there
is no ORDER BY clause. (CVS 637)

FossilOrigin-Name: 8aa73ce61268a50d353d9a5c878461290195525f

23 years agoFix for bugs #77 and #80: Rework the LIMIT mechanism to be reentrant and to
drh [Fri, 21 Jun 2002 23:01:49 +0000 (23:01 +0000)] 
Fix for bugs #77 and #80: Rework the LIMIT mechanism to be reentrant and to
clean up the VDBE stack properly. (CVS 636)

FossilOrigin-Name: 9d5523107937e3700c76666fb058694babdd672c

23 years agoFix for ticket #76: Fix a database corruption that might occur when
drh [Fri, 21 Jun 2002 13:09:16 +0000 (13:09 +0000)] 
Fix for ticket #76: Fix a database corruption that might occur when
dropping tables or indices. (CVS 635)

FossilOrigin-Name: 7936b0325024c81ed8d4bab192d7350d045ec999

23 years agoFix for ticket #78: Avoid an assertion failure when sqlite_close() to be
drh [Fri, 21 Jun 2002 11:55:48 +0000 (11:55 +0000)] 
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

23 years agoUpdate the file-format change document to describes the changes between
drh [Thu, 20 Jun 2002 11:41:58 +0000 (11:41 +0000)] 
Update the file-format change document to describes the changes between
versions 2.4.12 and 2.5.0. (CVS 633)

FossilOrigin-Name: d28a2ecc91c0a6d64725887dcf2758f69553eb59

23 years agoThis patch contains the beginnings of the data-typing infrastructure.
drh [Thu, 20 Jun 2002 11:36:48 +0000 (11:36 +0000)] 
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

23 years agoFix for ticket #73: The ORDER BY clause is significant for subqueries.
drh [Thu, 20 Jun 2002 03:38:26 +0000 (03:38 +0000)] 
Fix for ticket #73: The ORDER BY clause is significant for subqueries.
This passes all regression tests, but more testing is needed to exercise
all paths through the new code. (CVS 631)

FossilOrigin-Name: 43c5aff5d078bce9292683cd40311e0dcc81ac14

23 years agoFix for ticket #75: Autoincrement INTEGER PRIMARY KEY fields on an INSERT
drh [Wed, 19 Jun 2002 20:32:43 +0000 (20:32 +0000)] 
Fix for ticket #75: Autoincrement INTEGER PRIMARY KEY fields on an INSERT
even if the data is coming from a SELECT statement. (CVS 630)

FossilOrigin-Name: d599f75b659809a6e5eee09b0e9e6e90bde5af1e

23 years agoVersion 2.5.1 (CVS 629)
drh [Wed, 19 Jun 2002 14:27:22 +0000 (14:27 +0000)] 
Version 2.5.1 (CVS 629)

FossilOrigin-Name: 5e8a3131aba25e22f3e25b9b1c051019381f11d1

23 years agoThe query optimizer now attempts to satisfy an ORDER BY clause using
drh [Wed, 19 Jun 2002 14:27:05 +0000 (14:27 +0000)] 
The query optimizer now attempts to satisfy an ORDER BY clause using
an index.  Sorting is still used if there are no suitable indices. (CVS 628)

FossilOrigin-Name: f09e19b43ef61073713cf32282c90ea666229eba

23 years agoVersion 2.5.0 (CVS 627)
drh [Mon, 17 Jun 2002 17:26:38 +0000 (17:26 +0000)] 
Version 2.5.0 (CVS 627)

FossilOrigin-Name: 9baef3e240c4ffd90881ac4664efd205bd9e65f4

23 years agoUpdate the change summary for version 2.5.0 (CVS 626)
drh [Mon, 17 Jun 2002 17:15:46 +0000 (17:15 +0000)] 
Update the change summary for version 2.5.0 (CVS 626)

FossilOrigin-Name: 7a216adea5aa5a82718f8c85f8961ba36ab51bb4

23 years agoAdd preliminary logic for the eventual move to having separate TEXT and
drh [Mon, 17 Jun 2002 17:07:19 +0000 (17:07 +0000)] 
Add preliminary logic for the eventual move to having separate TEXT and
NUMTEXT datatypes.  Also change the version number to 2.5.0 in preparation
for an interim release. (CVS 625)

FossilOrigin-Name: 05783a9db585c1ead42135252dca97d2bc6e2118

23 years agoExpose an additional internal API routine (sqliteInitCallback()) for
drh [Sun, 16 Jun 2002 18:21:44 +0000 (18:21 +0000)] 
Expose an additional internal API routine (sqliteInitCallback()) for
use by private code. (CVS 624)

FossilOrigin-Name: cd74495f995803eeb5c2b900d536deb52e5584eb

23 years agoAdded explanation and examples for %Q format specifier. (CVS 623)
chw [Sun, 16 Jun 2002 04:57:32 +0000 (04:57 +0000)] 
Added explanation and examples for %Q format specifier. (CVS 623)

FossilOrigin-Name: 633ce4dd252ac351b04bdb7bed2d5374ee9a3f12

23 years agoAdded printf-4.(2-4) test cases to test new %Q format specifier. (CVS 622)
chw [Sun, 16 Jun 2002 04:56:36 +0000 (04:56 +0000)] 
Added printf-4.(2-4) test cases to test new %Q format specifier. (CVS 622)

FossilOrigin-Name: 7d5fc35b5d38230230344b4f70763f75940ab908

23 years agoAdded %Q format specifier: like %q but automatic enclosing in
chw [Sun, 16 Jun 2002 04:55:48 +0000 (04:55 +0000)] 
Added %Q format specifier: like %q but automatic enclosing in
single quotes, NULL pointers replaced by NULL w/o single-quotes. (CVS 621)

FossilOrigin-Name: b9c7ecc2f9d8d7d57c51dc4ba0aaa520e89eb31f

23 years agoChanged sqlite_mprintf_str to allow a NULL string parameter.
chw [Sun, 16 Jun 2002 04:54:28 +0000 (04:54 +0000)] 
Changed sqlite_mprintf_str to allow a NULL string parameter.
Command template now is cmd FORMAT INT INT ?STRING?. When
STRING omitted a NULL is passed to sqlite_mprintf. (CVS 620)

FossilOrigin-Name: 8bc711571d752a81957007be22ed8a3c6877f676

23 years agoMake the LIMIT clause work even if the destination of the SELECT is
drh [Fri, 14 Jun 2002 22:38:41 +0000 (22:38 +0000)] 
Make the LIMIT clause work even if the destination of the SELECT is
something other than a callback.  (Ticket #66) (CVS 619)

FossilOrigin-Name: 699cf362083043615eb88635a228bfa46a315c9c

23 years agoImprovements to comments. No code changes. (CVS 618)
drh [Fri, 14 Jun 2002 20:58:45 +0000 (20:58 +0000)] 
Improvements to comments.  No code changes. (CVS 618)

FossilOrigin-Name: 7e10e60bb78b680bb822908a0b7763f8f5e3ee5a

23 years agoFix for bug #72: Make sure the file descriptors are properly closed if
drh [Fri, 14 Jun 2002 20:54:14 +0000 (20:54 +0000)] 
Fix for bug #72: Make sure the file descriptors are properly closed if
sqliteInit() fails for any reason. (CVS 617)

FossilOrigin-Name: e67ac0fec51788aca0429d04310f86c9c1cf9d13

23 years agoFix for bug #70: Correct a typo in the documentation. (CVS 616)
drh [Wed, 12 Jun 2002 22:33:54 +0000 (22:33 +0000)] 
Fix for bug #70: Correct a typo in the documentation. (CVS 616)

FossilOrigin-Name: 3387d5b6d62fbafea69fac7bb8256c37d5c6a4ba

23 years agoDocumentation that should have been checked in along with checkin (614) (CVS 615)
danielk1977 [Tue, 11 Jun 2002 22:33:47 +0000 (22:33 +0000)] 
Documentation that should have been checked in along with checkin (614) (CVS 615)

FossilOrigin-Name: 10da13612583caacc6fefe3a1f24187bfae2ebd7

23 years agoAdd RAISE() function, which allows more advanced flow-control in trigger programs...
danielk1977 [Tue, 11 Jun 2002 02:25:40 +0000 (02:25 +0000)] 
Add RAISE() function, which allows more advanced flow-control in trigger programs (ticket #55) (CVS 614)

FossilOrigin-Name: d4a2fb10067203a0d49317db747759872e62927e

23 years agoFix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613)
drh [Sun, 9 Jun 2002 10:14:18 +0000 (10:14 +0000)] 
Fix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613)

FossilOrigin-Name: 74d297d97e66452acc5c21048ee8ddf2a90c846f

23 years agoAdded tests for the new IN operator optimizer and fixed a bug that the
drh [Sun, 9 Jun 2002 01:55:20 +0000 (01:55 +0000)] 
Added tests for the new IN operator optimizer and fixed a bug that the
new tests found.  This completes the implementation of enhancement #63. (CVS 612)

FossilOrigin-Name: 2a710e18176c486525f0abb06644a511a2cd1d7a

23 years agoFix for ticket #65: If an integer value is too big to be represented as a
drh [Sun, 9 Jun 2002 01:16:01 +0000 (01:16 +0000)] 
Fix for ticket #65: If an integer value is too big to be represented as a
32-bit integer, then treat it as a string. (CVS 611)

FossilOrigin-Name: ad9624798edbd6d0c4652fed3d74fe87498844ff

23 years agoAdd optimizations for the IN operator in WHERE clauses. This is a partial
drh [Sat, 8 Jun 2002 23:25:08 +0000 (23:25 +0000)] 
Add optimizations for the IN operator in WHERE clauses.  This is a partial
implementation of enhancement #63.  Still need to add test cases. (CVS 610)

FossilOrigin-Name: 8481e841ebdeabe07bf780246bda1aa053eb60b7

23 years agoBug fix: do not segfault if a SELECT without a FROM clause includes
drh [Thu, 6 Jun 2002 23:42:27 +0000 (23:42 +0000)] 
Bug fix: do not segfault if a SELECT without a FROM clause includes
the * wildcard in the result column list. (CVS 609)

FossilOrigin-Name: d939294994e5f6c7862b66573301e111e56a2681

23 years agoFix for ticket #59: Add documentation for the || operator. Also added
drh [Thu, 6 Jun 2002 23:30:58 +0000 (23:30 +0000)] 
Fix for ticket #59: Add documentation for the || operator.  Also added
documentation for the new SQL92 join syntax. (CVS 608)

FossilOrigin-Name: a0abef62bfe1b0f8c6249ba520dd2735190783a5

23 years agoFix for ticket #62: Do not report an SQLITE_READONLY error until the application
drh [Thu, 6 Jun 2002 23:16:05 +0000 (23:16 +0000)] 
Fix for ticket #62: Do not report an SQLITE_READONLY error until the application
actually tries to write data into a readonly file.  It is OK to start a
transaction on a read-only file, and doing so will get you a read lock.  This
change allows TEMP tables to be read/write even though the main database is
readonly. (CVS 607)

FossilOrigin-Name: 9ef795d1d756a404d2123ebc19df1985b19c9888

23 years agoAdditional grammar cleanup resulting from the %fallback directive. (CVS 606)
drh [Thu, 6 Jun 2002 19:04:16 +0000 (19:04 +0000)] 
Additional grammar cleanup resulting from the %fallback directive. (CVS 606)

FossilOrigin-Name: c0cb3a012e02df1a7965413a92f9b5a77331edb4

23 years agoAdded the %fallback directive to the lemon parser generator and used this
drh [Thu, 6 Jun 2002 18:54:39 +0000 (18:54 +0000)] 
Added the %fallback directive to the lemon parser generator and used this
in the parser to make the parse tables much smaller.  This reduced the size
of the library by 15K. (CVS 605)

FossilOrigin-Name: 7ac5bd293cbb2bf252f31f1571f7efac7e77280a

23 years agoFix a compiler warning. (CVS 604)
drh [Sun, 2 Jun 2002 18:22:06 +0000 (18:22 +0000)] 
Fix a compiler warning. (CVS 604)

FossilOrigin-Name: 637ee587b5438c54ba2d8bd8fc15e584abb70946

23 years agoAdd the ability to parse FOREIGN KEYs. Foreign keys are still ignored,
drh [Sun, 2 Jun 2002 18:19:00 +0000 (18:19 +0000)] 
Add the ability to parse FOREIGN KEYs.  Foreign keys are still ignored,
but at least they now do not cause a syntax error. (CVS 603)

FossilOrigin-Name: 6fdcee3c99e994ef3ab83a0cc57344cdb16210df

23 years agoEnhance the ORDER BY clause so that an integer term means to sort by the
drh [Sun, 2 Jun 2002 16:09:01 +0000 (16:09 +0000)] 
Enhance the ORDER BY clause so that an integer term means to sort by the
corresponding column. (CVS 602)

FossilOrigin-Name: 7acbf84b492202d8b5a05276a95b475027eb5f58

23 years agoMultiplying NULL by zero gives NULL, not zero. I misread the test data
drh [Sat, 1 Jun 2002 21:41:10 +0000 (21:41 +0000)] 
Multiplying NULL by zero gives NULL, not zero.  I misread the test data
and coded it wrong.  This check-in fixes the problem. (CVS 601)

FossilOrigin-Name: df9cc852ad02dbec5558d3915a0303f7e7b79b2b

23 years agoRefinements to NULL processing: NULLs are indistinct for DISTINCT and UNION.
drh [Fri, 31 May 2002 15:51:25 +0000 (15:51 +0000)] 
Refinements to NULL processing: NULLs are indistinct for DISTINCT and UNION.
Multiplying a NULL by zero yields zero. In a CASE expression, a NULL comparison
is considered false, not NULL.  With these changes, NULLs in SQLite now work
the same as in PostgreSQL and in Oracle. (CVS 600)

FossilOrigin-Name: da61aa1d238539dff9c43fd9f464d311e28d669f

23 years agoOnce it is opened, leave the checkpoint journal file open for the
drh [Thu, 30 May 2002 12:27:03 +0000 (12:27 +0000)] 
Once it is opened, leave the checkpoint journal file open for the
duration of a transaction, rather than closing it and reopening it
for each statement.  (Ticket #53) (CVS 599)

FossilOrigin-Name: 7a24336d50e72006b2cc0e4feb292b946e79d5f3

23 years agoBug fix: bad code was generated for when the first operand of a CASE
drh [Thu, 30 May 2002 02:35:11 +0000 (02:35 +0000)] 
Bug fix: bad code was generated for when the first operand of a CASE
was NULL. (CVS 598)

FossilOrigin-Name: 4debc8db929fdc201759ba211acdeadc4e30e8af

23 years agoBuilt-in aggregate functions (MIN, SUM, AVG, etc) should ignore NULL entires. (CVS...
drh [Wed, 29 May 2002 23:22:23 +0000 (23:22 +0000)] 
Built-in aggregate functions (MIN, SUM, AVG, etc) should ignore NULL entires. (CVS 597)

FossilOrigin-Name: 19ae12bef210ae5fe171f10833faa38d640c129f

23 years agoRemove extra \ characters from temporary filenames under windows.
drh [Wed, 29 May 2002 12:44:52 +0000 (12:44 +0000)] 
Remove extra \ characters from temporary filenames under windows.
(Ticket #52) (CVS 596)

FossilOrigin-Name: ed11abc81e638c21ec1aa0445a6d59de91343095

23 years agoUpdate trigger2.test to match checkin 591. Also fix ticket #51 (by documenting proble...
danielk1977 [Tue, 28 May 2002 06:55:27 +0000 (06:55 +0000)] 
Update trigger2.test to match checkin 591. Also fix ticket #51 (by documenting problem) (CVS 595)

FossilOrigin-Name: 5e74d0964b8fd99eda798e3737217aa499cc1726

23 years agoA SELECT statement inside the body of a TRIGGER uses the SRT_Discard target
drh [Mon, 27 May 2002 12:24:48 +0000 (12:24 +0000)] 
A SELECT statement inside the body of a TRIGGER uses the SRT_Discard target
to discard the query results.  Such selects are intended to be used to call
user-defined functions for their side-effects.  They do not return results. (CVS 594)

FossilOrigin-Name: f8041f3d4d3350b4086cd6ba3e9006bdde8546a9

23 years agoFix the "alias.*" bug found by Bernie Cosell and reported on the newsgroup. (CVS...
drh [Mon, 27 May 2002 03:25:51 +0000 (03:25 +0000)] 
Fix the "alias.*" bug found by Bernie Cosell and reported on the newsgroup. (CVS 593)

FossilOrigin-Name: f562d542304c0c1b18b0cee78b1ecc353327a02e

23 years agoBug fixes and additional test cases for the distinct-NULL patch. (CVS 592)
drh [Mon, 27 May 2002 01:04:51 +0000 (01:04 +0000)] 
Bug fixes and additional test cases for the distinct-NULL patch. (CVS 592)

FossilOrigin-Name: 0e268d0c0faa02c3f95e1567cf631b7a04bfbdf0

23 years agoRequire the INSTEAD OF syntax to create triggers on database views. (CVS 591)
danielk1977 [Sun, 26 May 2002 23:24:40 +0000 (23:24 +0000)] 
Require the INSTEAD OF syntax to create triggers on database views. (CVS 591)

FossilOrigin-Name: d9e48cd5180e2aae7672b9d54e18c37d0fe5258a

23 years agoChange functions to handle NULLs correctly. Added the NULLIF() function. (CVS 590)
drh [Sun, 26 May 2002 21:34:58 +0000 (21:34 +0000)] 
Change functions to handle NULLs correctly.  Added the NULLIF() function. (CVS 590)

FossilOrigin-Name: 46ce1a9ab6e527958ebc757fa2175c488299cd84

23 years agoNULL values are distinct. A comparison involving a NULL is always false.
drh [Sun, 26 May 2002 20:54:33 +0000 (20:54 +0000)] 
NULL values are distinct.  A comparison involving a NULL is always false.
Operations on a NULL value yield a NULL result.  This change makes SQLite
operate more like the SQL spec, but it may break existing applications that
assumed the old behavior.  All the old tests pass but we still need to add
new tests to better verify the new behavior.  Fix for ticket #44. (CVS 589)

FossilOrigin-Name: 9051173742f1b0e15a809d12a0c9c98fd2c4614d

23 years agoAdditional testing of LEFT OUTER JOIN. (CVS 588)
drh [Sat, 25 May 2002 00:18:20 +0000 (00:18 +0000)] 
Additional testing of LEFT OUTER JOIN. (CVS 588)

FossilOrigin-Name: d8d04c14f18d1feba89ccea0be70530a18248c51

23 years agoInitial implementation of LEFT OUTER JOIN including the expanded SQL92 join
drh [Fri, 24 May 2002 20:31:36 +0000 (20:31 +0000)] 
Initial implementation of LEFT OUTER JOIN including the expanded SQL92 join
syntax. The basic functionality is there but there is still a lot of testing
to do. (CVS 587)

FossilOrigin-Name: 99bd1f5b9a1a20bfeefe15c00d96a34a5f40923e

23 years agoAdd support for the full SQL join syntax. This is just a parser enhancement.
drh [Fri, 24 May 2002 16:14:15 +0000 (16:14 +0000)] 
Add support for the full SQL join syntax.  This is just a parser enhancement.
We now recognize all kinds of joins, but we don't actually do anything with
them yet. (CVS 586)

FossilOrigin-Name: e238643efdbe1394c7ff85e34e486f7c6082b6cc

23 years agoAdded tests for multi-column primary keys. (CVS 585)
drh [Fri, 24 May 2002 02:14:50 +0000 (02:14 +0000)] 
Added tests for multi-column primary keys. (CVS 585)

FossilOrigin-Name: ffc49e56b13096b35e6cbb1a2f7d546843d4a91d

23 years agoSplit the IdList structure into IdList and SrcList. SrcList is used to
drh [Fri, 24 May 2002 02:04:32 +0000 (02:04 +0000)] 
Split the IdList structure into IdList and SrcList.  SrcList is used to
represent a FROM clause and IdList is used for everything else.  This change
allows SrcList to grow to support outer joins without burdening the other
uses of IdList. (CVS 584)

FossilOrigin-Name: a167b71d8c27e870bc3079c6132e483bffc83298

23 years agoChange the names of the PushList and PopList opcodes to ListPush and ListPop
drh [Thu, 23 May 2002 22:07:02 +0000 (22:07 +0000)] 
Change the names of the PushList and PopList opcodes to ListPush and ListPop
so that they will appear together with the other List opcodes in the
documentation. (CVS 583)

FossilOrigin-Name: c53b0b9283c5c34def87d58b03fd979d03dc0890

23 years agoFix for ticket #50. (CVS 582)
drh [Thu, 23 May 2002 13:15:37 +0000 (13:15 +0000)] 
Fix for ticket #50. (CVS 582)

FossilOrigin-Name: 82b74a494ac7c751a13e67dcfa7fffb1b98ec808

23 years agoPartial fix for ticket #49. The correct result is computed, but now we have
drh [Thu, 23 May 2002 12:50:18 +0000 (12:50 +0000)] 
Partial fix for ticket #49.  The correct result is computed, but now we have
a memory leak.  I'm not sure if the memory leak was pre-existing or a result
of this change. (CVS 581)

FossilOrigin-Name: 4d27ee411902a197cd72416ca9da9197d3f87f13

23 years agoFix some places where a malloc() failure would lead to a segfault. (CVS 580)
drh [Thu, 23 May 2002 02:09:03 +0000 (02:09 +0000)] 
Fix some places where a malloc() failure would lead to a segfault. (CVS 580)

FossilOrigin-Name: 01ad352c3c82a86d9c94010cbc85d098b8fbc08a

23 years agoDo not allow triggers on the SQLITE_MASTER table. (CVS 579)
drh [Thu, 23 May 2002 00:30:31 +0000 (00:30 +0000)] 
Do not allow triggers on the SQLITE_MASTER table. (CVS 579)

FossilOrigin-Name: 275ba356f351abcf9a079ac16b765c9443750f0e

23 years agoFix for ticket #46: Report an error if a CREATE TABLE contains two or more
drh [Wed, 22 May 2002 21:27:03 +0000 (21:27 +0000)] 
Fix for ticket #46: Report an error if a CREATE TABLE contains two or more
columns with the same name. (CVS 578)

FossilOrigin-Name: ba1953abd04671232cf9e93ab3f962fedbbdc508

23 years agoFix for ticket #47: Use a cast to avoid a warning about discarding a "const"
drh [Tue, 21 May 2002 23:44:30 +0000 (23:44 +0000)] 
Fix for ticket #47: Use a cast to avoid a warning about discarding a "const"
inside of hash.c. (CVS 577)

FossilOrigin-Name: 0c903461533fabca7815e8cccbd3b712bcd22ddc