drh
52fc849a3c
Detect integer overflow in the abs() function. The random() function
...
now provides 64 bits of randomness instead of just 32. Fix bugs in
testing logic of test4.c. (CVS 3108)
FossilOrigin-Name: 942c509595a2a300e798e6b048ad7fc3bc54af43
2006-02-23 21:43:55 +00:00
drh
8c08e86187
I give up. SUM() now throws an error on integer overflow. Those of us
...
who think this is goofy can use TOTAL() instead.
Tickets #1664 , #1669 , #1670 , #1674 . (CVS 3084)
FossilOrigin-Name: 1c3e6002cd9fd5d30e197448c4d98cdd59163cac
2006-02-11 17:34:00 +00:00
drh
29d7210819
SUM never gives an error. An integer result is returned for exact results
...
and a floating point result is returned for approximate results.
Tickets #1664 , #1669 , and #1670 . (CVS 3066)
FossilOrigin-Name: 9e04f8fdf1ec0dc36effb55c05d075b3b4777fef
2006-02-09 22:13:41 +00:00
drh
cf85a51c2a
Deprecate the sqlite3_aggregate_count() API. Make sure all aggregate counters
...
are 64 bits. Remove unused StdDev structure from func.c. Ticket #1669 . (CVS 3065)
FossilOrigin-Name: 44bd7ba432123ec77904b862d11521f4ab96d2cf
2006-02-09 18:35:29 +00:00
drh
76c730c18f
Integer overflow in SUM causes an exception. Ticket #1669 . (CVS 3064)
...
FossilOrigin-Name: c72b946198128cbceb12dffbdf4706d9fda0fd72
2006-02-09 17:47:42 +00:00
drh
fc6ad39cf8
Avoid overflowing the 48-bit mantissa of a floating point number when
...
summing large integers in the SUM() function. Ticket #1664 . (CVS 3061)
FossilOrigin-Name: a9169e879de5d5e4192d1681bc3e119fb83e739c
2006-02-09 13:38:19 +00:00
danielk1977
771151b67f
Various fixes that allow the malloc() failure tests to pass again. (CVS 2963)
...
FossilOrigin-Name: 0505405fb9ae1068b7976718efbf2aabd07592d4
2006-01-17 13:21:40 +00:00
drh
a97fdd3bfc
Add support for the TOTAL() aggregate function - works like SUM() except
...
that it returns 0 instead of NULL when presented with an empty list. (CVS 2930)
FossilOrigin-Name: a7f528ff3446d50b280fb0b85063879e3ac5751a
2006-01-12 22:17:50 +00:00
danielk1977
14db26653a
Fix some errors to do with attached databases and text encodings in shared-cache mode. (CVS 2895)
...
FossilOrigin-Name: 3e75d3d5efebc0dfff1adfc13d85e85ec39db3eb
2006-01-09 16:12:04 +00:00
drh
198bf39128
Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878)
...
FossilOrigin-Name: 9d71b7deaffdd7eb9ddad1f03df3e4c51c2cbd98
2006-01-06 21:52:49 +00:00
drh
2646da7e52
Clean up annoying (and pointless) compiler warnings about differing signedness. (CVS 2810)
...
FossilOrigin-Name: 83a59151559d9496d4f546e03e65087ea974717d
2005-12-09 20:02:05 +00:00
danielk1977
f744bb56a1
Modify ATTACH and DETACH to execute at runtime instead of compile time. (CVS 2803)
...
FossilOrigin-Name: 5e04ec694add7a8331e3d6fbdfcaed51349ae7bc
2005-12-06 17:19:11 +00:00
drh
b37df7b928
Attempt to fix the SQLite core so that no floating point operations are used
...
anywhere if SQLITE_OMIT_FLOATING_POINT is defined at compile-time. This
is useful to people who use SQLite on embedded processors that lack
floating point support. (CVS 2749)
FossilOrigin-Name: a0bdb584680ce6400d9e8c57db9d91197cc7b776
2005-10-13 02:09:49 +00:00
drh
c2bd913a40
SUM returns NULL when it has no inputs. Ticket #1413 . (CVS 2678)
...
FossilOrigin-Name: 6281859425d39c11d82875301fefafad1f08416d
2005-09-08 20:37:43 +00:00
drh
3f219f46fc
A SUM() of all NULLs returns NULL. A SUM() of nothing return 0.
...
A SUM() of a mixture of NULLs and numbers returns the sum of the
numbers. Ticket #1413 . (CVS 2677)
FossilOrigin-Name: 2e6230edfd651b40481ebad8aa01a22ac92ce80c
2005-09-08 19:45:57 +00:00
drh
3d1d95e625
The SUM() aggregate function returns an integer result if all inputs are
...
integers. Any single non-integer input causes the result to be a floating
point value. (CVS 2669)
FossilOrigin-Name: 21adf4bd99e732650a1e8e9a1cc954126983a654
2005-09-08 10:37:01 +00:00
drh
abfcea25ea
Cleanup the processing of MEM_Agg elements. (CVS 2660)
...
FossilOrigin-Name: 7ecf3654aa9a275a4cf0c3ec5f63a8c1e0a11fc9
2005-09-06 20:36:48 +00:00
drh
d64fe2f374
The LIKE optimization does the right thing when collating sequences are
...
present. LIKE expressions where the left-hand side has COLLATE NOCASE
are optimized in the default case. (CVS 2637)
FossilOrigin-Name: ef84ff795c85e9d28f1cac84ff42d8d4ef84cfc4
2005-08-28 17:00:23 +00:00
drh
9cc5abd769
Fix comment in vdbeapi.c. Remove unused structure definition from func.c. (CVS 2629)
...
FossilOrigin-Name: 51a381345db45967567dd0a18905d352bf1081e0
2005-08-27 13:16:32 +00:00
drh
55ef4d9758
The case_sensitive_like pragma added.
...
Test cases added for the LIKE optimization. (CVS 2592)
FossilOrigin-Name: 72ee21c05e618b6f46f5460f8c85779c72fe32d7
2005-08-14 01:20:37 +00:00
drh
592ac8cb6c
Make the round() function work correctly on numbers with very large exponents.
...
Ticket #1340 . (CVS 2585)
FossilOrigin-Name: 4f47c3c884e38b810450b6127ab33c7b86e6743c
2005-08-13 03:07:47 +00:00
drh
e866fcb923
Use the internal sqlite3_snprintf function instead of sprintf to avoid
...
cross-platform incompatibilities. Ticket #1316 . (CVS 2545)
FossilOrigin-Name: 431999da7bf0079e0d514483b3bfd9f8471cba7d
2005-07-09 02:38:06 +00:00
drh
70031fa396
Add the SQLITE_CASE_SENSITIVE_LIKE compile-time option. (CVS 2539)
...
FossilOrigin-Name: b72bff81f9937378417a0af0610d8558279b67a7
2005-07-08 13:53:21 +00:00
drh
487e262f44
Remove the blob(), text() and numeric() functions added in (2524) and
...
replace them with the standard CAST operator.
Ticket #1287 . (CVS 2527)
FossilOrigin-Name: 17631785f9ee8ab280c82677eb53886912e085bc
2005-06-25 18:42:14 +00:00
drh
5708d2deac
Add built-in functions numeric(), text(), and blob() that coerce types.
...
Ticket #1287 . (CVS 2524)
FossilOrigin-Name: affb0fa2e8c5ff497838ba3c2994cdb1f6f50c68
2005-06-22 10:53:59 +00:00
danielk1977
fd9a0a45a7
Move a few things around to make building without the parser easier. (CVS 2479)
...
FossilOrigin-Name: 5fadb464eb77b4b998d8555f83401769960ea904
2005-05-24 12:01:00 +00:00
danielk1977
fd9e1f3179
Add hook to register SSE user-functions. (CVS 2471)
...
FossilOrigin-Name: 20bd303e8c6f7e69ba82ce1dc3041ea4e02d55cf
2005-05-22 10:44:34 +00:00
drh
1f01ec1b7a
Move the special built-in SQL functions used by ALTER TABLE out of func.c
...
and into alter.c. (CVS 2343)
FossilOrigin-Name: dbd11a0c581b447bb2f220a1a185d9fd36933ee3
2005-02-15 21:36:18 +00:00
drh
d0e4a6c11d
Split the logic for the ALTER TABLE command off into a separate source
...
code file. (CVS 2342)
FossilOrigin-Name: 90d6573c2631fac92b9e572e9e21698ae2480c9d
2005-02-15 20:47:57 +00:00
danielk1977
24c8ab8030
Document SQLITE_DEFAULT_CACHE_SIZE and SQLITE_DEFAULT_TEMP_CACHE_SIZE macros. (CVS 2320)
...
FossilOrigin-Name: ddcea6f8891b02e64f96591af161feb55c00a72c
2005-02-09 01:40:23 +00:00
drh
b659e9bf7a
Make sure the #include of "sqliteInt.h" always comes first in C source files. (CVS 2284)
...
FossilOrigin-Name: 522c094f799220468780acb77731edb715bf5e3c
2005-01-28 01:29:08 +00:00
danielk1977
01427a6214
Test cases to improve coverage of vdbe.c. (CVS 2193)
...
FossilOrigin-Name: a6b45722071bde543c4ea28a432339d8708a5cac
2005-01-11 13:02:33 +00:00
danielk1977
343e92610e
Fix bugs in ALTER TABLE related to (a) whitespace in table defn, (b) temp triggers. (CVS 2112)
...
FossilOrigin-Name: 1fd8e835a3656799c23f4ef6ea1311fecf5a15cb
2004-11-19 05:14:54 +00:00
danielk1977
d641d646ff
Handle triggers correctly in ALTER TABLE. (CVS 2111)
...
FossilOrigin-Name: c61b7de107cea76b561d0d6cd90c752b62c5df95
2004-11-18 15:44:29 +00:00
drh
20fc0887f5
Speed improvement on the LIKE command. (CVS 2110)
...
FossilOrigin-Name: 85d56beb7494ce63e70ab1ffc3797c2ee4c36749
2004-11-18 13:49:25 +00:00
danielk1977
7c6303c042
Add the ESCAPE clause to the LIKE operator. Not fully tested yet. (CVS 2107)
...
FossilOrigin-Name: 49268c2b7a84c4c618214dac8bef0f541440fe6b
2004-11-17 16:41:29 +00:00
drh
6c62608fc6
The SQLITE_OMIT_UTF16 macro now removes lots of code and all tests still pass. (CVS 2100)
...
FossilOrigin-Name: 98c7a55478f7c465b219edc1a33eee222586fd65
2004-11-14 21:56:29 +00:00
danielk1977
9fd2a9a028
Add the "ALTER TABLE xxx RENAME TO yyy" command. (CVS 2092)
...
FossilOrigin-Name: a1b2cc63e604785bd51e358ff72c485d858752e3
2004-11-12 13:42:30 +00:00
drh
5719628afb
Convert many constants to have type "const". (CVS 2006)
...
FossilOrigin-Name: d790c84c5a889928d07f5394fffef0cbb8d5f214
2004-10-06 15:41:16 +00:00
drh
94a98365a6
Fix an uninitialized variable bug in nullif(). Ticket #898 . (CVS 1957)
...
FossilOrigin-Name: ee335b501cf45727929aac12c0b74547dd54729e
2004-09-13 13:13:18 +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
4e5ffc5f8d
Combine the implementation of LIKE and GLOB into a single parameterized
...
function. (CVS 1923)
FossilOrigin-Name: 0a47c8f86d1649e9ae7edd4c49a6fe5f5272351e
2004-08-31 00:52:37 +00:00
drh
4c755c0f53
Make sure the argument to ctype.h macros is always an unsigned character.
...
Ticket #839 . (CVS 1881)
FossilOrigin-Name: b065973898c06a81c69b70b3fa91c79334bd9b9a
2004-08-08 20:22:17 +00:00
drh
8cd9db004a
Use only unsigned characters for upper() and lower(). Ticket #708 . (CVS 1808)
...
FossilOrigin-Name: 2464f79e5ddf65e90ed84ccd793995fc2f713400
2004-07-18 23:06:53 +00:00
drh
9eb516c0eb
min() ignores NULL values. Ticket #800 . (CVS 1802)
...
FossilOrigin-Name: 166234a2b61e1d6a501e48dde1caec0a02bec90b
2004-07-18 20:52:32 +00:00
danielk1977
f46188911d
More coverage testing. (CVS 1754)
...
FossilOrigin-Name: 332921041040b343b6b568685ff55d21a624f502
2004-06-28 13:09:11 +00:00
danielk1977
3aeab9e438
Apply (1679) to version 3. Ticket #777 . (CVS 1680)
...
FossilOrigin-Name: 0a26b9158095f0995fce2f0ccdfb383ab26c76a5
2004-06-24 00:20:04 +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
drh
0e3d74761d
Make sure VdbeFunc entries are initialized before trying to destroy them.
...
Also, unrelated comment changes in build.c. (CVS 1643)
FossilOrigin-Name: fc3b3a8fe86980db4de402bb8e85f8f739fc3883
2004-06-19 17:33:07 +00:00