aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
Commit message (Collapse)AuthorAge
...
* Change all instances of "it's" in comments to either "its" or "it is",drh2007-12-13
| | | | | | as appropriate, in case the comments are ever again read by a pedantic grammarian. Ticket #2840. (CVS 4629) FossilOrigin-Name: 4e91a267febda572e7239f0f1cc66b3102558c36
* Fix a 'const' issue in trimFunc(). (CVS 4608)danielk19772007-12-11
| | | FossilOrigin-Name: 64787d78b99a549a87bc2baeff8ae87691612b77
* Fix a macro in func.c that causes problems for the amalgamation. (CVS 4605)drh2007-12-10
| | | FossilOrigin-Name: 6adbe91efffc6b3f53dae87494430ede61d40ecc
* Get the LIKE and GLOB operators working again on systems using thedrh2007-12-07
| | | | | EBCDIC character set. (CVS 4597) FossilOrigin-Name: 754298a74e3d889f3767daba058262613d20a601
* Add the {quote: StrAccum} object drh2007-11-28
| | | | | | | 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) FossilOrigin-Name: 221aee72be040769e8026b91648f03c6366a8821
* Add a prototype "group_concat()" aggregate function to func.c.drh2007-11-01
| | | | | | Disabled by default. No documentation nor test cases. No effort to make it efficient. (CVS 4519) FossilOrigin-Name: 61987a89d1c4af59c745d1c5f17bab3301588b6c
* Make the 3rd parameter of the SUBSTR() function optional. Ticket #2579. ↵drh2007-10-12
| | | | | (CVS 4486) FossilOrigin-Name: 4a807d48ea9923c1e3df4a5ad503710e62ae29f8
* Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371)danielk19772007-09-03
| | | FossilOrigin-Name: c0ce63196458c81e0859fc8a38f2dd2145a580bc
* Remove code for calling the SQL function randstr() with 0 or 1 argument, as ↵danielk19772007-09-01
| | | | | it is registered with sqlite as requiring exactly 2. Also test io errors in sqlite3_release_memory(). (CVS 4365) FossilOrigin-Name: 5842f68c1ba838f24e9ba02c818d308540d591a4
* Fix the "test_destructor" test function in utf-16 mode. Fix for test failure ↵danielk19772007-08-30
| | | | | in utf16 version of func.test. (CVS 4344) FossilOrigin-Name: c073b78040e5833de038dea464ac87c7358b8b51
* Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)danielk19772007-08-29
| | | FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c
* Modifications to the malloc failure tests to test transient and persistent ↵danielk19772007-08-29
| | | | | failures. (CVS 4321) FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
* Improvements to memory leak detection. The --backtrace=NNN option is nowdrh2007-08-23
| | | | | | | | 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) FossilOrigin-Name: 21f6b31097692171c6493e6ca6de6acbd62dc595
* The sqlite3_value object now carries an sqlite3* pointer to use fordrh2007-08-21
| | | | | | recording malloc failures. This eliminates the need to pass sqlite3* pointers into many internal interfaces. Also added more mutexing. (CVS 4263) FossilOrigin-Name: 9287276191a582c1cf7cf6b71d8399727d8e534d
* Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)drh2007-08-21
| | | FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873
* Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). ↵danielk19772007-08-16
| | | | | (CVS 4234) FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b
* More work on refactoring of malloc() interfaces. There are still many ↵danielk19772007-08-16
| | | | | errors. (CVS 4233) FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
* Half-way through a major refactoring of the memory allocation.drh2007-08-16
| | | | | | I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
* Fix two obscure memory leaks that can follow a malloc() failure in ↵danielk19772007-07-26
| | | | | sqlite3_set_auxdata(). Ticket #2534. (CVS 4185) FossilOrigin-Name: b88af1827bec3e8a32450dd0a073ffc3b12a5939
* Rework the UTF8 reader logic in order to avoid the use of malloc().drh2007-07-23
| | | | | Ticket #2523. (CVS 4175) FossilOrigin-Name: 9a059cb6bced5cdc950f7816602ac92d89a899be
* Extend fts2 so that user defined tokenizers may be added. Add a tokenizer ↵danielk19772007-06-22
| | | | | that uses the ICU library if available. Documentation and tests to come. (CVS 4108) FossilOrigin-Name: 68677e420c744b39ea9d7399819e0f376748886d
* Make sure zeroblob does reasonable things with a negative argument ordrh2007-06-07
| | | | | an argument that is larger than the maximum blob size. (CVS 4048) FossilOrigin-Name: f40218434e549144ddb48303df30e5191d44d3fc
* Remove the alternative UTF-16 implementation of SUBSTR(). It does notdrh2007-05-15
| | | | | | work anymore and the UTF-8 version can do everything that the UTF-16 version does. (CVS 4009) FossilOrigin-Name: 9b91502ef0ea9c0bfb8362c4b70314dc8449eb9e
* Clarification on the best practices for using the _bytes() APIs.drh2007-05-15
| | | | | | Change sqlite3_value_blob() to force the representation to be purely a BLOB and not a dual BLOB/String. Ticket #2360. (CVS 4005) FossilOrigin-Name: cf2dd45b58380de7f3e167b5357848d12872caa3
* A new approach for UTF-8 translation. (CVS 4004)drh2007-05-15
| | | FossilOrigin-Name: 6c8ad2790eaede90b3f1ef62614e667178b2a8c4
* The built-in substr() function applied to a BLOB counts bytes, not ↵drh2007-05-15
| | | | | characters. (CVS 3997) FossilOrigin-Name: 75d573080d03ee48fe88710f70c6875ff9cae19c
* Bugfixes for assert() failures found by fuzz.test. (CVS 3986)danielk19772007-05-12
| | | FossilOrigin-Name: 2e80736d57fde55b112864d8b198a9a2fe0eaa38
* Fix a C++ism in func.c. (CVS 3970)drh2007-05-10
| | | FossilOrigin-Name: 9c0050a10c6bea75ada902c16eb28eb3cf864718
* Fix enforcement of the LIKE_PATTERN limit. (CVS 3962)danielk19772007-05-09
| | | FossilOrigin-Name: 8819617b7cf7ccd64bf6bb4ba208f37126964ec2
* Fix the amalgamation generator so that all non-API functions have file ↵drh2007-05-08
| | | | | scope. (CVS 3958) FossilOrigin-Name: e9f56ead0514f3eac75807ea710c1f035b8add4f
* Do not allocate so much surplus memory in the implementation of thedrh2007-05-08
| | | | | replace() function. (CVS 3951) FossilOrigin-Name: 0cf518ceebda8e7421d054813f97cc447d292344
* Limit the length of the patterns on LIKE and GLOB to avoid problems withdrh2007-05-08
| | | | | deep recursion and N^2 behavior. (CVS 3950) FossilOrigin-Name: 42e6c826998e69462462b0787d3650246d36f3b5
* Introduce the (experimental) sqlite3_result_error_toobig() API thatdrh2007-05-08
| | | | | | function implementations can use to signal SQLite that the function result is too big to represent. (CVS 3949) FossilOrigin-Name: 17c4235c492f746867c1d2b8621043b93f8aa10e
* Fix a potential buffer overrun in the replace() function. (CVS 3947)danielk19772007-05-08
| | | FossilOrigin-Name: b0fb4a3cf6ddbc17ccd0c719b34a720d9090bc93
* Begin adding code to explicitly limit the size of strings and blobs. (CVS 3943)drh2007-05-08
| | | FossilOrigin-Name: 031a5915b68ec6827fee38b8b9dc74a9e0e09302
* Fix an NULL deref in the randomblob() function following a malloc failure. ↵drh2007-05-07
| | | | | (CVS 3940) FossilOrigin-Name: 011e7db253f9a60c19977215eab1687930f15637
* Eliminate all uses of sprintf() and strcpy(). These were not beingdrh2007-05-04
| | | | | | misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
* Fix some compiler warnings. Add the (untested) zeroblob() SQL function. ↵drh2007-05-02
| | | | | (CVS 3895) FossilOrigin-Name: 6f4f8ba7ec15f214f36fa78e593dd4522ab717f5
* Internationalize the TRIM functions. Ticket #2323. (CVS 3883)drh2007-04-27
| | | FossilOrigin-Name: ff1f4e744728c8f55afae265246797b30fe98fb0
* Make sure sqlite3_value_bytes() does not reformat the content after adrh2007-04-27
| | | | | | call to sqlite3_value_blob(). Add documentation to explain this hazard. Add many new tests. Ticket #2321. (CVS 3880) FossilOrigin-Name: e92bd97a3726bbb7978489e2994747127c4aefcf
* The replace() function should return NULL if the second argument is andrh2007-04-27
| | | | | empty string. Ticket #2324. (CVS 3877) FossilOrigin-Name: e6a0c90dd9b4f7efe2153dd0c899b6e3d9846bd8
* Fix segfaults that can occur if a malloc failure happens just beforedrh2007-04-25
| | | | | a built-in function calls sqlite3_value_text(). (CVS 3874) FossilOrigin-Name: 9cb0ed6ee9827bc6884a0195044d5b6ad0de698e
* Be careful not to use the result of sqlite3_value_blob() after changingdrh2007-04-10
| | | | | the representation of an object. Ticket #2290. (CVS 3834) FossilOrigin-Name: e14374e4e6f14a90ecb53c2e7c86908a220c6d68
* Added TRIM, LTRIM, and RTRIM functions. (CVS 3698)drh2007-03-17
| | | FossilOrigin-Name: 6fe13eeade4fc7099fbda1e6520640927c08debc
* First cut at an implementation of the REPLACE() function. We might yetdrh2007-03-17
| | | | | make this a compile-time option or move it into a separate source file. (CVS 3697) FossilOrigin-Name: c2fe746ea782f84e850aaf3af7f5536b027a19a1
* Replace the randomHex() function with separate functionsdrh2007-01-29
| | | | | randomBlob() and hex(). (CVS 3620) FossilOrigin-Name: f5ad74a9bc57e83c11beb3cf46bb6cd8c9de3f86
* Add the randomhex() function as a built-in. (CVS 3619)drh2007-01-29
| | | FossilOrigin-Name: a6001589ab1349f7a6b4af941e9e0fd73d13c1c0
* Add the sqlite3_overload_function() API - part of the virtual tabledrh2006-09-16
| | | | | interface. (CVS 3426) FossilOrigin-Name: aa7728f9f5b80dbb1b3db124f84b9166bf72bdd3
* Fix for the (unsupported) soundex algorithm so that it conforms to Knuth.drh2006-08-19
| | | | | Ticket #1925. Test cases added. (CVS 3358) FossilOrigin-Name: 7810d1abf611ce40dd0de45610269359a8ca9222
* A few more test cases to improve coverage of virtual table module related ↵danielk19772006-06-24
| | | | | code. (CVS 3292) FossilOrigin-Name: 255aa9121a2ef4fec7fa5523e52969acc96f4b40