danielk1977
fa18bece7a
Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371)
...
FossilOrigin-Name: c0ce63196458c81e0859fc8a38f2dd2145a580bc
2007-09-03 11:04:22 +00:00
drh
056c8f782e
Additional tests for malformed UTF-8. (CVS 4011)
...
FossilOrigin-Name: 448d3ef670dce6d27c7d7b1be58088d45f8b6274
2007-05-15 18:35:21 +00:00
drh
4e05c83bc3
Additional parsing bugs fixed. (CVS 3981)
...
FossilOrigin-Name: d12a8924c6083cdff14990b4fd036ca386c2e34a
2007-05-11 01:44:50 +00:00
danielk1977
17374e8f94
Fix a potential buffer overrun in the replace() function. (CVS 3947)
...
FossilOrigin-Name: b0fb4a3cf6ddbc17ccd0c719b34a720d9090bc93
2007-05-08 14:39:04 +00:00
danielk1977
7de68a097e
Add a version of the LIKE operator to the icu extension. Requires optimisation. (CVS 3939)
...
FossilOrigin-Name: 3e96105c1f084a4ab4dad4de6f4759e43fc497f7
2007-05-07 16:58:02 +00:00
drh
7a928d75f4
Fix an invalid UTF8 encoding in the tests for the trim function. (CVS 3898)
...
FossilOrigin-Name: 4dbbfff4a7d4be197aac19c80400dafe10dd5e58
2007-05-02 15:36:01 +00:00
drh
d1e3a616ca
Internationalize the TRIM functions. Ticket #2323 . (CVS 3883)
...
FossilOrigin-Name: ff1f4e744728c8f55afae265246797b30fe98fb0
2007-04-27 21:59:52 +00:00
drh
709cff33dc
The replace() function should return NULL if the second argument is an
...
empty string. Ticket #2324 . (CVS 3877)
FossilOrigin-Name: e6a0c90dd9b4f7efe2153dd0c899b6e3d9846bd8
2007-04-27 01:18:02 +00:00
drh
1eb2538a33
Be careful not to use the result of sqlite3_value_blob() after changing
...
the representation of an object. Ticket #2290 . (CVS 3834)
FossilOrigin-Name: e14374e4e6f14a90ecb53c2e7c86908a220c6d68
2007-04-10 13:51:17 +00:00
drh
309b338673
Added TRIM, LTRIM, and RTRIM functions. (CVS 3698)
...
FossilOrigin-Name: 6fe13eeade4fc7099fbda1e6520640927c08debc
2007-03-17 17:52:42 +00:00
drh
26b6d90d74
First cut at an implementation of the REPLACE() function. We might yet
...
make this a compile-time option or move it into a separate source file. (CVS 3697)
FossilOrigin-Name: c2fe746ea782f84e850aaf3af7f5536b027a19a1
2007-03-17 13:27:54 +00:00
drh
137c728f5a
Replace the randomHex() function with separate functions
...
randomBlob() and hex(). (CVS 3620)
FossilOrigin-Name: f5ad74a9bc57e83c11beb3cf46bb6cd8c9de3f86
2007-01-29 17:58:28 +00:00
drh
63cf66f02e
Add the randomhex() function as a built-in. (CVS 3619)
...
FossilOrigin-Name: a6001589ab1349f7a6b4af941e9e0fd73d13c1c0
2007-01-29 15:50:05 +00:00
drh
b7481e70c5
Add the sqlite3_overload_function() API - part of the virtual table
...
interface. (CVS 3426)
FossilOrigin-Name: aa7728f9f5b80dbb1b3db124f84b9166bf72bdd3
2006-09-16 21:45:14 +00:00
drh
bdf67e0efe
Fix for the (unsupported) soundex algorithm so that it conforms to Knuth.
...
Ticket #1925 . Test cases added. (CVS 3358)
FossilOrigin-Name: 7810d1abf611ce40dd0de45610269359a8ca9222
2006-08-19 11:34:01 +00:00
danielk1977
4b2688ab31
Modifications so that compilation and testing with the various OMIT macros defined works. (CVS 3276)
...
FossilOrigin-Name: c6ea353bd9f5fe6c9cc3349d2034ada283f9c80e
2006-06-20 11:01:07 +00:00
drh
7f3759015a
The optimizer recognizes MATCH operators and allows virtual-tables to make
...
use of them. (CVS 3232)
FossilOrigin-Name: 136bed496b89943522310ec511199b78198d0844
2006-06-13 17:38:59 +00:00
drh
923782530b
SQLite now always chooses the column names for compound selects using
...
the left-most select. This makes SQLite work like other SQL database,
but it also is a change from historical behavior and may break some
scripts. Ticket #1721 . (CVS 3153)
FossilOrigin-Name: 80cda9f7ce83f2de6cd2fdaf6150bbc35b670fee
2006-03-26 01:21:22 +00:00
drh
d589a92a26
Change the ROUND() function to return a REAL value instead of TEXT.
...
Ticket #1699 . (CVS 3116)
FossilOrigin-Name: 9dbadfb2111f7d7f971e1832db3992ed5851d8b1
2006-03-02 03:02:48 +00:00
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
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
drh
90669c1dca
Fix and test the processing of sqlite3_result_error() withing aggregate
...
functions. Allow errors to come from the step function (a new
capability). Ticket #1632 . (CVS 2981)
FossilOrigin-Name: fd4a6bb1ac94d085dda247799c0a5c64aaeec046
2006-01-20 15:45:36 +00:00
drh
dddca28608
The sqlite TCL command no longer returns the hex address of the sqlite3*
...
structure. Instead there is a new command in testfixture to find that
information. (CVS 2852)
FossilOrigin-Name: 70b228575e045bc56013aab945334203ceb31d8b
2006-01-03 00:33:50 +00:00
drh
8a51256c0c
Create separate affinities for INTEGER and REAL. (CVS 2766)
...
FossilOrigin-Name: ce06c123d0c5663dbaf263c2e0aaf5d9cdeb2ccd
2005-11-14 22:29:05 +00:00
drh
8df447f0e6
Omit the SQLITE_AFF_INTEGER type affinity. All numeric values are now
...
of type real, though an integer representation is still sometimes used
internally for efficiency. (CVS 2753)
FossilOrigin-Name: e0d6f61c7de2c03b8fd17ef37cf1a0add36ee618
2005-11-01 15:48:24 +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
2501eb1df6
3rd argument to sqlite3Error() should always be a format string, never
...
user-supplied error message text. Ticket #1354 . (CVS 2583)
FossilOrigin-Name: d6146a542aacd10d349d432fe343cc17cc3b3ab5
2005-08-12 23:20:53 +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
53c0f7480b
Add the SQLITE_OMIT_TEMPDB compile time macro. (CVS 2427)
...
FossilOrigin-Name: c41d55443c2dd532147962b87f542fb7d37075fd
2005-03-29 03:10:59 +00:00
danielk1977
576ec6b32a
Improve test coverage for minimum feature builds. (CVS 2254)
...
FossilOrigin-Name: 9c4d0e13e8c5f3fc4d7fd8f495898372293f7fad
2005-01-21 11:55:25 +00:00
danielk1977
4489f9bdec
Fix some test scripts so that they work with a minimal build configuration. (CVS 2241)
...
FossilOrigin-Name: d267fb3ca3f31ee138c9613cb84e873ede7f141a
2005-01-20 02:17:01 +00:00
drh
c5cdca613a
Improved test coverage for vdbeaux.c. (CVS 2195)
...
FossilOrigin-Name: 3f46cd7767cf7c48dd1de7ae1c4104d6d1a609be
2005-01-11 16:54:14 +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
drh
92febd92ad
Tcl interface transfers values directly between SQLite and Tcl_Objs, without
...
at translation to strings. (CVS 1898)
FossilOrigin-Name: e97c331362545ce21117776c7b61d3488668f2bf
2004-08-20 18:34:20 +00:00
drh
9eb516c0eb
min() ignores NULL values. Ticket #800 . (CVS 1802)
...
FossilOrigin-Name: 166234a2b61e1d6a501e48dde1caec0a02bec90b
2004-07-18 20:52:32 +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
danielk1977
3aeab9e438
Apply (1679) to version 3. Ticket #777 . (CVS 1680)
...
FossilOrigin-Name: 0a26b9158095f0995fce2f0ccdfb383ab26c76a5
2004-06-24 00:20:04 +00:00
danielk1977
ece80f1e48
Handle corrupt journal file headers correctly. (CVS 1674)
...
FossilOrigin-Name: 46107da7eddbdda8b582e2ece2dc41222a70330a
2004-06-23 01:05: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
drh
ef4ac8f9df
Change the name of the TCL command from "sqlite" to "sqlite3" so that both
...
SQLite version 2 and SQLite version 3 can be used by Tcl at the same time. (CVS 1626)
FossilOrigin-Name: d705d051bed2b92b6c3bbcc75fe5b056633b9c31
2004-06-19 00:16:31 +00:00
danielk1977
3f6b087471
Use the faster LIKE function from sqlite v2. Add special user functions to
...
test builds to test the auxdata APIs. (CVS 1610)
FossilOrigin-Name: b9493c5facea4d24a6cbc4f6fa2f75dc2399a11d
2004-06-17 05:36:44 +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
drh
df0148931d
Remove the sqlite3_libencoding() api and the ISO8859 encoding option. (CVS 1523)
...
FossilOrigin-Name: b53640ed2232aaf173a71636073477d80407d11f
2004-06-02 00:41:09 +00:00
danielk1977
6d88bad4f9
Enhance the C function used to test sqlite3_create_function() from Tcl. (CVS 1476)
...
FossilOrigin-Name: c85e5f1528d098ea330ed0cf7e3c01cf9be93c10
2004-05-27 14:23:36 +00:00