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
chw
4d60361fe3
Added explanation and examples for %Q format specifier. (CVS 623)
...
FossilOrigin-Name: 633ce4dd252ac351b04bdb7bed2d5374ee9a3f12
2002-06-16 04:57:32 +00:00
chw
b22f1b58ac
Added printf-4.(2-4) test cases to test new %Q format specifier. (CVS 622)
...
FossilOrigin-Name: 7d5fc35b5d38230230344b4f70763f75940ab908
2002-06-16 04:56:36 +00:00
chw
0cfcf3fbd1
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
2002-06-16 04:55:48 +00:00
chw
f220b24fc6
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
2002-06-16 04:54:28 +00:00
drh
df199a25bd
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
2002-06-14 22:38:41 +00:00
drh
c27a1ce4bd
Improvements to comments. No code changes. (CVS 618)
...
FossilOrigin-Name: 7e10e60bb78b680bb822908a0b7763f8f5e3ee5a
2002-06-14 20:58:45 +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
6ca62f21e3
Fix for bug #70 : Correct a typo in the documentation. (CVS 616)
...
FossilOrigin-Name: 3387d5b6d62fbafea69fac7bb8256c37d5c6a4ba
2002-06-12 22:33:54 +00:00
danielk1977
c3d2ac6561
Documentation that should have been checked in along with checkin (614) (CVS 615)
...
FossilOrigin-Name: 10da13612583caacc6fefe3a1f24187bfae2ebd7
2002-06-11 22:33:47 +00:00
danielk1977
6f34903e85
Add RAISE() function, which allows more advanced flow-control in trigger programs (ticket #55 ) (CVS 614)
...
FossilOrigin-Name: d4a2fb10067203a0d49317db747759872e62927e
2002-06-11 02:25:40 +00:00
drh
28f4b6885b
Fix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613)
...
FossilOrigin-Name: 74d297d97e66452acc5c21048ee8ddf2a90c846f
2002-06-09 10:14:18 +00:00
drh
48185c15c7
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
2002-06-09 01:55:20 +00:00
drh
d9e3093038
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
2002-06-09 01:16:01 +00:00
drh
d99f70680f
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
2002-06-08 23:25:08 +00:00
drh
f5db2d3ea2
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
2002-06-06 23:42:27 +00:00
drh
d5c644c0b1
Fix for ticket #59 : Add documentation for the || operator. Also added
...
documentation for the new SQL92 join syntax. (CVS 608)
FossilOrigin-Name: a0abef62bfe1b0f8c6249ba520dd2735190783a5
2002-06-06 23:30:58 +00:00
drh
5df72a5ad6
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
2002-06-06 23:16:05 +00:00
drh
34e33bb835
Additional grammar cleanup resulting from the %fallback directive. (CVS 606)
...
FossilOrigin-Name: c0cb3a012e02df1a7965413a92f9b5a77331edb4
2002-06-06 19:04:16 +00:00
drh
0bd1f4ea5a
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
2002-06-06 18:54:39 +00:00
drh
bd790ee395
Fix a compiler warning. (CVS 604)
...
FossilOrigin-Name: 637ee587b5438c54ba2d8bd8fc15e584abb70946
2002-06-02 18:22:06 +00:00
drh
04738cb9ff
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
2002-06-02 18:19:00 +00:00
drh
e4de1feb3e
Enhance the ORDER BY clause so that an integer term means to sort by the
...
corresponding column. (CVS 602)
FossilOrigin-Name: 7acbf84b492202d8b5a05276a95b475027eb5f58
2002-06-02 16:09:01 +00:00
drh
1288c9561d
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
2002-06-01 21:41:10 +00:00
drh
f570f011eb
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
2002-05-31 15:51:25 +00:00
drh
0f89253e21
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
2002-05-30 12:27:03 +00:00
drh
461c281a2e
Bug fix: bad code was generated for when the first operand of a CASE
...
was NULL. (CVS 598)
FossilOrigin-Name: 4debc8db929fdc201759ba211acdeadc4e30e8af
2002-05-30 02:35:11 +00:00
drh
739105c72c
Built-in aggregate functions (MIN, SUM, AVG, etc) should ignore NULL entires. (CVS 597)
...
FossilOrigin-Name: 19ae12bef210ae5fe171f10833faa38d640c129f
2002-05-29 23:22:23 +00:00
drh
f1756d2a79
Remove extra \ characters from temporary filenames under windows.
...
(Ticket #52 ) (CVS 596)
FossilOrigin-Name: ed11abc81e638c21ec1aa0445a6d59de91343095
2002-05-29 12:44:52 +00:00
danielk1977
993b173e55
Update trigger2.test to match checkin 591. Also fix ticket #51 (by documenting problem) (CVS 595)
...
FossilOrigin-Name: 5e74d0964b8fd99eda798e3737217aa499cc1726
2002-05-28 06:55:27 +00:00
drh
d7489c3987
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
2002-05-27 12:24:48 +00:00
drh
c754fa5486
Fix the "alias.*" bug found by Bernie Cosell and reported on the newsgroup. (CVS 593)
...
FossilOrigin-Name: f562d542304c0c1b18b0cee78b1ecc353327a02e
2002-05-27 03:25:51 +00:00
drh
bb113518f9
Bug fixes and additional test cases for the distinct-NULL patch. (CVS 592)
...
FossilOrigin-Name: 0e268d0c0faa02c3f95e1567cf631b7a04bfbdf0
2002-05-27 01:04:51 +00:00
danielk1977
d702fccbce
Require the INSTEAD OF syntax to create triggers on database views. (CVS 591)
...
FossilOrigin-Name: d9e48cd5180e2aae7672b9d54e18c37d0fe5258a
2002-05-26 23:24:40 +00:00
drh
8912d106e1
Change functions to handle NULLs correctly. Added the NULLIF() function. (CVS 590)
...
FossilOrigin-Name: 46ce1a9ab6e527958ebc757fa2175c488299cd84
2002-05-26 21:34:58 +00:00
drh
f5905aa7be
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
2002-05-26 20:54:33 +00:00
drh
195e6967fb
Additional testing of LEFT OUTER JOIN. (CVS 588)
...
FossilOrigin-Name: d8d04c14f18d1feba89ccea0be70530a18248c51
2002-05-25 00:18:20 +00:00
drh
ad2d8307ac
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
2002-05-24 20:31:36 +00:00
drh
01f3f25376
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
2002-05-24 16:14:15 +00:00
drh
2e392e2c53
Added tests for multi-column primary keys. (CVS 585)
...
FossilOrigin-Name: ffc49e56b13096b35e6cbb1a2f7d546843d4a91d
2002-05-24 02:14:50 +00:00
drh
ad3cab52fe
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
2002-05-24 02:04:32 +00:00
drh
bd5a451d5d
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
2002-05-23 22:07:02 +00:00
drh
0b4efed236
Fix for ticket #50 . (CVS 582)
...
FossilOrigin-Name: 82b74a494ac7c751a13e67dcfa7fffb1b98ec808
2002-05-23 13:15:37 +00:00
drh
07d6e3a74c
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
2002-05-23 12:50:18 +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
drh
1873cd508a
Do not allow triggers on the SQLITE_MASTER table. (CVS 579)
...
FossilOrigin-Name: 275ba356f351abcf9a079ac16b765c9443750f0e
2002-05-23 00:30:31 +00:00
drh
97fc3d060a
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
2002-05-22 21:27:03 +00:00
drh
2ce1a6ec60
Fix for ticket #47 : Use a cast to avoid a warning about discarding a "const"
...
inside of hash.c. (CVS 577)
FossilOrigin-Name: 0c903461533fabca7815e8cccbd3b712bcd22ddc
2002-05-21 23:44:30 +00:00
drh
2398937b7f
Double-quoted strings resolve to column names if possible. Single-quoted
...
strings continue to be interpreted as string literals. (CVS 576)
FossilOrigin-Name: 55e7d65496624c8e48673d8747f3123786bfedbc
2002-05-21 13:43:04 +00:00
drh
1d1f30555d
Clean up some compiler warnings. (CVS 575)
...
FossilOrigin-Name: 3399b01219b9e75b93587b5634d199d9e6fb6e42
2002-05-21 13:18:25 +00:00