/ History for src/func.c
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/func.c

2020-09-25
08:17
[01d7b722] part of check-in [6f5c1fde] Add reminder comment that, by definition, these functions won't be called from elsewhere in SQLite. Useful to remember for beginners who may suspect unusued code. (check-in: [6f5c1fde] user: shearer branch: btree-code-documentation, size: 64082)
2020-07-29
16:18
[daf312fb] part of check-in [a80ae2c9] Dozens and dozens of typo fixes in comments. This change adds no value to the end product and is disruptive, so it is questionable whether or not it will ever land on trunk. (check-in: [a80ae2c9] user: drh branch: typos, size: 64761)
2020-05-18
15:41
[3796e7e2] part of check-in [9e4a7b3e] Merge latest trunk changes into this branch. (check-in: [9e4a7b3e] user: dan branch: begin-concurrent, size: 64894)
2020-05-17
00:26
[2333eb42] part of check-in [1313557b] Use the sqlite3Realloc() interface internally, rather than the public sqlite3_realloc64() equivalent, to avoid unnecessary calls to sqlite3_initialize(). (check-in: [1313557b] user: drh branch: trunk, size: 64760)
2020-05-13
18:03
[4780623a] part of check-in [fce173cd] Implement the IIF(x,y,z) SQL function that is short-hand for "CASE WHEN x THEN y ELSE z END". For compatibility with SQL Server. (check-in: [fce173cd] user: drh branch: trunk, size: 64763)
17:26
[3065eb46] part of check-in [a116b20f] Remove unused constant SQLITE_FUNC_COALESCE. (check-in: [a116b20f] user: drh branch: trunk, size: 64701)
2020-04-09
18:29
[e9fc14ee] part of check-in [92f71a88] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [92f71a88] user: drh branch: begin-concurrent, size: 64871)
2020-03-19
18:13
[f3dcdc0e] part of check-in [11e0844f] Change the ESCAPE clause on the LIKE operator to override wildcard characters, in order to match the behavior of PosgreSQL. (check-in: [11e0844f] user: drh branch: trunk, size: 64737)
2020-02-04
20:08
[859933fb] part of check-in [f253618a] Merge latest trunk changes, including the SQLITE_ENABLE_CORRUPT_PGNO patch, into this branch. (check-in: [f253618a] user: dan branch: begin-concurrent, size: 64495)
2020-01-22
23:08
[108577ce] part of check-in [9f0f5d59] Fix a NEVER() macro that can be true if compiled with SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION. Ticket [b985f0bd1636d9bc] (check-in: [9f0f5d59] user: drh branch: trunk, size: 64361)
20:56
[9c00189c] part of check-in [bbbc2881] Merge version 3.31.0 (check-in: [bbbc2881] user: drh branch: begin-concurrent, size: 64420)
2020-01-17
19:14
[92249abc] part of check-in [7584e4b6] Fix #ifdefs so it compiles cleanly with all SQLITE_OMIT compile-time options. Update compile-time option testing. (check-in: [7584e4b6] user: drh branch: trunk, size: 64286)
2020-01-15
13:34
[e26a1128] part of check-in [95ba2f50] Merge fixes and enhancements from trunk into begin-concurrent. (check-in: [95ba2f50] user: drh branch: begin-concurrent, size: 64378)
2020-01-01
15:43
[259496e4] part of check-in [473892a8] New test-only SQL functions: implies_nonnull_row(), expr_compare(), and expr_implies_expr(). The SQLITE_TESTCTRL_INTERNAL_FUNCTIONS test-control is modified to toggle internal function access on and off for a single database connection. (check-in: [473892a8] user: drh branch: trunk, size: 64244)
13:55
[de2641a4] part of check-in [586a65a2] Factor out code generation for in-line SQL functions into a separate routine inside of expr.c. (check-in: [586a65a2] user: drh branch: trunk, size: 63911)
2019-12-31
18:39
[51120409] part of check-in [3bd095a5] Also set the SQLITE_DIRECTONLY flag on the load_extension() function. (check-in: [3bd095a5] user: drh branch: trunk, size: 63906)
2019-10-23
18:14
[3671aabe] part of check-in [97ba442b] Add uuid_string and uuid_blob functions (check-in: [97ba442b] user: numist branch: uuid-funcs, size: 66039)
2019-09-30
16:14
[2a62dc47] part of check-in [a003818f] Merge the 3.30.0 beta 1 changes from trunk. (check-in: [a003818f] user: drh branch: begin-concurrent, size: 64040)
2019-09-18
11:16
[ed33e38c] part of check-in [d49047c1] Fix an OOB read in the INSTR() function introduced yesterday by check-in [3fb40f518086c1e8] and detected by OSSFuzz. The test case is in TH3. (check-in: [d49047c1] user: drh branch: trunk, size: 63906)
2019-09-17
03:16
[6960ca6a] part of check-in [3fb40f51] Fix the instr() SQL function so that it makes a copy of its argument before changing the datatype, since the datatype affects processing. Also fix the sqlite3_value_text() routine so that it always works even for values obtained form sqlite3_value_dup(). Ticket [587791f92620090e] (check-in: [3fb40f51] user: drh branch: trunk, size: 63710)
2019-09-16
12:08
[17a24a0a] part of check-in [93b9ef3f] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [93b9ef3f] user: drh branch: begin-concurrent, size: 63413)
2019-08-08
15:24
[4ee36219] part of check-in [1e17ea2f] Remove support for STAT3. The sqlite_stat3 tables are ignored, if they exist. STAT4 continues to work as it always has, and as it is a superset of STAT3 is the recommended replacement. (check-in: [1e17ea2f] user: drh branch: omit-stat3, size: 63279)
2019-07-08
21:06
[2f4f4dff] part of check-in [7fff0803] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [7fff0803] user: drh branch: begin-concurrent, size: 63514)
2019-06-07
22:51
[905c0424] part of check-in [b141bae3] Remove code in the round() SQL function that became unreachable due to the optimization of check-in [e95138f5f4febde5] (check-in: [b141bae3] user: drh branch: trunk, size: 63380)
22:26
[f1ee70d5] part of check-in [67a68af5] When casting string values into numeric and the string has a prefix that looks like a number but total string is not a well-formed number, then take extra care that the result is either integer or real depending on what the prefix looks like. Fix for tickets [e8bedb2a184001] and [4c2d7639f076aa]. (check-in: [67a68af5] user: drh branch: trunk, size: 63494)
2019-05-30
13:47
[ad7a7752] part of check-in [e95138f5] Optimization to the round() SQL function for large input values without a fractional part. (check-in: [e95138f5] user: drh branch: trunk, size: 63492)
2019-05-14
21:51
[6e12d20b] part of check-in [5d3a6e18] Merge the latest trunk enhancements into begin-concurrent. (check-in: [5d3a6e18] user: drh branch: begin-concurrent, size: 63603)
2019-05-10
12:06
[08d6d07d] part of check-in [db9acef1] Fix the round() SQL function so that it handles infinities correctly. (check-in: [db9acef1] user: drh branch: trunk, size: 63469)
2019-05-08
19:32
[8c075dd8] part of check-in [ef0015fd] Simplification to the logic underlying PRAGMA case_sensitive_like. (check-in: [ef0015fd] user: drh branch: trunk, size: 63339)
17:27
[1d010f0b] part of check-in [eabe7f2d] Provide the SQLITE_OMIT_CASE_SENSITIVE_LIKE_PRAGMA compile-time option to omit the case_sensitive_like pragma. This change, in combination with documentation changes, is the current solution to ticket [a340eef47b0cad5]. (check-in: [eabe7f2d] user: drh branch: trunk, size: 63608)
2019-04-30
11:54
[ac05ea6b] part of check-in [f97626f9] Small performance increase and size reduction in the implementation of the LIKE and GLOB operators. (check-in: [f97626f9] user: drh branch: trunk, size: 63826)
2019-03-08
15:30
[88df51f4] part of check-in [667cce3d] Merge all the latest enhancements from trunk. (check-in: [667cce3d] user: drh branch: begin-concurrent-pnu, size: 64037)
2019-02-27
23:05
[2ccf4ae1] part of check-in [6ae4b8c5] Enable the LIKE optimization when the ESCAPE keyword is present and the PRAGMA case_sensitive_like pragma is ON. (check-in: [6ae4b8c5] user: drh branch: trunk, size: 63903)
2019-01-18
14:53
[0341881d] part of check-in [05df5f7a] Use the full 64-bit integer value in the argument to randomblob(). (check-in: [05df5f7a] user: drh branch: trunk, size: 63793)
2019-01-08
15:18
[6cf832ab] part of check-in [ce51f1a2] Performance improvement on the instr() function, especially for large haystacks. (check-in: [ce51f1a2] user: drh branch: trunk, size: 63781)
2018-11-30
16:26
[8efa2c81] part of check-in [81e626f4] Merge the mutex-free PRNG change into this branch. (check-in: [81e626f4] user: dan branch: begin-concurrent-pnu, size: 63820)
2018-09-18
21:35
[82aeef69] part of check-in [8849a463] In the Expr object, the Expr.eX field determines what value is stored in the Expr.x union. This mostly works, but there are issues identified by valgrind. (check-in: [8849a463] user: drh branch: expr-simplify, size: 63667)
2018-07-09
22:49
[7c288b4c] part of check-in [5023b1b8] Fixes for various harmless compiler warnings. (check-in: [5023b1b8] user: drh branch: trunk, size: 63686)
2018-07-07
20:55
[e9421403] part of check-in [a8b13002] Simplifications to the implementation of the sum() SQL function. (check-in: [a8b13002] user: drh branch: trunk, size: 63695)
19:47
[e3174d1f] part of check-in [fdef2a92] Add ALWAYS() macros on results of sqlite3_aggregate_context() calls in xInverse() implements, since they can never fail. (check-in: [fdef2a92] user: drh branch: trunk, size: 63703)
2018-07-05
18:19
[edbd402a] part of check-in [73391283] Fix a problem in the xInverse method of window-function group_concat(1). (check-in: [73391283] user: dan branch: trunk, size: 63400)
2018-07-02
17:45
[0aaa0b07] part of check-in [b6563647] Fix a problem in the xInverse callback for the built-in sum() window function. (check-in: [b6563647] user: dan branch: trunk, size: 63378)
15:03
[8a002cd2] part of check-in [bb9bfc3a] Fix a crash caused by a LIKE pattern that consists of a single escape character. Problem found by OSSFuzz. (check-in: [bb9bfc3a] user: dan branch: trunk, size: 63378)
12:07
[4d573e69] part of check-in [4f3c8a82] Fix a segfault caused by invoking a regular aggregate as a window-function. And some problems with count(*) when used as a window-function. (check-in: [4f3c8a82] user: dan branch: trunk, size: 63319)
2018-06-22
20:51
[d2c66d8e] part of check-in [5f04b016] Omit all window-function related code when building with SQLITE_OMIT_WINDOWFUNC. (check-in: [5f04b016] user: dan branch: exp-window-functions, size: 62815)
2018-06-19
21:15
[23d94996] part of check-in [7fa8f16e] Make the ieee754() a built-in function. Add the --ieee754 option to the ".dump" command in the shell to cause it to output floating-point values as ieee754() calls, so that the floating point number will be reproduced exactly. Not sure yet that we want to go this way, but it is one option. (check-in: [7fa8f16e] user: drh branch: ieee754, size: 62242)
17:13
[1d070c30] part of check-in [801074ce] Fix a problem with using min() or max() as a window function. (check-in: [801074ce] user: dan branch: exp-window-functions, size: 62420)
2018-06-18
16:55
[f1c244ba] part of check-in [da03fb43] Add new API function sqlite3_create_window_function(), for creating new aggregate window functions. (check-in: [da03fb43] user: dan branch: exp-window-functions, size: 62186)
2018-06-08
20:58
[a5ee3864] part of check-in [19c983b5] Add support for the WINDOW clause. (check-in: [19c983b5] user: dan branch: exp-window-functions, size: 62168)
11:45
[3e8a85f9] part of check-in [89bbc9ba] Fixes to allow group_concat() to be used as a window function. (check-in: [89bbc9ba] user: dan branch: exp-window-functions, size: 62118)
2018-06-02
21:04
[4bee7609] part of check-in [91c1cb7a] Add support for window functions row_number(), rank(), dense_rank() and percent_rank(). (check-in: [91c1cb7a] user: dan branch: exp-window-functions, size: 61552)
2018-05-23
20:55
[eff9c156] part of check-in [3a203660] Add support for "ROWS BETWEEN <expr> PRECEDING AND <expr> FOLLOWING" window frames. (check-in: [3a203660] user: dan branch: exp-window-functions, size: 61524)
2018-05-17
19:24
[b1a5122c] part of check-in [c9f0f140] Evaluate multiple window functions in a single pass if they use the same window definition. Add xValue callbacks for other built-in aggregate functions. (check-in: [c9f0f140] user: dan branch: exp-window-functions, size: 60932)
2018-05-16
20:58
[03c99a50] part of check-in [3781e520] Start of experimental implementation of SQL window functions. Does not yet work. (check-in: [3781e520] user: dan branch: exp-window-functions, size: 60399)
2018-05-09
13:46
[e2e3c026] part of check-in [87f261f0] Make the internal dynamic string interface available to extensions using the new sqlite3_str object and its associated methods. This is mostly just a renaming of internal objects and methods to use external names, through there are a few small wrapper functions. (check-in: [87f261f0] user: drh branch: trunk, size: 60398)
2018-02-10
02:31
[94f42cba] part of check-in [3aed949a] Fix misplaced testcase() macros from the previous check-in. (check-in: [3aed949a] user: drh branch: trunk, size: 60403)
2018-02-09
23:25
[385b9b01] part of check-in [fab2c2b0] Improve the performance of the built-in REPLACE() function in cases where it does many substitutions that make the string larger. OSSFuzz is reporting intermittant timeouts when running a test where it does a REPLACE() on a 930KB random blob. Perhaps this enhancement will fix that. (check-in: [fab2c2b0] user: drh branch: trunk, size: 60403)
2018-01-23
19:24
[9970db37] part of check-in [8b9c8eab] Remove an unreachable branch from sqlite3SkipAccumulatorLoad(). (check-in: [8b9c8eab] user: drh branch: trunk, size: 60015)
04:22
[227d17a0] part of check-in [9a4199ae] Slightly faster implementation of the length() SQL function. (check-in: [9a4199ae] user: drh branch: trunk, size: 60008)
03:44
[24d4746d] part of check-in [edd4e687] Slightly faster function dispatch in the virtual machine by avoiding unnecessary reinitialization of variables that are already correctly initialized. (check-in: [edd4e687] user: drh branch: trunk, size: 59897)
2018-01-04
19:20
[bd528d5e] part of check-in [a6eee0fc] Remove the snarky "_supported_" qualifier from the name of the sqlite_offset() SQL function. (check-in: [a6eee0fc] user: drh branch: trunk, size: 59846)
2017-12-29
15:04
[697a3ee3] part of check-in [7a7f826e] Change the function name to sqlite_unsupported_offset(X). Only enable the function if compiled with -DSQLITE_ENABLE_OFFSET_SQL_FUNC. The makefiles add that definition to shell builds. (check-in: [7a7f826e] user: drh branch: location-function, size: 59887)
2017-12-16
20:20
[a23ea9b8] part of check-in [51be9558] Add an experimental location(X) SQL function that attempt to return the location of the payload within the database for the record that contains column X. location(X) returns NULL if X is not an ordinary table column or if SQLite cannot figure out the location because it is using a covering index. (check-in: [51be9558] user: drh branch: location-function, size: 59804)
2017-10-30
18:49
[0fb9a2d6] part of check-in [37284d4e] Improve the performance of the LIKE operator by using strcspn() to aid wildcard matching. (check-in: [37284d4e] user: drh branch: trunk, size: 59655)
18:26
[dfe00937] part of check-in [4d336d74] Speed up wildcard searches in LIKE using strchr() (check-in: [4d336d74] user: drh branch: like-compare-opt, size: 60008)
2017-09-09
08:03
[8c46246d] part of check-in [e63d1a7c] Use a mutex-free PRNG for the random() and randomblob() SQL functions and for the randomness used during checkpoint operations. (check-in: [e63d1a7c] user: drh branch: mutex-free-randomness, size: 59663)
2017-08-25
19:51
[b4d259af] part of check-in [1783c54c] Fix a few over-length source code lines. No functional changes. (check-in: [1783c54c] user: drh branch: trunk, size: 59529)
2017-07-27
22:16
[8028a8f7] part of check-in [2495acf7] Enhance the like optimization so that it works with an ESCAPE clause. (check-in: [2495acf7] user: drh branch: branch-3.8.9, size: 57143)
20:24
[ed8888ae] part of check-in [f5d330f4] Enhance the like optimization so that it works with an ESCAPE clause. (check-in: [f5d330f4] user: drh branch: trunk, size: 59507)
2017-07-14
19:22
[e2854b19] part of check-in [26423867] Add requirements marks for some of the new features in the 3.20 release. (check-in: [26423867] user: drh branch: trunk, size: 58959)
2017-07-06
13:51
[7647140a] part of check-in [efb4aab0] More compact implementation of the typeof() SQL function. (check-in: [efb4aab0] user: drh branch: trunk, size: 58690)
2017-03-16
14:28
[9d52522c] part of check-in [6d85eb57] Simplified OOM detection in the instr() SQL function. (check-in: [6d85eb57] user: drh branch: trunk, size: 58676)
12:11
[72ed1518] part of check-in [6e59e903] Fix a crash that could follow an OOM condition in the instr() SQL function. Problem discovered by OSS-Fuzz. (check-in: [6e59e903] user: dan branch: trunk, size: 58928)
2017-01-03
14:39
[c67273e1] part of check-in [f778f58a] Put the affinity() function implementation inside of #ifdef SQLITE_DEBUG. (check-in: [f778f58a] user: drh branch: affinity-sql-func, size: 58737)
14:30
[04350956] part of check-in [c27cd8a8] Merge all the latest changes from trunk. (check-in: [c27cd8a8] user: drh branch: affinity-sql-func, size: 58710)
2016-12-30
17:40
[d8582ee9] part of check-in [14d855d2] Fix a crash that could occur following an OOM in the group_concat() function if the second argument is an SQLITE_BLOB value. (check-in: [14d855d2] user: dan branch: trunk, size: 58634)
15:16
[00cd4211] part of check-in [a0971e71] Strengthen the defense against OOM in the instr() SQL function. (check-in: [a0971e71] user: drh branch: trunk, size: 58634)
14:15
[e0190fd6] part of check-in [56ff72ab] Avoid passing NULL pointers to memcmp() or memcpy(), even when the "number-of-bytes" argument is passed 0. (check-in: [56ff72ab] user: dan branch: trunk, size: 58571)
2016-12-26
00:18
[18193418] part of check-in [57e40e1c] Add the built-in affinity() SQL function. (check-in: [57e40e1c] user: drh branch: affinity-sql-func, size: 58586)
2016-12-01
18:49
[43916c1d] part of check-in [a1e2b6ce] Faster version of patternCompare() that uses new return values rather than an extra parameter to communicate wildcard information back up to parent searches. (check-in: [a1e2b6ce] user: drh branch: pattern-compare-optimization, size: 58510)
17:34
[528e9259] part of check-in [c5e5614d] Modify the patternCompare() function (used for GLOB, LIKE) to better handle patterns containing multiple wildcard characters ("*", "%"). (check-in: [c5e5614d] user: dan branch: pattern-compare-optimization, size: 58255)
2016-11-04
12:05
[7057bc2c] part of check-in [b86b79c4] Avoid a crash that can occur after an obscure OOM in the built-in INSTR() function. (check-in: [b86b79c4] user: dan branch: trunk, size: 57764)
2016-08-04
01:47
[29cc9acb] part of check-in [4ada023c] Add an experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option. This changes has been merged into main branches via cherry-pick. (check-in: [4ada023c] user: drh branch: unknown-function, size: 57710)
2016-06-06
01:48
[61a4114c] part of check-in [5fb0c354] Small performance improvement in the LIKE function. (check-in: [5fb0c354] user: drh branch: trunk, size: 56952)
2016-04-21
01:58
[ef4c18c8] part of check-in [debafa5e] Test cases for SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION. (check-in: [debafa5e] user: drh branch: load-ext-security, size: 56951)
01:30
[b61726e7] part of check-in [b2ae5bfa] Revert sqlite3_enable_load_extension() to its original long-standing behavior. Add SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION which will enable only the C-API and leave the SQL function disabled. (check-in: [b2ae5bfa] user: drh branch: load-ext-security, size: 56885)
2016-04-20
00:30
[21057013] part of check-in [edb454e4] API Change: Modify sqlite3_enable_load_extension() so that it only enables/disables the load_extension() SQL function, and leaves the C-APIs enabled at all times. In this way, applications can enable extension loading for the C interface without having to expose that capability to the SQL. (check-in: [edb454e4] user: drh branch: load-ext-security, size: 56949)
2016-02-15
00:34
[552d3002] part of check-in [3201fbcc] Improvements to the application-defined function mechanism so that it is more compact and runs faster, especially when the application defines thousands of new SQL functions. (check-in: [3201fbcc] user: drh branch: many-app-functions, size: 56685)
2016-02-05
01:55
[86e55fee] part of check-in [c3ef0347] Improvements to the way that OOM errors are processed. (check-in: [c3ef0347] user: drh branch: oom-handling, size: 56524)
2016-01-30
12:50
[42b24923] part of check-in [0bdb41c4] Simplification and size reduction to the printf logic. Remove the bFlags parameter from sqlite3VXPrintf() and sqlite3XPrintf(). Use sqlite3XPrintf() instead of sqlite3_snprintf() for rendering P4 values in EXPLAIN output. (check-in: [0bdb41c4] user: drh branch: trunk, size: 56525)
2016-01-20
14:22
[ba6c03f9] part of check-in [204432ee] Case folding in the LIKE operator should look at all bits of the character, not just the lower 8 bits. Fix for ticket [80369eddd5c94]. This is a back-out of check-in [0a99a8c4facf] with a testcase added. (check-in: [204432ee] user: drh branch: trunk, size: 56503)
2016-01-11
03:48
[ccaf46fa] part of check-in [5dddcc78] Slightly smaller and faster LIKE/GLOB comparison implementation. (check-in: [5dddcc78] user: drh branch: trunk, size: 56482)
2015-12-30
14:06
[cf5e10af] part of check-in [0a99a8c4] Remove unnecessary tests from the LIKE pattern matcher. Slightly faster and slightly smaller, and it should also now works with EBCDIC. (check-in: [0a99a8c4] user: drh branch: trunk, size: 56641)
2015-12-01
21:23
[fe50a9ab] part of check-in [9e1d6d4c] Add the SQLITE_LIKE_DOESNT_MATCH_BLOBS compile-time option. (check-in: [9e1d6d4c] user: drh branch: trunk, size: 56662)
2015-11-24
21:23
[5790a898] part of check-in [e70ec71d] Add the sqlite3_strlike() interface, which might be useful for implementing LIKE operators on virtual tables. (check-in: [e70ec71d] user: drh branch: vtab-like-operator, size: 56414)
2015-08-31
21:16
[ecdd69ec] part of check-in [48713130] Not only date/time functions, but also functions like sqlite_version() and changes() need to be prohibited from use inside of indexes. (check-in: [48713130] user: drh branch: index-expr, size: 56216)
2015-07-24
17:14
[824bea43] part of check-in [f8991e6f] Fix compiler warnings. Get the new sqlite3_result_zeroblob64() working on loadable extensions. (check-in: [f8991e6f] user: drh branch: trunk, size: 56214)
16:24
[7810a7e8] part of check-in [c6445b9f] Add the sqlite3_result_zeroblob64() API. Use it in the SQL zeroblob() function. (check-in: [c6445b9f] user: dan branch: trunk, size: 56368)
15:49
[d08d2106] part of check-in [4e3e516a] More robust handling of zeroblob() with oversized arguments. Fix fuzzcheck so that it can be run with limited heap memory. (check-in: [4e3e516a] user: drh branch: trunk, size: 56398)
2015-06-17
13:20
[a98ea588] part of check-in [c89d7726] Performance optimization and comment fixes for the LIKE and GLOB operators. (check-in: [c89d7726] user: drh branch: trunk, size: 56377)
2015-06-02
16:09
[c215efa3] part of check-in [80889306] Add the built-in affinity() SQL function. This turns out to be not as useful as originally envisioned, so abandon it on a branch. (check-in: [80889306] user: drh branch: affinity-func, size: 56668)
2015-05-02
18:25
[6b5a0c83] part of check-in [f8b15979] Add the SQLITE_LIMIT_PRINTF_WIDTH setting for sqlite3_limit() and associated logic for preventing DOS attacks using printf() with oversized widths or precisions. (check-in: [f8b15979] user: drh branch: limit-printf-width, size: 56754)
11:45
[5b8b8e77] part of check-in [7952c322] Cleanup of the sqlite3StrAccumInit() function. No functionality changes. (check-in: [7952c322] user: drh branch: trunk, size: 56590)
2015-04-29
16:50
[98dadfd7] part of check-in [48f553b0] Use sqlite3_malloc64() in place of sqlite3_malloc() internally. (check-in: [48f553b0] user: drh branch: trunk, size: 56598)
2015-04-22
14:41
[e6b4680d] part of check-in [658e20f5] Prototype for an sqlite3_db_log() interface. (check-in: [658e20f5] user: drh branch: sqlite3_db_log, size: 56671)
2015-03-12
06:46
[1414c24c] part of check-in [8fb6bd9b] The valueFromFunction() routine is better able to handle OOM errors. Omit unreachable branches. (check-in: [8fb6bd9b] user: drh branch: stat4-function, size: 56595)
2015-03-07
00:57
[44512c55] part of check-in [26cb5145] Refactor some jump opcodes in the VDBE. Add JumpZeroIncr and DecrJumpZero. Fix the LIKE optimization to work with DESC sort order. (check-in: [26cb5145] user: drh branch: like-opt-fix, size: 56557)
2015-02-19
00:29
[f7f0f44b] part of check-in [28284ccc] First small steps toward brining trunk and apple-osx closer together. (check-in: [28284ccc] user: drh branch: trunk, size: 56318)
2014-12-02
16:38
[e331a645] part of check-in [43c4ba26] Merge all recent enhancements and bug fixes from trunk into the apple-osx branch. (check-in: [43c4ba26] user: drh branch: apple-osx, size: 55994)
2014-11-20
23:21
[6d3c4ebd] part of check-in [b1e6c02f] Fix a typo in a requirements mark on the abs() SQL function. (check-in: [b1e6c02f] user: drh branch: trunk, size: 55899)
2014-10-01
01:46
[93a4b3c5] part of check-in [2078454a] Merge the latest enhancements from trunk. (check-in: [2078454a] user: drh branch: apple-osx, size: 55994)
2014-09-25
13:17
[ba47c167] part of check-in [3467049a] Simplifications to the SQL function and aggregate calling procedures. (check-in: [3467049a] user: drh branch: trunk, size: 55899)
11:08
[727a324e] part of check-in [6c8924ca] Still more performance enhancements to the LIKE and GLOB operators. (check-in: [6c8924ca] user: drh branch: trunk, size: 55772)
03:51
[610b18af] part of check-in [5ab1023d] More performance optimization for the LIKE and GLOB operators. (check-in: [5ab1023d] user: drh branch: trunk, size: 54460)
00:56
[fd49097f] part of check-in [b2c89ef4] Size reduction and performance improvement in the LIKE and GLOB operators. (check-in: [b2c89ef4] user: drh branch: trunk, size: 53963)
2014-09-21
23:08
[04210a80] part of check-in [3967ebe8] Merge in all recent changes from trunk. (check-in: [3967ebe8] user: drh branch: apple-osx, size: 54179)
2014-09-16
14:16
[1629ccdd] part of check-in [0be3019e] Reorder the elements of the Mem object for a small size reduction and performance improvement. Moved into a branch because MSVC is unable to handle named structure initializer on nullMem. (check-in: [0be3019e] user: drh branch: micro-optimizations, size: 54084)
2014-09-15
14:46
[5d498933] part of check-in [0bdf1a08] Do not flatten aggregate subqueries that contain min() or max() functions so that if the min()/max() are discarded by the outer query, they still function and cause non-aggregate expression to be evaluated on the minimal or maximal row. (check-in: [0bdf1a08] user: drh branch: trunk, size: 54032)
2014-09-11
18:44
[d4d21870] part of check-in [7e4978c0] Add new APIs that take 64-bit length parameters: sqlite3_malloc64(), sqlite3_realloc64(), sqlite3_bind_blob64(), sqlite3_bind_text64(), sqlite3_result_blob64(), and sqlite3_result_text64(). Add the sqlite3_msize() interface. Internal memory allocation routines now use 64-bit unsigned length parameters for safety. Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid a integer overflow problem. (check-in: [7e4978c0] user: drh branch: trunk, size: 53958)
2014-09-10
19:01
[1b7ac915] part of check-in [a0455f9d] Add the ".user" shell command and implement the sqlite3_user_add() routine. Incremental check-in. The code compiles but does not work. (check-in: [a0455f9d] user: drh branch: user-auth, size: 53919)
2014-09-09
20:30
[63a0da71] part of check-in [6ab76c5f] Change the name of the _texte64() interfaces to just _test64(), without the "e". (check-in: [6ab76c5f] user: drh branch: 64-bit-lengths, size: 53858)
17:27
[2ae55b52] part of check-in [94954850] Add new APIs that take 64-bit length parameters: sqlite3_malloc64(), sqlite3_realloc64(), sqlite3_bind_blob64(), sqlite3_bind_texte64(), sqlite3_result_blob64(), and sqlite3_result_texte64(). Internal memory allocation routines also now use 64-bit unsigned length parameters for safety. Also add the sqlite3_msize() interface. Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid a integer overflow problem. (check-in: [94954850] user: drh branch: 64-bit-lengths, size: 53814)
2014-09-06
16:39
[05170377] part of check-in [e62aab5e] Fix typos in comments. No code changes. (check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 53819)
2014-08-14
13:39
[7a252bf7] part of check-in [08058df3] Merge the pre-3.8.6 changes from trunk into the apple-osx branch. (check-in: [08058df3] user: drh branch: apple-osx, size: 53916)
2014-08-06
11:49
[bbb724b7] part of check-in [7a145c94] Fix an obsolete comment in the func.c source file. No changes to code. (check-in: [7a145c94] user: drh branch: sessions, size: 53821)
2014-06-30
19:57
[fe7c04fe] part of check-in [f426876f] Merge the latest trunk changes into the apple-osx branch. (check-in: [f426876f] user: drh branch: apple-osx, size: 53987)
2014-06-17
16:11
[3bc223ea] part of check-in [38965484] Add the likely() function for symmetry with unlikely(). The likely(X) function means the same thing as likelihood(X,0.9375). (check-in: [38965484] user: drh branch: trunk, size: 53892)
2014-05-19
15:16
[3e7eca66] part of check-in [17349a49] Changes to help ensure that a multiplication does not overflow when computing the number of bytes needed for a memory allocation, and cause a malfunction. No problems existing problems were discovered. However, these changes should help to ensure that no problems arise in the future. (check-in: [17349a49] user: drh branch: safer-malloc, size: 53811)
2014-05-08
23:01
[6ace0c0c] part of check-in [9411d7dc] Initial attempt to merge in all trunk changes over the previous 1.5 years. This check-in compiles but there are compiler warnings and "make test" segfaults after only running a few test modules. (check-in: [9411d7dc] user: drh branch: apple-osx, size: 53911)
2014-05-07
20:24
[2e16316e] part of check-in [1c086dee] A better fix for the group_concat() problem. (check-in: [1c086dee] user: drh branch: trunk, size: 53816)
18:21
[2077ccd5] part of check-in [f03fbf37] Ensure that the sqlite3StrAccumAppend() routine is never called with a NULL second argument. Doing so is harmless when N==0, but it causes an assert() to fail that was placed to quiet static analyzers. (check-in: [f03fbf37] user: drh branch: tkt-55746f9e, size: 53853)
17:19
[1db49570] part of check-in [0deac873] Make sure the group_concat() function returns an empty string, not a NULL, if it has at least one input row. Fix for ticket [55746f9e65f8587]. (check-in: [0deac873] user: drh branch: tkt-55746f9e, size: 53829)
2014-05-06
15:28
[86373522] part of check-in [8ad0a123] Experimental changes that reduce the size of Expr objects from 72 to 64 bytes each on x64 and from 48 to 44 bytes each on x32. (check-in: [8ad0a123] user: drh branch: smaller-expr, size: 53844)
2014-03-08
19:07
[2945bb2c] part of check-in [ba39df9d] Fix a bug causing "SELECT char()" to return SQLITE_NOMEM. (check-in: [ba39df9d] user: dan branch: trunk, size: 53816)
2014-01-24
22:58
[f4499b39] part of check-in [87bf6063] Fixes for various clang warnings. (check-in: [87bf6063] user: drh branch: trunk, size: 53814)
2013-12-17
15:03
[6325ac2e] part of check-in [6db7052e] Add the printf() SQL function. (check-in: [6db7052e] user: drh branch: printf-sql-function, size: 53806)
2013-12-11
11:00
[fed87f35] part of check-in [a7e5fcd6] Fix harmless compiler warnings. (check-in: [a7e5fcd6] user: drh branch: trunk, size: 53099)
2013-11-21
14:33
[ef30d26a] part of check-in [1b0f779e] Add the ability to factor constant functions out of inner loops. But do not factor out non-constant functions, like random(). (check-in: [1b0f779e] user: drh branch: trunk, size: 53077)
2013-11-09
19:47
[96caa9df] part of check-in [8a036628] Updates to requirements marks. No changes to code. (check-in: [8a036628] user: drh branch: trunk, size: 53077)
2013-09-24
19:07
[5fb4103c] part of check-in [435ce3b3] Merge updates from trunk. (check-in: [435ce3b3] user: mistachkin branch: toTypeFuncs, size: 57139)
2013-09-13
17:47
[2c47b65e] part of check-in [bc446449] Adjust the query planner to take into account WHERE clause terms that do not drive indices. Add the unlikely() and likelihood() functions used to give hints to the query planner about the selectivity of WHERE clause terms. (check-in: [bc446449] user: drh branch: trunk, size: 53077)
2013-09-12
23:12
[be8482e9] part of check-in [73634ca4] Fix typo in a macro name: "GlogUpperToLower" should be "GlobUpperToLower" (check-in: [73634ca4] user: drh branch: trunk, size: 52897)
2013-09-11
11:38
[0aca17c8] part of check-in [29a359b8] Change the name of the two-argument unlikely() function to likelihood(). Add test cases. (check-in: [29a359b8] user: drh branch: unlikely-func, size: 53077)
2013-09-06
22:27
[8eed739f] part of check-in [8922be1a] Merge updates from trunk. (check-in: [8922be1a] user: mistachkin branch: toTypeFuncs, size: 56959)
20:30
[1f24db7b] part of check-in [94c4cdc5] When converting from a BLOB value in the tointeger() and toreal() SQL functions, make sure that endianness of the machine does not matter. (check-in: [94c4cdc5] user: mistachkin branch: toTypeFuncs, size: 56946)
15:23
[a297b1f3] part of check-in [036fc37a] Initial implementation of the unlikely() SQL function used as a hint to the query planner. (check-in: [036fc37a] user: drh branch: unlikely-func, size: 53077)
13:10
[7650d356] part of check-in [97b10e66] Combine the FuncDef.iPrefEnc and FuncDef.flags fields into a single new FuncDef.funcFlags field. (check-in: [97b10e66] user: drh branch: trunk, size: 52897)
2013-08-31
21:41
[ed294cd9] part of check-in [c4c53acb] Handle BLOBs specially, treating them as binary, in the tointeger() and toreal() SQL functions. (check-in: [c4c53acb] user: mistachkin branch: toTypeFuncs, size: 56197)
2013-08-29
01:17
[5c85fed3] part of check-in [047bd1c2] Prevent the implementation of the toreal() SQL function from being 'optimized' by MSVC. (check-in: [047bd1c2] user: mistachkin branch: toTypeFuncs, size: 55551)
01:01
[6099094d] part of check-in [abe82c63] Fix boundary case for the toreal() SQL function. (check-in: [abe82c63] user: mistachkin branch: toTypeFuncs, size: 55442)
2013-08-28
18:56
[f3ab79a3] part of check-in [ffc6e682] Merge updates from trunk. (check-in: [ffc6e682] user: mistachkin branch: toTypeFuncs, size: 55437)
2013-08-26
23:18
[5b064acd] part of check-in [a32af0ab] Merge the STAT4 capability into trunk. (check-in: [a32af0ab] user: drh branch: trunk, size: 52884)
2013-08-21
21:12
[d7be7789] part of check-in [700dbbea] Simplification to the StrAccum object and the sqlite3StrAccumAppend() method that also results in slightly better performance. (check-in: [700dbbea] user: drh branch: trunk, size: 52783)
2013-08-20
09:26
[c47ebaaf] part of check-in [5e1e9fd5] Add test cases for tointeger() and toreal() functions. Fixes for several tests. (check-in: [5e1e9fd5] user: mistachkin branch: toTypeFuncs, size: 55305)
02:07
[03a79c7a] part of check-in [4438b986] Fix compiler warnings and boundary cases for the tointeger() and toreal() functions. (check-in: [4438b986] user: drh branch: toTypeFuncs, size: 55222)
2013-08-12
16:34
[78c371dd] part of check-in [6d45078e] Re-enable reading from the sqlite_stat3 table (as well as sqlite_stat4). (check-in: [6d45078e] user: dan branch: sqlite_stat4, size: 52853)
2013-06-21
19:29
[835168be] part of check-in [9b837b05] Merge in the latest changes from trunk. Simplify the implementation of the tointeger() and toreal() functions. Fix test cases and put unambiguous labels on all testcase names. (check-in: [9b837b05] user: drh branch: toTypeFuncs, size: 55213)
18:32
[771ceaa9] part of check-in [fa2a91e6] Merge updates from trunk. (check-in: [fa2a91e6] user: mistachkin branch: toTypeFuncs, size: 56897)
2013-05-28
12:11
[5c50c1ea] part of check-in [a0d5cc93] Many small harmless comment changes. Removal of obsolete comments and fixing misspelled words. No changes to code. (check-in: [a0d5cc93] user: drh branch: trunk, size: 52752)
2013-05-15
08:00
[d15b1ffe] part of check-in [6fbad957] Merge updates from trunk. (check-in: [6fbad957] user: mistachkin branch: toTypeFuncs, size: 57065)
2013-04-10
16:13
[d3fdcff9] part of check-in [41d6ff32] Add the sqlite3_strglob() interface. (check-in: [41d6ff32] user: drh branch: trunk, size: 52920)
2013-03-13
06:48
[d83c67a1] part of check-in [12c318ef] Rename the experimental todouble() function to toreal(), update comments. (check-in: [12c318ef] user: mistachkin branch: toTypeFuncs, size: 56877)
2013-03-12
09:07
[cdf7b604] part of check-in [05c4463e] Increase strictness of the new experimental functions and add more tests. (check-in: [05c4463e] user: mistachkin branch: toTypeFuncs, size: 56891)
2013-03-11
01:23
[82dfd6b6] part of check-in [465fd853] Add experimental tointeger() and todouble() SQL functions. (check-in: [465fd853] user: mistachkin branch: toTypeFuncs, size: 56214)
2013-03-07
14:00
[48987c02] part of check-in [af542c82] Fix the char() function so that it works even if SQLITE_OMIT_UTF16 is defined. (check-in: [af542c82] user: drh branch: trunk, size: 52732)
06:42
[f829e79f] part of check-in [10ace06b] Fix two compilation issues, one warning and one error, that occur only when SQLITE_OMIT_UTF16 is defined. (check-in: [10ace06b] user: mistachkin branch: trunk, size: 52605)
2013-03-01
23:40
[91bc65eb] part of check-in [780d06c5] Complete the initialization of the loadable extension thunk table. Also fix other (harmless) compiler warnings. (check-in: [780d06c5] user: drh branch: trunk, size: 52539)
15:02
[b45b6a17] part of check-in [ff67d878] Fix the handling of UTF16 surrogate pairs in the char() function. (check-in: [ff67d878] user: drh branch: trunk, size: 52525)
2013-02-26
05:42
[cac45cca] part of check-in [6d797352] Remove extra use of the sqlite3_value_int64() function. (check-in: [6d797352] user: mistachkin branch: trunk, size: 52525)
2013-02-22
19:34
[18b120b9] part of check-in [209b2108] Two new SQL functions: unicode() and char(). (check-in: [209b2108] user: drh branch: unicode-function, size: 52556)
2012-12-04
11:03
[8147799b] part of check-in [12693deb] Fix a harmless compiler warning. (check-in: [12693deb] user: drh branch: trunk, size: 50990)
2012-10-25
03:07
[1755cafd] part of check-in [49ccae96] Implementation of the INSTR() SQL function, as found in SQL Server, MySQL, and Oracle. (check-in: [49ccae96] user: drh branch: instr, size: 50964)
2012-09-28
10:57
[8dea4e82] part of check-in [6a5c59dd] Merge the latest trunk changes (PRAGMA busy_timeout and the ORDER BY query planner enhancements) into the apple-osx branch. (check-in: [6a5c59dd] user: drh branch: apple-osx, size: 49537)
2012-09-17
18:56
[cbb90dc8] part of check-in [8b962c94] Remove an unnecessary parameter from sqlite3Utf8Read() resulting in a slight performance increase. (check-in: [8b962c94] user: drh branch: trunk, size: 49442)
2012-09-12
18:45
[2290b491] part of check-in [8398f77c] Add an implementation of the REGEXP operator and function. Only defined if compiled with SQLITE_ENABLE_REGEXP. (check-in: [8398f77c] user: drh branch: regexp, size: 51112)
2012-09-10
15:02
[b4e88b92] part of check-in [c2ad6911] Remove the stale implementation of the ifnull and coalesce functions - code that has been commented out for ages. No functional changes. (check-in: [c2ad6911] user: drh branch: trunk, size: 49585)
2012-08-25
01:38
[32552a2c] part of check-in [6723add4] Merge all the latest trunk changes into the apple-osx branch. (check-in: [6723add4] user: drh branch: apple-osx, size: 49971)
2012-06-19
04:36
[18dfedfb] part of check-in [d45f7a01] Move variable declaration to fix compilation with MSVC. (check-in: [d45f7a01] user: mistachkin branch: floating-point-conversions, size: 49876)
03:11
[22a180ac] part of check-in [8ecffca9] Improved accuracy on text-to-real and real-to-text conversions. Most conversions now round-trip correctly. Still need to fix some corner cases. (check-in: [8ecffca9] user: drh branch: floating-point-conversions, size: 49876)
2012-06-18
14:23
[fab88319] part of check-in [87597e98] Add the ieee754() SQL function that interprets a blob as a big-endian double. Arrange for the quote() SQL function to emit ieee754() functions in its output so that floating-point values in the database are exactly preserved by a ".dump" command in the shell. (check-in: [87597e98] user: drh branch: ieee754-func, size: 51103)
2012-03-31
02:46
[067e5000] part of check-in [18ec60ca] Merge all the latest trunk changes into the apple-osx branch. (check-in: [18ec60ca] user: drh branch: apple-osx, size: 49609)
2012-03-28
01:34
[c6b3c943] part of check-in [b899dbeb] Evaluate typeof(X) and length(Y) where X is any column and Y is a blob column without actually loading X and Y from disk. (check-in: [b899dbeb] user: drh branch: faster-typeof-and-length, size: 49514)
2012-03-05
16:39
[bbbbc0d9] part of check-in [504bf490] Pull in all the latest trunk changes. (check-in: [504bf490] user: drh branch: apple-osx, size: 49706)
2012-02-11
19:53
[e75f41c4] part of check-in [768df4e1] Another attempt to fix warnings in the randomFunc() function. (check-in: [768df4e1] user: drh branch: trunk, size: 49611)
2012-02-10
20:43
[482fb61e] part of check-in [33294bbd] Fix a warning coming from the Solaris Studio compiler. (check-in: [33294bbd] user: drh branch: trunk, size: 49623)
18:18
[5d67931f] part of check-in [e2485986] Pull the latest trunk changes into the apple-osx branch. (check-in: [e2485986] user: drh branch: apple-osx, size: 49717)
2012-02-02
18:42
[d7925f33] part of check-in [f27c7b4f] Fix a problem with NULL handling in aggregate min/max when returning values from the row containing the min or max. (check-in: [f27c7b4f] user: drh branch: output-minmax-row, size: 49622)
17:35
[f66c8795] part of check-in [adb29232] For queries of the form "SELECT p, max(q) FROM t1", the value of column p returned is the one on the same row that holds the maximum value of q. (check-in: [adb29232] user: drh branch: output-minmax-row, size: 49571)
2011-10-21
17:18
[8c5a50e7] part of check-in [be62ef05] Merge the latest trunk changes into the apple-osx branch. (check-in: [be62ef05] user: drh branch: apple-osx, size: 49412)
2011-10-13
18:00
[6261ce00] part of check-in [9984cc20] Simplifications to the upper() and lower() SQL functions. Updates to documentation on sqlite3_bind_text() and sqlite3_result_text() to make it clear that users should not try to create strings with embedded NULs and that if they do the result of expression on those strings is undefined. Ticket [57c971fc74524a] (check-in: [9984cc20] user: drh branch: trunk, size: 49317)
2011-06-20
11:57
[1b9d471b] part of check-in [4c69e827] Merge the latest trunk changes into the apple-osx branch. (check-in: [4c69e827] user: drh branch: apple-osx, size: 49478)
2011-06-15
12:43
[59bb046d] part of check-in [3899f3b9] Fix a couple of compiler warnings. (check-in: [3899f3b9] user: drh branch: broken-build, size: 49383)
2011-06-13
12:19
[d93772d9] part of check-in [77f01578] Use only unsigned values in the implementatin of LIKE and GLOB so that values won't overflow to negative when dealing with malformed UTF8. (check-in: [77f01578] user: drh branch: trunk, size: 49383)
2011-05-05
15:52
[c02fda65] part of check-in [f9b149e5] Merge the latest trunk changes into the apple-osx branch. (check-in: [f9b149e5] user: drh branch: apple-osx, size: 49478)
2011-04-27
18:08
[b9117e40] part of check-in [1bd1484c] Change the name of an internal function to avoid conflicts with the math library. (check-in: [1bd1484c] user: drh branch: trunk, size: 49383)
2011-04-25
18:03
[6d907d39] part of check-in [f7806e03] Add the (deliberately undocumented) sqlite_log() SQL function as a built-in. (check-in: [f7806e03] user: drh branch: trunk, size: 49380)
2011-04-04
13:11
[b6f0b843] part of check-in [6d78a25d] Merge in the latest changes from trunk. (check-in: [6d78a25d] user: drh branch: apple-osx, size: 49012)
2011-03-05
20:59
[3a8cb2fb] part of check-in [abf21394] Fix all known instances of signed-integer overflow. Within SQL expressions, integer overflow now forces coercion to floating point. The shift operators work with any integer right-hand operand with negative values reversing the direction of the shift. (check-in: [abf21394] user: drh branch: trunk, size: 48917)
13:54
[9b88e09d] part of check-in [04abab71] Fix an instance of signed arithmetic overflow and an one bit-shift overflow. Mark six other signed arithmetic overflow locations that need fixing. (check-in: [04abab71] user: drh branch: trunk, size: 49155)
2011-01-27
18:48
[343c0bd8] part of check-in [09d6c91d] Pull in all the changes from trunk up through the version 3.7.5 release candidate 1. (check-in: [09d6c91d] user: drh branch: apple-osx, size: 49235)
2010-12-15
18:54
[cb41f614] part of check-in [e1660764] When registering the built-in LIKE and GLOB functions, make sure that they are tagged with SQLITE_UTF8 so that if other application-defined LIKE and GLOB implementations are provided for UTF16, then the appropriate function will be selected. (check-in: [e1660764] user: drh branch: trunk, size: 49140)
2010-11-19
23:50
[3856c689] part of check-in [c8bc057c] Merge all the latest changes from the trunk into the apple-osx branch. (check-in: [c8bc057c] user: drh branch: apple-osx, size: 49232)
2010-09-30
00:50
[2b7cf54d] part of check-in [14eed3a0] Rework the text to numeric conversion routines so that they work with either UTF8 or UTF16 and do not require a NULL terminator. This allowed text to numeric conversion without reallocating the string. (check-in: [14eed3a0] user: drh branch: experimental, size: 49137)
2010-09-28
14:26
[b5664982] part of check-in [7be03ecc] Fix several harmless compiler warnings. (check-in: [7be03ecc] user: drh branch: trunk, size: 49101)
2010-08-27
17:48
[caa6c513] part of check-in [9a724dfb] Add the sqlite3_create_function_v2() API, a version of create_function that allows a destructor to be specified. (check-in: [9a724dfb] user: dan branch: trunk, size: 49095)
2010-08-18
00:24
[62373e48] part of check-in [866e9286] Merge the 3.7.1 pre-release snapshot changes as of 2010-08-18 into the apple-osx branch. (check-in: [866e9286] user: drh branch: apple-osx, size: 49180)
2010-08-07
11:46
[2448e711] part of check-in [f88c6367] Merge in all changes up to the 3.7.0.1 release. (check-in: [f88c6367] user: drh branch: apple-osx, size: 49110)
2010-08-03
18:06
[464b0dc7] part of check-in [57c09600] Fix disabled implementation-mark comments in func.c. (check-in: [57c09600] user: drh branch: trunk, size: 49085)
2010-07-24
16:34
[75dc1fd9] part of check-in [ac1f37a6] Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). (check-in: [ac1f37a6] user: drh branch: malloc-enhancement, size: 49005)
2010-06-16
19:48
[cc68e721] part of check-in [21ca87f6] Merge in changes up to and including the 3.6.23.1 release. (check-in: [21ca87f6] user: drh branch: apple-osx, size: 49107)
2010-04-25
20:58
[0c285994] part of check-in [064d3ddd] Remove an unreachable branch from the function initialization logic. (check-in: [064d3ddd] user: drh branch: trunk, size: 49015)
2010-04-24
14:02
[b4af8108] part of check-in [0291ed97] When commands such as ALTER TABLE and VACUUM use SQL internally, make sure they use only the built-in functions and not application-defined overrides for those functions. (check-in: [0291ed97] user: drh branch: trunk, size: 49010)
2010-02-26
16:37
[5dca069d] part of check-in [dd4962aa] Rename the sqlite_compile_option_*() SQL functions to sqlite_compileoption_*() for consistency with the C/C++ interface. (check-in: [dd4962aa] user: drh branch: trunk, size: 49012)
2010-02-25
15:28
[374f45d2] part of check-in [633d8747] Minor simplifications to the compile-time option reporting functions and pragmas to facilitate coverage testing. (check-in: [633d8747] user: drh branch: trunk, size: 49014)
14:44
[596688b5] part of check-in [a2550597] Add some technically unnecessary variable initializations to silence compiler warnings. (check-in: [a2550597] user: dan branch: branch-3.6.1, size: 41987)
2010-02-23
20:32
[d1fbbfe1] part of check-in [9f429434] Merge the compile-time option introspection interfaces into the trunk. (check-in: [9f429434] user: drh branch: trunk, size: 49117)
20:08
[248e2e88] part of check-in [76a0294a] Refactored compile time option diagnostic support to use strings identifiers instead of bitmask. (check-in: [76a0294a] user: shaneh branch: compile_opts, size: 49104)
04:19
[8854b7a2] part of check-in [84c97569] Test new api to report which options (defines) were used to compile SQLite. (check-in: [84c97569] user: shaneh branch: compile_opts, size: 48010)
2010-02-17
19:34
[3cd22e93] part of check-in [4b72e39b] Merge latest changes from the trunk into the apple-osx branch. (check-in: [4b72e39b] user: drh branch: apple-osx, size: 47573)
04:19
[3864490a] part of check-in [d76ad8b3] Avoid using the internal printf routine for round(x,y) in the common case where y==0. (check-in: [d76ad8b3] user: shaneh branch: trunk, size: 47478)
2010-01-20
01:26
[0645bcf3] part of check-in [96499b1d] Update the Apple OS-X branch to include all of the latest changes in trunk. (check-in: [96499b1d] user: drh branch: apple-osx, size: 47257)
2010-01-11
18:26
[7cd1b3ab] part of check-in [8bd0f814] Add a few documentation evidence comments to the built-in function implementations. (check-in: [8bd0f814] user: drh branch: trunk, size: 47162)
2009-12-16
23:46
[7b3a2069] part of check-in [5754a3a5] Merge the latest changes on trunk (and especially the fix for the (xANDy)OR(z) bug) into apple-osx. (check-in: [5754a3a5] user: drh branch: apple-osx, size: 46648)
2009-12-08
02:06
[69906340] part of check-in [003f3ed1] Add evidence marks for the abs() and soundex() SQL functions. (check-in: [003f3ed1] user: drh branch: trunk, size: 46553)
2009-12-07
23:53
[44bab6e3] part of check-in [ad08794d] Merge all changes associated with the version 3.6.21 release into the OS-X branch. (check-in: [ad08794d] user: drh branch: apple-osx, size: 45546)
2009-11-12
05:04
[bf54e120] part of check-in [d7b3801d] Update comment for substrFunc(). Added additional SUBSTR() test cases. (check-in: [d7b3801d] user: shaneh branch: trunk, size: 45451)
2009-11-11
20:53
[97cb15ef] part of check-in [5a474a86] Tweaks to the SUBSTR() function to make it dramatically faster in the common case where the input string is large but the 2nd and 3rd arguments are small positive integers. (check-in: [5a474a86] user: drh branch: trunk, size: 45386)
00:24
[5949e263] part of check-in [30055b25] Generate VDBE code for the built-in COALESCE() and IFNULL() functions. This allows unused arguments to never be evaluated, which is a performance win when the unused argument is a subquery. (check-in: [30055b25] user: drh branch: trunk, size: 45350)
2009-11-03
22:34
[1ddc1c93] part of check-in [941a01eb] Customizations for OSX contributed by Apple. (check-in: [941a01eb] user: adam branch: apple-osx, size: 44911)
2009-08-14
16:01
[e536218d] part of check-in [302dabe9] Incorporate fossil-scm version information into the build. Add the SQLITE_SOURCE_ID macro to the header. Add the sqlite3_sourceid() interface. Add the sqlite_source_id() SQL function. (check-in: [302dabe9] user: drh branch: trunk, size: 44816)
2009-06-19
16:44
[9856373f] part of check-in [90c3b23c] Make sure group_concat() ignores initial NULL values. (CVS 6787) (check-in: [90c3b23c] user: drh branch: trunk, size: 44424)
14:06
[d108b002] part of check-in [37ae5f5e] Reorganize and cleanup the prepared statement object. Remove code that has been commented out for ages and is no longer relevant to anything. (CVS 6786) (check-in: [37ae5f5e] user: drh branch: trunk, size: 44497)
2009-06-03
01:24
[006875b8] part of check-in [baea79fd] Additional changes to reduce stack usage. The SQLITE_SMALL_STACK compile-time option is now available. (CVS 6708) (check-in: [baea79fd] user: drh branch: trunk, size: 44555)
2009-05-28
01:00
[9d7b4772] part of check-in [4ac2bdfb] Additional refinements to Expr handling. Restore compression of trigger expressions. Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue. Remove an unnecessary ExprDup from CHECK constraint processing. And so forth. (CVS 6682) (check-in: [4ac2bdfb] user: drh branch: trunk, size: 44535)
2009-05-27
10:31
[be506759] part of check-in [7cb1c3ba] Simplifications to the Expr object: Remove Expr.span completely and convert Expr.token into a char* Expr.zToken. Also simplify the Token object by removing the Token.dyn and Token.quoted fields. (CVS 6681) (check-in: [7cb1c3ba] user: drh branch: trunk, size: 44501)
2009-04-20
12:07
[f667fe88] part of check-in [7f17956d] Do not use deprecated interfaces internally when compiling with SQLITE_OMIT_DEPRECATED. Ticket #3813. (CVS 6523) (check-in: [7f17956d] user: drh branch: trunk, size: 44493)
2009-04-15
15:16
[ac12ea20] part of check-in [b83fbf15] Fix the group_concat() function so that it inserts the separator string even if the initial content strings are empty. Ticket #3806. (CVS 6510) (check-in: [b83fbf15] user: drh branch: trunk, size: 44402)
13:39
[4ebe8c36] part of check-in [c0bba77a] Mark an branch in alter.c as always false. Only run the assert() on the sqlite3_aggregate_count() function in func.c if the SQLITE_OMIT_DEPRECATED compile-time option is off. (CVS 6508) (check-in: [c0bba77a] user: drh branch: trunk, size: 44381)
2009-04-08
23:04
[7d30fc85] part of check-in [f322be38] Add an assert() to the implementation of count(*) that checks the correct operation of the sqlite3_aggregate_count() function. (CVS 6473) (check-in: [f322be38] user: drh branch: trunk, size: 44343)
2009-04-02
14:05
[99ae90d4] part of check-in [995f2b9b] Change the way that the random() SQL function prevents the maximum negative integer so that it is testable. (CVS 6436) (check-in: [995f2b9b] user: drh branch: trunk, size: 43976)
13:36
[25edae19] part of check-in [eb65e64e] Use ALWAYS and NEVER macros on unchangeable conditions within func.c. (CVS 6435) (check-in: [eb65e64e] user: drh branch: trunk, size: 43609)
10:16
[13b7a7ec] part of check-in [868a487f] In the built-in SQL function implementations, improve some comments, fix an off-by-one error in detecting over-size strings, and add testcase() macros to verify that boundary values have been tested. (CVS 6434) (check-in: [868a487f] user: drh branch: trunk, size: 43586)
09:07
[ac81b4ff] part of check-in [a04f9e79] Enforce the run-time sqlite3_limit() length limit on zeroblob(), not just the compile-time SQLITE_MAX_LENGTH limit. (CVS 6433) (check-in: [a04f9e79] user: drh branch: trunk, size: 42914)
2009-04-01
16:33
[1d6a8689] part of check-in [94e2f815] Remove dead code from the UTF conversion routines. Fix a bug in sqlite3_prepare16_v2() in which an out-of-memory error fails to set the statement return pointer to NULL. (CVS 6423) (check-in: [94e2f815] user: drh branch: trunk, size: 42858)
2009-03-27
15:26
[42d12d31] part of check-in [1c6521e5] When "PRAGMA case_sensitive_like" is invoked, override all existing "LIKE" functions, including UTF-16 versions. (CVS 6394) (check-in: [1c6521e5] user: danielk1977 branch: trunk, size: 42911)
2009-02-24
10:01
[de2eed7d] part of check-in [d4aa6593] Optimize queries of the form "SELECT count(*) FROM <tbl>" by adding a sqlite3BtreeCount() interface to the btree layer. (CVS 6316) (check-in: [d4aa6593] user: danielk1977 branch: trunk, size: 42914)
2009-02-19
14:39
[2fb36cd7] part of check-in [d9f6ffbc] Changes to reduce the heap space consumed by triggers, views and tables in the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305) (check-in: [d9f6ffbc] user: danielk1977 branch: trunk, size: 42832)
2009-02-04
03:59
[35d6f4a9] part of check-in [5cef4000] Changes to completely remove all floating point ops if SQLITE_OMIT_FLOATING_POINT defined. Note that w/o fp, date/time, round, nan, etc. are all gone or limited in functionality. Updated some of the test scripts to support missing fp and 64-bit functionality. Ticket #3029. (CVS 6250) (check-in: [5cef4000] user: shane branch: trunk, size: 42785)
2009-02-03
15:50
[ec95417d] part of check-in [85e9196d] Remove several compiler warnings. (CVS 6239) (check-in: [85e9196d] user: drh branch: trunk, size: 42634)
13:19
[ccc2bc68] part of check-in [1ffe44e9] Fix a problem in check-in (6226) which could cause an assertion fault following a malloc failure. The prior check-in was for ticket #3624. (CVS 6235) (check-in: [1ffe44e9] user: drh branch: trunk, size: 42556)
13:10
[e8f46d1a] part of check-in [cd2e7f6c] Check-in (6230) introduced a bugs in SUBSTR() which was caught by the fuzz tester. Fixed by this check-in. Related to ticket #3628. (CVS 6234) (check-in: [cd2e7f6c] user: drh branch: trunk, size: 42492)
2009-02-02
21:57
[b4fe7d6b] part of check-in [f2ae82c4] Make group_concat() a 1- or 2-value function, as the documentation says it should be. Use the md5sum() function to verify ticket #3179, not group_concat(). This undoes the ill-advised group_concat() change of check-in (5233). (CVS 6233) (check-in: [f2ae82c4] user: drh branch: trunk, size: 42469)
17:30
[4a837d75] part of check-in [92e5c27f] Minor simplifications to SQL function implementations. (CVS 6231) (check-in: [92e5c27f] user: drh branch: trunk, size: 42439)
16:32
[f58648e1] part of check-in [5fc125d3] Update the SUBSTR function so that works consistently when the 2nd parameter is 0. Ticket #3628. (CVS 6230) (check-in: [5fc125d3] user: drh branch: trunk, size: 42513)
01:50
[a3aac948] part of check-in [b8b546b6] Restrict the RANDOM() function to have zero arguments. Ticket #3627. (CVS 6229) (check-in: [b8b546b6] user: drh branch: trunk, size: 42371)
2009-02-01
19:42
[910be7d2] part of check-in [779fce82] Fix SUBSTR() so that it returns NULL if any argument is NULL. Ticket #3626. (CVS 6228) (check-in: [779fce82] user: drh branch: trunk, size: 42371)
19:23
[5a9abbe0] part of check-in [2217339b] Fix the SUBSTR() function so that when the 3rd argument is negative, it counts backwards from the selected start point. Ticket #3625. (CVS 6227) (check-in: [2217339b] user: drh branch: trunk, size: 42243)
18:08
[8ead6d9a] part of check-in [ffebf10f] Change the replace() function to return a copy of its first argument when the 2nd argument is an empty string. Ticket #3624. (CVS 6226) (check-in: [ffebf10f] user: drh branch: trunk, size: 42145)
2009-01-24
11:30
[51b41e10] part of check-in [bfc71edc] Fix some minor compiler warnings. Added sqlite3Isalpha() for use in the soundex() function. (CVS 6203) (check-in: [bfc71edc] user: drh branch: trunk, size: 41958)
2009-01-20
16:53
[74ee4010] part of check-in [1041abd6] When not compiling for an EBCDIC system, use built-in alternatives to the tolowe r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) (check-in: [1041abd6] user: danielk1977 branch: trunk, size: 41959)
2008-12-10
23:04
[b0e1c613] part of check-in [0a1888a7] More code obfuscation designed to thwart compiler warning messages. (CVS 6015) (check-in: [0a1888a7] user: drh branch: trunk, size: 41949)
21:19
[8b5f6807] part of check-in [ea01d437] Additional work at eliminating silly compiler warnings. (CVS 6010) (check-in: [ea01d437] user: drh branch: trunk, size: 41950)
19:26
[1246828c] part of check-in [c872d554] Never use strlen(). Use our own internal sqlite3Strlen30() which is guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) (check-in: [c872d554] user: drh branch: trunk, size: 41875)
2008-11-19
16:52
[b4570eb7] part of check-in [d1abe8a1] Fix some compiler warnings that show up when building the amalgamation only. (CVS 5927) (check-in: [d1abe8a1] user: danielk1977 branch: trunk, size: 41845)
09:05
[bfe4dec1] part of check-in [88134322] Changes to avoid "unused parameter" compiler warnings. (CVS 5921) (check-in: [88134322] user: danielk1977 branch: trunk, size: 41663)
2008-10-28
17:52
[d8eb180e] part of check-in [679c0b35] Avoid exposing internal interfaces sqlite_attach() and sqlite_detach() as SQL scalar functions. Ticket #3466. (CVS 5846) (check-in: [679c0b35] user: danielk1977 branch: trunk, size: 41319)
2008-09-03
17:11
[8431b40a] part of check-in [e333c3f4] Work around an issue with the WINSCW compiler. (CVS 5671) (check-in: [e333c3f4] user: drh branch: trunk, size: 41375)
2008-09-02
15:44
[41a4cbbc] part of check-in [43f757c9] Add an extra 'const' qualifier to two arrays (in func.c and pragma.c) to ensure that they do not consume space in the data segment of the compiled object files. (CVS 5663) (check-in: [43f757c9] user: danielk1977 branch: trunk, size: 41373)
2008-09-01
19:14
[c02615ea] part of check-in [846fff5f] Modify the aBuiltinFunc array in func.c to use the WSD macros. (CVS 5653) (check-in: [846fff5f] user: danielk1977 branch: trunk, size: 41372)
18:34
[964a610b] part of check-in [573d92ab] Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) (check-in: [573d92ab] user: danielk1977 branch: trunk, size: 41181)
2008-08-21
20:21
[f2e0b55f] part of check-in [80d6a31c] Move date+time functions to start-time initialization. Additional start-time function cleanup. (CVS 5585) (check-in: [80d6a31c] user: drh branch: trunk, size: 41120)
18:49
[f52c6d1b] part of check-in [ef6936e5] Initialize the global built-in function table at start-time instead of at compile-time. This is less prone to malfunction when compile-time parameters very. (CVS 5583) (check-in: [ef6936e5] user: drh branch: trunk, size: 43562)
2008-08-20
14:49
[d97ff7b7] part of check-in [cb494e10] Add the pcache module from the experimental branch. Also change things so that most of the built-in SQL functions are kept in single static hash-table, rather than creating and populating a separate hash table for each open database connection. (CVS 5566) (check-in: [cb494e10] user: danielk1977 branch: trunk, size: 43322)
2008-07-28
19:34
[54efe220] part of check-in [e48f9697] Implement the "lookaside" memory allocation cache. Use of this cache makes the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) (check-in: [e48f9697] user: drh branch: trunk, size: 41867)
2008-07-08
22:28
[08422a7b] part of check-in [6cdb6841] Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378) (check-in: [6cdb6841] user: shane branch: trunk, size: 41859)
2008-06-18
15:34
[1e7d9569] part of check-in [70c6739f] Make sure aggregate functions can take any number of arguments up to the limit imposed by SQLITE_LIMIT_FUNCTION_ARGS. Ticket #3179. Modify the group_concat() function to take an unlimited number of arguments in order to facilitate testing this behavior. (CVS 5233) (check-in: [70c6739f] user: drh branch: trunk, size: 41829)
2008-06-15
02:51
[6ebd4401] part of check-in [65fe7b62] Continuing work on the new memory allocation subsystem. Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) (check-in: [65fe7b62] user: drh branch: trunk, size: 41816)
2008-04-27
18:40
[77a910a1] part of check-in [6a94d197] Remove all references to sqlite3_intptr_t. (CVS 5051) (check-in: [6a94d197] user: drh branch: trunk, size: 41817)
2008-03-20
16:30
[c9e8c7ff] part of check-in [4c4be4c3] Reinstate test cases for the limit tests. The sqlite3_limit() API is now tested and working. (CVS 4899) (check-in: [4c4be4c3] user: drh branch: trunk, size: 41856)
14:03
[3ac6e84e] part of check-in [60c77882] Initial implementation of per-connection limits and the sqlite3_limit() API. The sqllimits1.test script crashes. SQLITE_LIMIT_PAGE_COUNT and SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897) (check-in: [60c77882] user: drh branch: trunk, size: 41809)
2008-03-19
21:45
[ffce8131] part of check-in [54c55cae] Add a new interface, sqlite3_context_db_handle(), that returns the database connection pointer for an application-defined function. (CVS 4889) (check-in: [54c55cae] user: drh branch: trunk, size: 41747)
16:08
[00a4f0a7] part of check-in [e90c4cc8] Move SQL functions used for testing only out of func.c and into a new test file named test_func.c. Use sqlite3_auto_extension() to make sure the test functions appear in every database connection. (CVS 4883) (check-in: [e90c4cc8] user: drh branch: trunk, size: 41800)
14:15
[1832b2fd] part of check-in [15110ea0] Add a new api sqlite3_randomness() for providing access to SQLite's internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) (check-in: [15110ea0] user: drh branch: trunk, size: 46677)
2008-03-06
09:58
[a4f06d8a] part of check-in [e2a9f5f1] Handle non-autoconf build correctly with new changes (CVS 4832) (check-in: [e2a9f5f1] user: mlcreech branch: trunk, size: 46678)
07:35
[6d6d4817] part of check-in [54839a84] Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824) (check-in: [54839a84] user: mlcreech branch: trunk, size: 46654)
2008-02-19
18:29
[194cd8a9] part of check-in [7b50140d] Remove instances of strcpy() from test code. Use memcpy() or sqlite3_snprintf() instead. (CVS 4801) (check-in: [7b50140d] user: drh branch: trunk, size: 46634)
2008-01-21
16:22
[8e3d0c59] part of check-in [720bc20a] Miscellaneous test coverage improvements. (CVS 4734) (check-in: [720bc20a] user: drh branch: trunk, size: 46604)
2008-01-19
23:50
[a7f44eac] part of check-in [010f7b78] Additional test coverage improvements. Test coverage now stands at 98.73%. (CVS 4731) (check-in: [010f7b78] user: drh branch: trunk, size: 46690)
2007-12-13
21:54
[996071cf] part of check-in [4e91a267] Change all instances of "it's" in comments to either "its" or "it is", as appropriate, in case the comments are ever again read by a pedantic grammarian. Ticket #2840. (CVS 4629) (check-in: [4e91a267] user: drh branch: trunk, size: 46696)
2007-12-11
04:23
[9c87ddf9] part of check-in [64787d78] Fix a 'const' issue in trimFunc(). (CVS 4608) (check-in: [64787d78] user: danielk1977 branch: trunk, size: 46705)
2007-12-10
18:07
[5b713bbf] part of check-in [6adbe91e] Fix a macro in func.c that causes problems for the amalgamation. (CVS 4605) (check-in: [6adbe91e] user: drh branch: trunk, size: 46662)
2007-12-07
18:39
[a8548fbc] part of check-in [754298a7] Get the LIKE and GLOB operators working again on systems using the EBCDIC character set. (CVS 4597) (check-in: [754298a7] user: drh branch: trunk, size: 46642)
2007-11-28
22:36
[49f98cfe] part of check-in [221aee72] Add the {quote: StrAccum} object for accumulating strings. Revamp xprintf to use the new object. Rewrite the group_concat() function to use the new object. Productize and test the group_concat() function. (CVS 4578) (check-in: [221aee72] user: drh branch: trunk, size: 46283)
2007-11-01
17:38
[73b4974e] part of check-in [61987a89] Add a prototype "group_concat()" aggregate function to func.c. Disabled by default. No documentation nor test cases. No effort to make it efficient. (CVS 4519) (check-in: [61987a89] user: drh branch: trunk, size: 46049)
2007-10-12
19:11
[e8e89788] part of check-in [4a807d48] Make the 3rd parameter of the SUBSTR() function optional. Ticket #2579. (CVS 4486) (check-in: [4a807d48] user: drh branch: trunk, size: 44919)
2007-09-03
11:04
[9d88141c] part of check-in [c0ce6319] Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371) (check-in: [c0ce6319] user: danielk1977 branch: trunk, size: 44789)
2007-09-01
17:00
[7c59882c] part of check-in [5842f68c] Remove code for calling the SQL function randstr() with 0 or 1 argument, as it is registered with sqlite as requiring exactly 2. Also test io errors in sqlite3_release_memory(). (CVS 4365) (check-in: [5842f68c] user: danielk1977 branch: trunk, size: 44840)
2007-08-30
16:30
[10135a09] part of check-in [c073b780] Fix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16 version of func.test. (CVS 4344) (check-in: [c073b780] user: danielk1977 branch: trunk, size: 44773)
2007-08-29
14:06
[30f9562b] part of check-in [c790c234] Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323) (check-in: [c790c234] user: danielk1977 branch: trunk, size: 44754)
12:31
[4db632f1] part of check-in [e38ef81b] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 44572)
2007-08-23
02:47
[aa8a3a8d] part of check-in [21f6b310] Improvements to memory leak detection. The --backtrace=NNN option is now recognized by tester.tcl. Memory leak summaries are automatically written to the file ./memleak.txt and each leak is tagged with the test in which it occurred. The quick.test script runs on Linux with no errors and no leaks. (CVS 4273) (check-in: [21f6b310] user: drh branch: trunk, size: 44247)
2007-08-21
19:33
[36440cb0] part of check-in [92872761] The sqlite3_value object now carries an sqlite3* pointer to use for recording malloc failures. This eliminates the need to pass sqlite3* pointers into many internal interfaces. Also added more mutexing. (CVS 4263) (check-in: [92872761] user: drh branch: trunk, size: 44184)
10:44
[8516d5f9] part of check-in [fbbd5bda] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda] user: drh branch: trunk, size: 44196)
2007-08-16
10:36
[472c0610] part of check-in [384d0ca9] Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234) (check-in: [384d0ca9] user: danielk1977 branch: trunk, size: 44244)
10:09
[4195c626] part of check-in [77b16713] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (check-in: [77b16713] user: danielk1977 branch: trunk, size: 44238)
04:30
[bd94a8aa] part of check-in [deb7ecd6] Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) (check-in: [deb7ecd6] user: drh branch: trunk, size: 44220)
2007-07-26
06:50
[28daebcd] part of check-in [b88af182] Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185) (check-in: [b88af182] user: danielk1977 branch: trunk, size: 44213)
2007-07-23
19:12
[dcba54fc] part of check-in [9a059cb6] Rework the UTF8 reader logic in order to avoid the use of malloc(). Ticket #2523. (CVS 4175) (check-in: [9a059cb6] user: drh branch: trunk, size: 44162)
2007-06-22
15:21
[6b45261a] part of check-in [68677e42] Extend fts2 so that user defined tokenizers may be added. Add a tokenizer that uses the ICU library if available. Documentation and tests to come. (CVS 4108) (check-in: [68677e42] user: danielk1977 branch: trunk, size: 44111)
2007-06-07
19:08
[4668843e] part of check-in [f4021843] Make sure zeroblob does reasonable things with a negative argument or an argument that is larger than the maximum blob size. (CVS 4048) (check-in: [f4021843] user: drh branch: trunk, size: 43944)
2007-05-15
14:40
[dfd0dd49] part of check-in [9b91502e] Remove the alternative UTF-16 implementation of SUBSTR(). It does not work anymore and the UTF-8 version can do everything that the UTF-16 version does. (CVS 4009) (check-in: [9b91502e] user: drh branch: trunk, size: 43856)
13:27
[047c974d] part of check-in [cf2dd45b] Clarification on the best practices for using the _bytes() APIs. Change sqlite3_value_blob() to force the representation to be purely a BLOB and not a dual BLOB/String. Ticket #2360. (CVS 4005) (check-in: [cf2dd45b] user: drh branch: trunk, size: 43964)
11:55
[fc1524fd] part of check-in [6c8ad279] A new approach for UTF-8 translation. (CVS 4004) (check-in: [6c8ad279] user: drh branch: trunk, size: 43178)
01:13
[cdbe36f2] part of check-in [75d57308] The built-in substr() function applied to a BLOB counts bytes, not characters. (CVS 3997) (check-in: [75d57308] user: drh branch: trunk, size: 43412)
2007-05-12
06:11
[b6586f83] part of check-in [2e80736d] Bugfixes for assert() failures found by fuzz.test. (CVS 3986) (check-in: [2e80736d] user: danielk1977 branch: trunk, size: 42751)
2007-05-10
13:23
[f57e0111] part of check-in [9c0050a1] Fix a C++ism in func.c. (CVS 3970) (check-in: [9c0050a1] user: drh branch: trunk, size: 42726)
2007-05-09
08:24
[6282d202] part of check-in [8819617b] Fix enforcement of the LIKE_PATTERN limit. (CVS 3962) (check-in: [8819617b] user: danielk1977 branch: trunk, size: 42734)
2007-05-08
20:37
[1fccb037] part of check-in [e9f56ead] Fix the amalgamation generator so that all non-API functions have file scope. (CVS 3958) (check-in: [e9f56ead] user: drh branch: trunk, size: 42727)
15:46
[1598afc9] part of check-in [0cf518ce] Do not allocate so much surplus memory in the implementation of the replace() function. (CVS 3951) (check-in: [0cf518ce] user: drh branch: trunk, size: 42727)
15:34
[21a7e730] part of check-in [42e6c826] Limit the length of the patterns on LIKE and GLOB to avoid problems with deep recursion and N^2 behavior. (CVS 3950) (check-in: [42e6c826] user: drh branch: trunk, size: 42701)
15:15
[f06e14b4] part of check-in [17c4235c] Introduce the (experimental) sqlite3_result_error_toobig() API that function implementations can use to signal SQLite that the function result is too big to represent. (CVS 3949) (check-in: [17c4235c] user: drh branch: trunk, size: 42409)
14:39
[72801217] part of check-in [b0fb4a3c] Fix a potential buffer overrun in the replace() function. (CVS 3947) (check-in: [b0fb4a3c] user: danielk1977 branch: trunk, size: 42540)
12:12
[755a8c58] part of check-in [031a5915] Begin adding code to explicitly limit the size of strings and blobs. (CVS 3943) (check-in: [031a5915] user: drh branch: trunk, size: 42271)
2007-05-07
19:31
[af70f33e] part of check-in [011e7db2] Fix an NULL deref in the randomblob() function following a malloc failure. (CVS 3940) (check-in: [011e7db2] user: drh branch: trunk, size: 41746)
2007-05-04
13:15
[9445a7e2] part of check-in [ba4845b3] Eliminate all uses of sprintf() and strcpy(). These were not being misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) (check-in: [ba4845b3] user: drh branch: trunk, size: 41729)
2007-05-02
02:08
[a4bc09fe] part of check-in [6f4f8ba7] Fix some compiler warnings. Add the (untested) zeroblob() SQL function. (CVS 3895) (check-in: [6f4f8ba7] user: drh branch: trunk, size: 41719)
2007-04-27
21:59
[b40a6320] part of check-in [ff1f4e74] Internationalize the TRIM functions. Ticket #2323. (CVS 3883) (check-in: [ff1f4e74] user: drh branch: trunk, size: 41389)
17:16
[89d8547a] part of check-in [e92bd97a] Make sure sqlite3_value_bytes() does not reformat the content after a call to sqlite3_value_blob(). Add documentation to explain this hazard. Add many new tests. Ticket #2321. (CVS 3880) (check-in: [e92bd97a] user: drh branch: trunk, size: 40379)
01:18
[b989aa0e] part of check-in [e6a0c90d] The replace() function should return NULL if the second argument is an empty string. Ticket #2324. (CVS 3877) (check-in: [e6a0c90d] user: drh branch: trunk, size: 40355)
2007-04-25
18:23
[acb2c505] part of check-in [9cb0ed6e] Fix segfaults that can occur if a malloc failure happens just before a built-in function calls sqlite3_value_text(). (CVS 3874) (check-in: [9cb0ed6e] user: drh branch: trunk, size: 40337)
2007-04-10
13:51
[007d957c] part of check-in [e14374e4] Be careful not to use the result of sqlite3_value_blob() after changing the representation of an object. Ticket #2290. (CVS 3834) (check-in: [e14374e4] user: drh branch: trunk, size: 40284)
2007-03-17
17:52
[94372fe3] part of check-in [6fe13eea] Added TRIM, LTRIM, and RTRIM functions. (CVS 3698) (check-in: [6fe13eea] user: drh branch: trunk, size: 40284)
13:27
[683c2d66] part of check-in [c2fe746e] 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) (check-in: [c2fe746e] user: drh branch: trunk, size: 38485)
2007-01-29
17:58
[b7e1e220] part of check-in [f5ad74a9] Replace the randomHex() function with separate functions randomBlob() and hex(). (CVS 3620) (check-in: [f5ad74a9] user: drh branch: trunk, size: 36501)
15:50
[5df52600] part of check-in [a6001589] Add the randomhex() function as a built-in. (CVS 3619) (check-in: [a6001589] user: drh branch: trunk, size: 36032)
2006-09-16
21:45
[af537156] part of check-in [aa7728f9] Add the sqlite3_overload_function() API - part of the virtual table interface. (CVS 3426) (check-in: [aa7728f9] user: drh branch: trunk, size: 35294)
2006-08-19
11:34
[dd9cea8e] part of check-in [7810d1ab] Fix for the (unsupported) soundex algorithm so that it conforms to Knuth. Ticket #1925. Test cases added. (CVS 3358) (check-in: [7810d1ab] user: drh branch: trunk, size: 35616)
2006-06-24
11:51
[f357a81b] part of check-in [255aa912] A few more test cases to improve coverage of virtual table module related code. (CVS 3292) (check-in: [255aa912] user: danielk1977 branch: trunk, size: 35477)
2006-06-17
14:12
[a8a52723] part of check-in [e08e2dda] Add the load_extension() SQL function. (CVS 3269) (check-in: [e08e2dda] user: drh branch: trunk, size: 35441)
2006-06-13
19:26
[01e55989] part of check-in [9372481f] The (unsupported) soundex() function returns '?000' when given a NULL. Ticket #1845. (CVS 3233) (check-in: [9372481f] user: drh branch: trunk, size: 34727)
17:39
[16eaca47] part of check-in [136bed49] The optimizer recognizes MATCH operators and allows virtual-tables to make use of them. (CVS 3232) (check-in: [136bed49] user: drh branch: trunk, size: 34702)
2006-05-11
13:25
[acbbf533] part of check-in [a8909f3e] Fix comments on the implementation of the SUM() function. (CVS 3183) (check-in: [a8909f3e] user: drh branch: trunk, size: 34335)
2006-04-07
13:26
[7dac3a08] part of check-in [76aef93c] Avoid the use of atof(). Ticket #1756. (CVS 3168) (check-in: [76aef93c] user: drh branch: trunk, size: 34742)
2006-03-16
16:19
[380f2f8e] part of check-in [6c5175bc] Fix some compiler warnings. (CVS 3140) (check-in: [6c5175bc] user: drh branch: trunk, size: 34726)
2006-03-02
03:02
[ea1a4480] part of check-in [9dbadfb2] Change the ROUND() function to return a REAL value instead of TEXT. Ticket #1699. (CVS 3116) (check-in: [9dbadfb2] user: drh branch: trunk, size: 34720)
2006-02-23
21:51
[402b305b] part of check-in [5d2e7ea0] Make sure the random() function always returns a value that can be passed to abs(). (CVS 3109) (check-in: [5d2e7ea0] user: drh branch: trunk, size: 34734)
21:43
[b1919255] part of check-in [942c5095] 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) (check-in: [942c5095] user: drh branch: trunk, size: 34592)
2006-02-11
17:34
[aa62ef0f] part of check-in [1c3e6002] 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) (check-in: [1c3e6002] user: drh branch: trunk, size: 34452)
2006-02-09
22:13
[93d004b4] part of check-in [9e04f8fd] 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) (check-in: [9e04f8fd] user: drh branch: trunk, size: 34057)
18:35
[49f49131] part of check-in [44bd7ba4] 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) (check-in: [44bd7ba4] user: drh branch: trunk, size: 33526)
17:47
[aad8c947] part of check-in [c72b9461] Integer overflow in SUM causes an exception. Ticket #1669. (CVS 3064) (check-in: [c72b9461] user: drh branch: trunk, size: 33840)
13:38
[b21d89f5] part of check-in [a9169e87] Avoid overflowing the 48-bit mantissa of a floating point number when summing large integers in the SUM() function. Ticket #1664. (CVS 3061) (check-in: [a9169e87] user: drh branch: trunk, size: 33711)
2006-01-17
13:21
[96b26601] part of check-in [0505405f] Various fixes that allow the malloc() failure tests to pass again. (CVS 2963) (check-in: [0505405f] user: danielk1977 branch: trunk, size: 33701)
2006-01-12
22:17
[be4c026c] part of check-in [a7f528ff] 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) (check-in: [a7f528ff] user: drh branch: trunk, size: 33723)
2006-01-09
16:12
[e013c3b6] part of check-in [3e75d3d5] Fix some errors to do with attached databases and text encodings in shared-cache mode. (CVS 2895) (check-in: [3e75d3d5] user: danielk1977 branch: trunk, size: 33210)
2006-01-06
21:52
[5e4204b2] part of check-in [9d71b7de] Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878) (check-in: [9d71b7de] user: drh branch: trunk, size: 33202)
2005-12-09
20:02
[25f1e571] part of check-in [83a59151] Clean up annoying (and pointless) compiler warnings about differing signedness. (CVS 2810) (check-in: [83a59151] user: drh branch: trunk, size: 33168)
2005-12-06
17:19
[f5171a1b] part of check-in [5e04ec69] Modify ATTACH and DETACH to execute at runtime instead of compile time. (CVS 2803) (check-in: [5e04ec69] user: danielk1977 branch: trunk, size: 33056)
2005-10-13
02:09
[7d81dccd] part of check-in [a0bdb584] 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) (check-in: [a0bdb584] user: drh branch: trunk, size: 33018)
2005-09-08
20:37
[f63d4172] part of check-in [62818594] SUM returns NULL when it has no inputs. Ticket #1413. (CVS 2678) (check-in: [62818594] user: drh branch: trunk, size: 33012)
19:45
[ebf56bef] part of check-in [2e6230ed] 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) (check-in: [2e6230ed] user: drh branch: trunk, size: 33046)
10:37
[c1027f4f] part of check-in [21adf4bd] 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) (check-in: [21adf4bd] user: drh branch: trunk, size: 33016)
2005-09-06
20:36
[713cf33a] part of check-in [7ecf3654] Cleanup the processing of MEM_Agg elements. (CVS 2660) (check-in: [7ecf3654] user: drh branch: trunk, size: 32743)
2005-08-28
17:00
[9da04a62] part of check-in [ef84ff79] 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) (check-in: [ef84ff79] user: drh branch: trunk, size: 32754)
2005-08-27
13:16
[34085cf5] part of check-in [51a38134] Fix comment in vdbeapi.c. Remove unused structure definition from func.c. (CVS 2629) (check-in: [51a38134] user: drh branch: trunk, size: 32600)
2005-08-14
01:20
[5b12db87] part of check-in [72ee21c0] The case_sensitive_like pragma added. Test cases added for the LIKE optimization. (CVS 2592) (check-in: [72ee21c0] user: drh branch: trunk, size: 32856)
2005-08-13
03:07
[a90ea502] part of check-in [4f47c3c8] Make the round() function work correctly on numbers with very large exponents. Ticket #1340. (CVS 2585) (check-in: [4f47c3c8] user: drh branch: trunk, size: 31047)
2005-07-09
02:38
[2be0799d] part of check-in [431999da] Use the internal sqlite3_snprintf function instead of sprintf to avoid cross-platform incompatibilities. Ticket #1316. (CVS 2545) (check-in: [431999da] user: drh branch: trunk, size: 30984)
2005-07-08
13:53
[e6637354] part of check-in [b72bff81] Add the SQLITE_CASE_SENSITIVE_LIKE compile-time option. (CVS 2539) (check-in: [b72bff81] user: drh branch: trunk, size: 30962)
2005-06-25
18:42
[cbdf7256] part of check-in [17631785] Remove the blob(), text() and numeric() functions added in (2524) and replace them with the standard CAST operator. Ticket #1287. (CVS 2527) (check-in: [17631785] user: drh branch: trunk, size: 30599)
2005-06-22
10:53
[301b81af] part of check-in [affb0fa2] Add built-in functions numeric(), text(), and blob() that coerce types. Ticket #1287. (CVS 2524) (check-in: [affb0fa2] user: drh branch: trunk, size: 32686)
2005-05-24
12:01
[f208d71f] part of check-in [5fadb464] Move a few things around to make building without the parser easier. (CVS 2479) (check-in: [5fadb464] user: danielk1977 branch: trunk, size: 30605)
2005-05-22
10:44
[d09df82e] part of check-in [20bd303e] Add hook to register SSE user-functions. (CVS 2471) (check-in: [20bd303e] user: danielk1977 branch: trunk, size: 30651)
2005-02-15
21:36
[ff0673a2] part of check-in [dbd11a0c] Move the special built-in SQL functions used by ALTER TABLE out of func.c and into alter.c. (CVS 2343) (check-in: [dbd11a0c] user: drh branch: trunk, size: 30535)
20:47
[deba954e] part of check-in [90d6573c] Split the logic for the ALTER TABLE command off into a separate source code file. (CVS 2342) (check-in: [90d6573c] user: drh branch: trunk, size: 35631)
2005-02-09
01:40
[4538f82c] part of check-in [ddcea6f8] Document SQLITE_DEFAULT_CACHE_SIZE and SQLITE_DEFAULT_TEMP_CACHE_SIZE macros. (CVS 2320) (check-in: [ddcea6f8] user: danielk1977 branch: trunk, size: 35632)
2005-01-28
01:29
[f096b677] part of check-in [522c094f] Make sure the #include of "sqliteInt.h" always comes first in C source files. (CVS 2284) (check-in: [522c094f] user: drh branch: trunk, size: 35663)
2005-01-11
13:02
[dc188d86] part of check-in [a6b45722] Test cases to improve coverage of vdbe.c. (CVS 2193) (check-in: [a6b45722] user: danielk1977 branch: trunk, size: 35671)
2004-11-19
05:14
[b668e5ad] part of check-in [1fd8e835] Fix bugs in ALTER TABLE related to (a) whitespace in table defn, (b) temp triggers. (CVS 2112) (check-in: [1fd8e835] user: danielk1977 branch: trunk, size: 35236)
2004-11-18
15:44
[4f16eba1] part of check-in [c61b7de1] Handle triggers correctly in ALTER TABLE. (CVS 2111) (check-in: [c61b7de1] user: danielk1977 branch: trunk, size: 34799)
13:49
[1a5e23e2] part of check-in [85d56beb] Speed improvement on the LIKE command. (CVS 2110) (check-in: [85d56beb] user: drh branch: trunk, size: 32197)
2004-11-17
16:41
[897c1c13] part of check-in [49268c2b] Add the ESCAPE clause to the LIKE operator. Not fully tested yet. (CVS 2107) (check-in: [49268c2b] user: danielk1977 branch: trunk, size: 32191)
2004-11-14
21:56
[181ea4b8] part of check-in [98c7a554] The SQLITE_OMIT_UTF16 macro now removes lots of code and all tests still pass. (CVS 2100) (check-in: [98c7a554] user: drh branch: trunk, size: 31088)
2004-11-12
13:42
[b68572e7] part of check-in [a1b2cc63] Add the "ALTER TABLE xxx RENAME TO yyy" command. (CVS 2092) (check-in: [a1b2cc63] user: danielk1977 branch: trunk, size: 31006)
2004-10-06
15:41
[600e506b] part of check-in [d790c84c] Convert many constants to have type "const". (CVS 2006) (check-in: [d790c84c] user: drh branch: trunk, size: 29685)
2004-09-13
13:13
[1fbc5256] part of check-in [ee335b50] Fix an uninitialized variable bug in nullif(). Ticket #898. (CVS 1957) (check-in: [ee335b50] user: drh branch: trunk, size: 29673)
2004-09-06
17:24
[14bf2071] part of check-in [3ddf5a9d] 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) (check-in: [3ddf5a9d] user: drh branch: trunk, size: 29673)
2004-09-02
15:53
[54a09571] part of check-in [6c9be972] Address some minor 32/64 bit issues. (CVS 1932) (check-in: [6c9be972] user: drh branch: trunk, size: 29668)
2004-08-31
00:52
[ab1d6436] part of check-in [0a47c8f8] Combine the implementation of LIKE and GLOB into a single parameterized function. (CVS 1923) (check-in: [0a47c8f8] user: drh branch: trunk, size: 29661)
2004-08-08
20:22
[7e2eeebe] part of check-in [b0659738] Make sure the argument to ctype.h macros is always an unsigned character. Ticket #839. (CVS 1881) (check-in: [b0659738] user: drh branch: trunk, size: 32294)
2004-07-18
23:06
[b163fb49] part of check-in [2464f79e] Use only unsigned characters for upper() and lower(). Ticket #708. (CVS 1808) (check-in: [2464f79e] user: drh branch: trunk, size: 32331)
23:03
[ab5c57f0] part of check-in [f9b2aa8f] Use only unsigned characters in upper() and lower(). Ticket #708. (CVS 1807) (check-in: [f9b2aa8f] user: drh branch: version_2, size: 19049)
21:14
[5bd2ce38] part of check-in [223521c0] Min() and max() ignore NULL values. Ticket #800. (CVS 1803) (check-in: [223521c0] user: drh branch: version_2, size: 18999)
20:52
[f4a69379] part of check-in [166234a2] min() ignores NULL values. Ticket #800. (CVS 1802) (check-in: [166234a2] user: drh branch: trunk, size: 32313)
2004-06-28
13:09
[5a15cfb0] part of check-in [33292104] More coverage testing. (CVS 1754) (check-in: [33292104] user: danielk1977 branch: trunk, size: 32258)
2004-06-24
00:20
[c38c8bca] part of check-in [0a26b915] Apply (1679) to version 3. Ticket #777. (CVS 1680) (check-in: [0a26b915] user: danielk1977 branch: trunk, size: 32125)
2004-06-23
21:16
[522d58ab] part of check-in [78ced6e3] The MIN() aggregate function returns NULL if any element in the result was NULL. This makes MIN() consistent with ORDER BY which sorts NULL first. Ticket #777. (CVS 1679) (check-in: [78ced6e3] user: drh branch: version_2, size: 19107)
2004-06-21
06:50
[3d32878e] part of check-in [ae2f4a09] Update sqlite3_changes() to match the documentation and add sqlite3_total_changes(). (CVS 1645) (check-in: [ae2f4a09] user: danielk1977 branch: trunk, size: 32169)
2004-06-19
17:33
[e520c64e] part of check-in [fc3b3a8f] Make sure VdbeFunc entries are initialized before trying to destroy them. Also, unrelated comment changes in build.c. (CVS 1643) (check-in: [fc3b3a8f] user: drh branch: trunk, size: 32251)
15:40
[21985e3b] part of check-in [70680a34] Clear up another zero-length array. This seems to fix the segfault in func-13.4 too. (CVS 1641) (check-in: [70680a34] user: drh branch: trunk, size: 31614)
08:18
[b7a8b552] part of check-in [728d57ff] Remove the iCollate argument from sqlite3_create_function() (CVS 1632) (check-in: [728d57ff] user: danielk1977 branch: trunk, size: 31623)
2004-06-17
05:36
[1959a0c2] part of check-in [b9493c5f] Use the faster LIKE function from sqlite v2. Add special user functions to test builds to test the auxdata APIs. (CVS 1610) (check-in: [b9493c5f] user: danielk1977 branch: trunk, size: 31629)
2004-06-16
10:39
[be055fc6] part of check-in [7d8edce4] Fix handling of a failed malloc() in various places (CVS 1604) (check-in: [7d8edce4] user: danielk1977 branch: trunk, size: 30066)
2004-06-15
13:36
[60bf9412] part of check-in [59db58eb] Memory leak fixes for tests in file select1.test. (CVS 1599) (check-in: [59db58eb] user: danielk1977 branch: trunk, size: 30057)
2004-06-12
09:25
[3b86bf20] part of check-in [5903f538] (1) Modifications to the user-function interface and (2) Internal changes to automatically created indices. (CVS 1575) (check-in: [5903f538] user: danielk1977 branch: trunk, size: 30026)
00:42
[a58fef26] part of check-in [9b84f2f4] Use the SQLITE_UTF* symbols instead of the old internal TEXT_Utf* symbols. (CVS 1572) (check-in: [9b84f2f4] user: danielk1977 branch: trunk, size: 28266)
2004-06-11
10:51
[91a21c95] part of check-in [66835ee6] Fix various collation sequence issues. (CVS 1568) (check-in: [66835ee6] user: danielk1977 branch: trunk, size: 28252)
2004-06-08
00:39
[ffbdfa4c] part of check-in [97aa54bb] Enhance the built-in function quote() to support blob values. (CVS 1541) (check-in: [97aa54bb] user: danielk1977 branch: trunk, size: 27316)
2004-06-06
12:41
[73074144] part of check-in [30b81507] Performance improvements for LIKE. It is still too slow though. (CVS 1535) (check-in: [30b81507] user: danielk1977 branch: trunk, size: 26543)
09:44
[e873366b] part of check-in [92337d8f] Enhance user function API to support association of meta-data with constant arguments and the specification of text encoding preference. The LIKE operator takes advantage of both. (CVS 1534) (check-in: [92337d8f] user: danielk1977 branch: trunk, size: 26114)
2004-05-31
18:51
[3b87e2e8] part of check-in [adf7e29f] Change all SQLITE3 preprocessor macros to SQLITE. Documentation updates. (CVS 1511) (check-in: [adf7e29f] user: drh branch: trunk, size: 20176)
2004-05-27
10:30
[1fe07636] part of check-in [c9e3015f] A few more bugfixes. Test cases pass now. (CVS 1472) (check-in: [c9e3015f] user: danielk1977 branch: trunk, size: 20210)
09:28
[17303ed9] part of check-in [67a140cf] Various bugfixes. 68 Test cases still fail. (CVS 1471) (check-in: [67a140cf] user: danielk1977 branch: trunk, size: 19969)
03:12
[09100361] part of check-in [f33d15d9] Fixes to the MEM changes. The library now links. (CVS 1470) (check-in: [f33d15d9] user: drh branch: trunk, size: 19773)
2004-05-26
23:25
[a25ec101] part of check-in [bba6684d] Refactoring of the vdbe Mem functions and the APIs that deal with them. The code will not compile in its current state. (CVS 1465) (check-in: [bba6684d] user: drh branch: trunk, size: 19793)
16:54
[6274bceb] part of check-in [36e03162] Remove dataType and includeTypes flags from function definitions. Added new P3_FUNCDEF type for P3 arguments on opcodes. Fixes to several user functions. 28 tests fail now. (CVS 1464) (check-in: [36e03162] user: drh branch: trunk, size: 19796)
06:18
[ddd86cbd] part of check-in [0317bef4] Use the new form of the sqlite3_create_function() API. (CVS 1460) (check-in: [0317bef4] user: danielk1977 branch: trunk, size: 20693)
2004-05-25
12:05
[e67a36ae] part of check-in [8f6b20c2] Change a couple of symbol names for the new user function API. (CVS 1454) (check-in: [8f6b20c2] user: danielk1977 branch: trunk, size: 20679)
11:47
[c811d2b7] part of check-in [4eccae03] Use the new API for returning values and errors from user functions. (CVS 1453) (check-in: [4eccae03] user: danielk1977 branch: trunk, size: 20593)
01:13
[7eb4356a] part of check-in [b77c268e] Add manifest type aware versions of the min() and max() aggregates. (CVS 1452) (check-in: [b77c268e] user: danielk1977 branch: trunk, size: 19969)
2004-05-24
23:48
[3b511af0] part of check-in [5c28ed5e] Aggregate functions also use sqlite_value* instead of const char * for arguments. (CVS 1451) (check-in: [5c28ed5e] user: danielk1977 branch: trunk, size: 19900)
12:55
[c33bad75] part of check-in [162cf42e] Update the typeof() operator to respect manifest types. (CVS 1450) (check-in: [162cf42e] user: danielk1977 branch: trunk, size: 19723)
12:39
[3690069d] part of check-in [1e47d738] Non-aggregate SQL functions use sqlite_value* instead of const char * for argument values. (CVS 1449) (check-in: [1e47d738] user: danielk1977 branch: trunk, size: 19461)
07:04
[333bbc06] part of check-in [b7155db2] Have the vdbe handle strings in the same encoding as the database. (CVS 1445) (check-in: [b7155db2] user: danielk1977 branch: trunk, size: 18832)
2004-05-16
11:15
[cfbb7096] part of check-in [a4af838f] More changes to support the manifest type model. A few things are currently broken. (CVS 1385) (check-in: [a4af838f] user: danielk1977 branch: trunk, size: 18821)
2004-05-14
11:00
[4053dc21] part of check-in [dbfe6e93] Implement type affinity for table and index records (CVS 1375) (check-in: [dbfe6e93] user: danielk1977 branch: trunk, size: 18746)
2004-05-13
11:34
[4b3147e8] part of check-in [dbe8385e] Various minor fixes and updates to make more test cases pass. (CVS 1370) (check-in: [dbe8385e] user: danielk1977 branch: trunk, size: 18743)
2004-05-10
10:34
[6cf6501f] part of check-in [ba2ba242] Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1337) (check-in: [ba2ba242] user: danielk1977 branch: trunk, size: 18744)
2004-05-08
08:23
[f87eec5c] part of check-in [8af6474c] Change lots of internal symbols from sqliteXXX to sqlite3XXX so that the library links again. It doesn't work yet, due to changes in the btree layer calling convention. (CVS 1324) (check-in: [8af6474c] user: danielk1977 branch: trunk, size: 18689)
2004-02-25
22:51
[34fead7a] part of check-in [ca99920b] Add comments and prototype for experimental sqlite_last_statement_changes() API function. Also, allow function to be called from tcl. (CVS 1273) (check-in: [ca99920b] user: rdc branch: trunk, size: 18663)
13:47
[424256b4] part of check-in [adbe31ad] Min() and max() functions honor the distinction between TEXT and NUMERIC data. Ticket #623. typeof() is now a user function. Some tests are now failing due to ticket #521. (CVS 1272) (check-in: [adbe31ad] user: drh branch: trunk, size: 18370)
2004-02-22
17:49
[a2265f29] part of check-in [9b3bcde1] Code cleanup in the date and time functions. (CVS 1263) (check-in: [9b3bcde1] user: drh branch: trunk, size: 18109)
2004-02-20
22:53
[36504a34] part of check-in [3383413a] Fixed behaviour of last_insert_rowid() with triggers and add last_statement_change_count() function that works correctly with triggers. (CVS 1251) (check-in: [3383413a] user: rdc branch: trunk, size: 18100)
2004-02-11
09:46
[cbc5edd1] part of check-in [f2bdccf4] Refactor the interface to the randomness generator. (CVS 1224) (check-in: [f2bdccf4] user: drh branch: trunk, size: 17369)
2004-01-30
14:49
[5a0face8] part of check-in [c0faa1c6] Rework the VDBE data structures to combine string representations into the same structure with integer and floating point. This opens the door to significant optimizations. (CVS 1202) (check-in: [c0faa1c6] user: drh branch: trunk, size: 17322)
2004-01-19
04:53
[fd710743] part of check-in [8210b2d8] coment typo (CVS 1189) (check-in: [8210b2d8] user: jplyon branch: trunk, size: 17255)
2004-01-16
13:58
[564c0bbe] part of check-in [42c79edc] Fix a buffer-overflow problem in the randStr function (used only for testing). (CVS 1182) (check-in: [42c79edc] user: drh branch: trunk, size: 17261)
2004-01-02
13:17
[62cf8fae] part of check-in [7080fc39] Avoid an assertion fault that can occur with invalid UTF8 on the LENGTH() function. Ticket #548. (CVS 1154) (check-in: [7080fc39] user: drh branch: trunk, size: 17231)
2003-12-23
02:17
[b6ad8e78] part of check-in [4d9edbc5] Use a built-in atof() function instead of the one from the library to avoid problems with locale. Ticket #305. (CVS 1144) (check-in: [4d9edbc5] user: drh branch: trunk, size: 17255)
2003-11-01
01:53
[82a749b9] part of check-in [68ef9b45] Revised date/time functions - now broken out into a separate source file. See the DateAndTimeFunctions wiki page for additional information. (CVS 1116) (check-in: [68ef9b45] user: drh branch: trunk, size: 17237)
2003-10-10
02:09
[fce558b4] part of check-in [06d4e883] Update to the date functions. (CVS 1110) (check-in: [06d4e883] user: drh branch: trunk, size: 28813)
2003-09-06
01:10
[377ea941] part of check-in [912f47c7] The beginnings of changes to support pre-compiled SQL. Mostly untested, though all regression tests to pass. (CVS 1093) (check-in: [912f47c7] user: drh branch: trunk, size: 26204)
2003-08-26
11:41
[be22d719] part of check-in [c95f347c] Fix compiler warnings under OpenVMS. Ticket #357. (CVS 1088) (check-in: [c95f347c] user: drh branch: trunk, size: 26122)
2003-08-20
01:03
[8cd63ca6] part of check-in [9699c685] Add the experimental "quote()" function to the set of build-in functions. (CVS 1077) (check-in: [9699c685] user: drh branch: trunk, size: 25981)
2003-08-10
01:50
[2b196fdc] part of check-in [94243eda] tighter coding of the date and time functions. Better comments. A bug fix. (CVS 1070) (check-in: [94243eda] user: drh branch: trunk, size: 24775)
2003-08-09
21:32
[67b66803] part of check-in [a6197e20] Add experimental date and time functions based on julian day number. (CVS 1069) (check-in: [a6197e20] user: drh branch: trunk, size: 24704)
2003-06-28
16:20
[6b23578d] part of check-in [e2ca936f] Fix a bug in the soundex() code. Ticket #367. Add tests for ticket #261 even thought the problem could not be reproduced. (CVS 1035) (check-in: [e2ca936f] user: drh branch: trunk, size: 15835)
2003-05-13
01:52
[33bbce6a] part of check-in [f267a8a4] Fix another twos-complement negation error. Ticket #313. (CVS 973) (check-in: [f267a8a4] user: drh branch: trunk, size: 15844)
2003-03-27
12:51
[882c3ed5] part of check-in [d2fb2bb5] Changes to the "sqlite" structure that allow simultaneous operations on multiple database files. Many regession tests pass - but not all of them. Do not use this version except for debugging SQLite itself. (CVS 883) (check-in: [d2fb2bb5] user: drh branch: trunk, size: 15853)
2002-11-04
19:32
[90c583f0] part of check-in [7c8c0e76] Add the sqlite_version() SQL function as a built-in. (CVS 777) (check-in: [7c8c0e76] user: drh branch: trunk, size: 14635)
2002-07-07
16:52
[e45cd908] part of check-in [f6e24d5c] 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) (check-in: [f6e24d5c] user: drh branch: trunk, size: 14325)
2002-06-20
11:36
[5eae8227] part of check-in [cbbc858d] 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) (check-in: [cbbc858d] user: drh branch: trunk, size: 13267)
2002-06-09
10:14
[b8d0fd30] part of check-in [74d297d9] Fix the spelling of sqliteRegisterBuiltinFunctions(). (CVS 613) (check-in: [74d297d9] user: drh branch: trunk, size: 12582)
2002-05-31
15:51
[061a520a] part of check-in [da61aa1d] 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) (check-in: [da61aa1d] user: drh branch: trunk, size: 12582)
2002-05-29
23:22
[2cd49229] part of check-in [19ae12be] Built-in aggregate functions (MIN, SUM, AVG, etc) should ignore NULL entires. (CVS 597) (check-in: [19ae12be] user: drh branch: trunk, size: 12636)
2002-05-26
21:34
[16e994ee] part of check-in [46ce1a9a] Change functions to handle NULLs correctly. Added the NULLIF() function. (CVS 590) (check-in: [46ce1a9a] user: drh branch: trunk, size: 12699)
2002-04-20
14:24
[a31dcba8] part of check-in [51572bf7] Fix for ticket #1: Implement the GLOB and LIKE operators as functions that can be overridden. This way, a developer can change the LIKE operator to be case sensitive, for example. (CVS 537) (check-in: [51572bf7] user: drh branch: trunk, size: 12051)
2002-04-06
14:10
[dca9df81] part of check-in [6aca3f86] Added the last_insert_rowid() SQL function. (CVS 521) (check-in: [6aca3f86] user: drh branch: trunk, size: 11045)
2002-03-04
02:26
[87516e7d] part of check-in [36a8fe0a] Updates to the documentation. Changed version number to 2.4.0-beta1 (CVS 417) (check-in: [36a8fe0a] user: drh branch: trunk, size: 10626)
2002-03-02
19:00
[5b4d9707] part of check-in [abbb999d] Change the btree node balancers to sort nodes into accending order. This improves insert and delete speed by 25%. (CVS 409) (check-in: [abbb999d] user: drh branch: trunk, size: 10554)
2002-02-28
04:00
[0db438ba] part of check-in [e9fd9e7b] Fix bugs in substr() for UTF-8. (CVS 406) (check-in: [e9fd9e7b] user: drh branch: trunk, size: 10318)
03:31
[089b68c0] part of check-in [e8611e0c] Remove unused opcodes from the VDBE and fix a bug in the substr() function. (CVS 405) (check-in: [e8611e0c] user: drh branch: trunk, size: 10215)
03:14
[7169103d] part of check-in [7d86749d] Change the IFNULL and NVL functions to COALESCE. Change MIN and MAX so that they require at least one argument. (CVS 404) (check-in: [7d86749d] user: drh branch: trunk, size: 10142)
03:04
[14ac2dfa] part of check-in [b00cf110] The new function code passes regression tests. (CVS 403) (check-in: [b00cf110] user: drh branch: trunk, size: 10002)
01:46
[2a607655] part of check-in [6af10cc5] Fix the coredump. There are still problems in the test suite though. (CVS 402) (check-in: [6af10cc5] user: drh branch: trunk, size: 9963)
00:46
[7bfb8a20] part of check-in [c6a85c8e] Added IFNULL and NVL functions. (CVS 401) (check-in: [c6a85c8e] user: drh branch: trunk, size: 9972)
00:41
[709784ce] part of check-in [50797fee] 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) (check-in: [50797fee] user: drh branch: trunk, size: 9519)
2002-02-27
19:50
[3aeff18b] part of check-in [c4f9e017] Try to reduce the number of malloc() for user-defined functions. Begin transfering built-in functions over to the user-define function mechanism. (CVS 399) (check-in: [c4f9e017] user: drh branch: trunk, size: 3747)
19:00
[f020b8c6] part of check-in [633951f0] Revise the API for user-defined functions. (CVS 398) (check-in: [633951f0] user: drh branch: trunk, size: 2708)
2002-02-26
23:55
[bed0099a] part of check-in [63b87f2e] Comment changes only. (CVS 395) (check-in: [63b87f2e] user: drh branch: trunk, size: 2773)
2002-02-24
17:12
[b7c1f4dd] part of check-in [21981097] Added a "stddev()" aggregate function for testing the new user aggregate function interface. (CVS 393) (check-in: [21981097] user: drh branch: trunk, size: 2685)
01:55
[f06739ac] part of check-in [530b0f4f] Move the build-in function definitions into a new source file "func.c". (CVS 391) (check-in: [530b0f4f] user: drh branch: trunk, size: 1585) Added