aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
Commit message (Collapse)AuthorAge
...
* Add an assert() to the implementation of count(*) that checks thedrh2009-04-08
| | | | | correct operation of the sqlite3_aggregate_count() function. (CVS 6473) FossilOrigin-Name: f322be3833c4a938ee7d9e4bcfd5decaca57db0b
* Change the way that the random() SQL function prevents the maximumdrh2009-04-02
| | | | | negative integer so that it is testable. (CVS 6436) FossilOrigin-Name: 995f2b9b1031fadc85e179701536b9dd4153654b
* Use ALWAYS and NEVER macros on unchangeable conditions within func.c. (CVS 6435)drh2009-04-02
| | | FossilOrigin-Name: eb65e64e7ed5edbe506365971d4d81ea037098d3
* In the built-in SQL function implementations, improve some comments, fixdrh2009-04-02
| | | | | | an off-by-one error in detecting over-size strings, and add testcase() macros to verify that boundary values have been tested. (CVS 6434) FossilOrigin-Name: 868a487f5fd7c795e04a08de36a85ba1e06bc8c6
* Enforce the run-time sqlite3_limit() length limit on zeroblob(), not justdrh2009-04-02
| | | | | the compile-time SQLITE_MAX_LENGTH limit. (CVS 6433) FossilOrigin-Name: a04f9e7959325da18f66a1aa4ead1c50993807cb
* Remove dead code from the UTF conversion routines. Fix a bug indrh2009-04-01
| | | | | | sqlite3_prepare16_v2() in which an out-of-memory error fails to set the statement return pointer to NULL. (CVS 6423) FossilOrigin-Name: 94e2f815ebb38981a2226d8aed9f3731f8833f7c
* When "PRAGMA case_sensitive_like" is invoked, override all existing "LIKE" ↵danielk19772009-03-27
| | | | | functions, including UTF-16 versions. (CVS 6394) FossilOrigin-Name: 1c6521e53b846eec2e046b1e9c04c60658b8e0e8
* Optimize queries of the form "SELECT count(*) FROM <tbl>" by adding a ↵danielk19772009-02-24
| | | | | sqlite3BtreeCount() interface to the btree layer. (CVS 6316) FossilOrigin-Name: d4aa6593183224b6868a322511511c0bbf63b598
* Changes to reduce the heap space consumed by triggers, views and tables in ↵danielk19772009-02-19
| | | | | the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305) FossilOrigin-Name: d9f6ffbc5ea090ba0daac571fc9a6c68b9c864e4
* Changes to completely remove all floating point ops if ↵shane2009-02-04
| | | | | 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) FossilOrigin-Name: 5cef400023205b55152b91441acc78f9cd8d58a9
* Remove several compiler warnings. (CVS 6239)drh2009-02-03
| | | FossilOrigin-Name: 85e9196d79ef8500300abb215a31e0519b2e8d02
* Fix a problem in check-in (6226) which could cause an assertion faultdrh2009-02-03
| | | | | following a malloc failure. The prior check-in was for ticket #3624. (CVS 6235) FossilOrigin-Name: 1ffe44e9d6b49346a75850a977953de12c127069
* Check-in (6230) introduced a bugs in SUBSTR() which was caught by the fuzzdrh2009-02-03
| | | | | tester. Fixed by this check-in. Related to ticket #3628. (CVS 6234) FossilOrigin-Name: cd2e7f6c0fe4c0c648f8ca21388ab0769164f5ef
* Make group_concat() a 1- or 2-value function, as the documentation says itdrh2009-02-02
| | | | | | | 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) FossilOrigin-Name: f2ae82c4d46c2eca30fc60a50ab5064728f20739
* Minor simplifications to SQL function implementations. (CVS 6231)drh2009-02-02
| | | FossilOrigin-Name: 92e5c27f20f150c1777c1b91d35207ade961319d
* Update the SUBSTR function so that works consistently when thedrh2009-02-02
| | | | | 2nd parameter is 0. Ticket #3628. (CVS 6230) FossilOrigin-Name: 5fc125d362df4b8525c7e1ab34a14f505756af24
* Restrict the RANDOM() function to have zero arguments. Ticket #3627. (CVS 6229)drh2009-02-02
| | | FossilOrigin-Name: b8b546b6ed799dc1621ef7b06273249af1042fb2
* Fix SUBSTR() so that it returns NULL if any argument is NULL.drh2009-02-01
| | | | | Ticket #3626. (CVS 6228) FossilOrigin-Name: 779fce82b7a89b972da488ce8bd35e23ca120c04
* Fix the SUBSTR() function so that when the 3rd argument is negative,drh2009-02-01
| | | | | it counts backwards from the selected start point. Ticket #3625. (CVS 6227) FossilOrigin-Name: 2217339badf1e84edbed1309c39b9f8dfd7646ff
* Change the replace() function to return a copy of its first argument whendrh2009-02-01
| | | | | the 2nd argument is an empty string. Ticket #3624. (CVS 6226) FossilOrigin-Name: ffebf10f6fb2c7f3083992e2c712682b4cdcc6f0
* Fix some minor compiler warnings. Added sqlite3Isalpha() for use indrh2009-01-24
| | | | | the soundex() function. (CVS 6203) FossilOrigin-Name: bfc71edca471221add6b32b867d0b15171974eaf
* When not compiling for an EBCDIC system, use built-in alternatives to the tolowedanielk19772009-01-20
| | | | | r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) FossilOrigin-Name: 1041abd6784d283bebf646c54e93599522f7889d
* More code obfuscation designed to thwart compiler warning messages. (CVS 6015)drh2008-12-10
| | | FossilOrigin-Name: 0a1888a7e6fb56e56d8078e7792379d908ba7a70
* Additional work at eliminating silly compiler warnings. (CVS 6010)drh2008-12-10
| | | FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e
* Never use strlen(). Use our own internal sqlite3Strlen30() which isdrh2008-12-10
| | | | | | guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
* Fix some compiler warnings that show up when building the amalgamation only. ↵danielk19772008-11-19
| | | | | (CVS 5927) FossilOrigin-Name: d1abe8a1c9a990b02c71d6c249436381c9fde443
* Changes to avoid "unused parameter" compiler warnings. (CVS 5921)danielk19772008-11-19
| | | FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
* Avoid exposing internal interfaces sqlite_attach() and sqlite_detach() as ↵danielk19772008-10-28
| | | | | SQL scalar functions. Ticket #3466. (CVS 5846) FossilOrigin-Name: 679c0b35aaa1ea488a205cc03802e7078a2bcf29
* Work around an issue with the WINSCW compiler. (CVS 5671)drh2008-09-03
| | | FossilOrigin-Name: e333c3f4c3629dba05b58318e2cd0514843e5394
* Add an extra 'const' qualifier to two arrays (in func.c and pragma.c) to ↵danielk19772008-09-02
| | | | | ensure that they do not consume space in the data segment of the compiled object files. (CVS 5663) FossilOrigin-Name: 43f757c9f01ccc6e6c7a404fbeb74f825f7a29ca
* Modify the aBuiltinFunc array in func.c to use the WSD macros. (CVS 5653)danielk19772008-09-01
| | | FossilOrigin-Name: 846fff5f0902418cfce2915d2ccfe567481a1289
* Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD ↵danielk19772008-09-01
| | | | | variables still need wrappers added to them. (CVS 5652) FossilOrigin-Name: 573d92abb9adb1c321ebc2fcadcf14374213b093
* Move date+time functions to start-time initialization. Additionaldrh2008-08-21
| | | | | start-time function cleanup. (CVS 5585) FossilOrigin-Name: 80d6a31cb3851704c09ac9d99fe4bc241df3c180
* Initialize the global built-in function table at start-timedrh2008-08-21
| | | | | | instead of at compile-time. This is less prone to malfunction when compile-time parameters very. (CVS 5583) FossilOrigin-Name: ef6936e50adb9ebea39c890167403fff01bbb5ed
* Add the pcache module from the experimental branch. Also change things so ↵danielk19772008-08-20
| | | | | 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) FossilOrigin-Name: cb494e10d71852024647aaa254203579ad438ea9
* Implement the "lookaside" memory allocation cache. Use of this cache makesdrh2008-07-28
| | | | | | the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
* Added macros to convert between 32-bit ints and 64-bit ptrs to avoid ↵shane2008-07-08
| | | | | compiler warnings. (CVS 5378) FossilOrigin-Name: 6cdb6841ff4683e424ef394733da9c24f5602570
* Make sure aggregate functions can take any number of arguments up to thedrh2008-06-18
| | | | | | | 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) FossilOrigin-Name: 70c6739f4e84b3433e14960346b54d0e9e0bb9c6
* Continuing work on the new memory allocation subsystem.drh2008-06-15
| | | | | | Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) FossilOrigin-Name: 65fe7b62cfe7d11cd667681a64c96fe7b2fe5685
* Remove all references to sqlite3_intptr_t. (CVS 5051)drh2008-04-27
| | | FossilOrigin-Name: 6a94d19747a05df2694d3720f76de3dab3836578
* Reinstate test cases for the limit tests. The sqlite3_limit() API is nowdrh2008-03-20
| | | | | tested and working. (CVS 4899) FossilOrigin-Name: 4c4be4c3c8aae97f1d85442b25afba9f0b02c8b3
* Initial implementation of per-connection limits and the sqlite3_limit() API.drh2008-03-20
| | | | | | The sqllimits1.test script crashes. SQLITE_LIMIT_PAGE_COUNT and SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897) FossilOrigin-Name: 60c77882b2de9f6a45f8bd87c9c6a0cc613f8373
* Add a new interface, sqlite3_context_db_handle(), that returns the databasedrh2008-03-19
| | | | | connection pointer for an application-defined function. (CVS 4889) FossilOrigin-Name: 54c55cae556af5a16c0ce8be1a96d2932db80ad8
* Move SQL functions used for testing only out of func.c and into a newdrh2008-03-19
| | | | | | test file named test_func.c. Use sqlite3_auto_extension() to make sure the test functions appear in every database connection. (CVS 4883) FossilOrigin-Name: e90c4cc8a89838161f218739bc821126e247498c
* Add a new api sqlite3_randomness() for providing access to SQLite'sdrh2008-03-19
| | | | | internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32
* Handle non-autoconf build correctly with new changes (CVS 4832)mlcreech2008-03-06
| | | FossilOrigin-Name: e2a9f5f1054f077e4773dd3d2c8f2ce5be118a01
* Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824)mlcreech2008-03-06
| | | FossilOrigin-Name: 54839a84e6ce080ea8a0f6ce32acaa053d20f311
* Remove instances of strcpy() from test code. Use memcpy() ordrh2008-02-19
| | | | | sqlite3_snprintf() instead. (CVS 4801) FossilOrigin-Name: 7b50140dc0fb41a1b40c8709d96e214d98b06f81
* Miscellaneous test coverage improvements. (CVS 4734)drh2008-01-21
| | | FossilOrigin-Name: 720bc20a11275ffe139df9203f23e0683b9b4db1
* Additional test coverage improvements. Test coverage now stands at 98.73%. ↵drh2008-01-19
| | | | | (CVS 4731) FossilOrigin-Name: 010f7b780cb9c8f21af9ce810494fbd2be98a13f