aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
Commit message (Collapse)AuthorAge
...
* Fix an utterly harmless "applying zero offset to null pointer" UB warningdrh2019-12-13
| | | | | in sqlite3AtoF(): FossilOrigin-Name: 052fdf5e58b41ccadaa5aac293ceb4d309ced661d46f3a52be9eb8d01d347a82
* Make sure the WITH stack in the Parse object is disabled following an error.drh2019-11-09
| | | FossilOrigin-Name: de6e6d6846d6a41c4821454dfdc042096234df753be08c5567b79fe535d9b6ea
* Fix harmless compiler warning seen with MSVC.mistachkin2019-10-10
| | | FossilOrigin-Name: 73a82114733af2a316f20eb8578badef307d14286c6ec03197744a6793425161
* Remove support for STAT3. The sqlite_stat3 tables are ignored, if theydrh2019-08-08
| | | | | | exist. STAT4 continues to work as it always has, and as it is a superset of STAT3 is the recommended replacement. FossilOrigin-Name: 1e17ea2fd1df4ad49138c787c8fe3207dd0c25c93f9001d52a9b69f8c12e841c
* A string consisting of a single '.' is not a floating point literal with extradrh2019-06-10
| | | | | text at the end. Fix for ticket [412bba9b22c677da] FossilOrigin-Name: 57050162294efec90caa5cc3c2f8c1a85215526adcf57b284ce2d2e799286b78
* When casting string values into numeric and the string has a prefix that looksdrh2019-06-07
| | | | | | | 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]. FossilOrigin-Name: 67a68af5578f08d2be2e48cf4fd12a6cf35a09c47d259deda81950f7ee1f02f7
* Optimization to the round() SQL function for large input values without adrh2019-05-30
| | | | | fractional part. FossilOrigin-Name: e95138f5f4febde598f39e031d6e4f4d5ad0adbd8dcdd34fd0baaa78ab393417
* Smaller and faster sqlite3IsNaN() implementation makes deserialization ofdrh2019-05-30
| | | | | floating point values much faster. FossilOrigin-Name: ea748edecb261f2b862d542daff6e99a6fd8879a8ace94b440d99e110577d1c1
* Much faster implementation of applyNumericAffinity() by avoiding somedrh2019-05-29
| | | | | unnecessary calls to sqlite3Atoi64(). FossilOrigin-Name: c1d8a3f65490eef2216f360d708b1746cbaa6dadce42c0950dc8e09b9ab28ee2
* Performance enhancement in sqlite3AtoF(). About 8% faster.drh2019-05-25
| | | FossilOrigin-Name: 81721aa54587e20d031d528fb6b74d91671a6e950fa926dc63f4284466e70f0e
* Use "long double" literals to initialize an array of "long double" objects.drh2019-05-25
| | | FossilOrigin-Name: 2e2ebad3ab636c4c65814ad41d417b105be8e254d609d0e08fbba4c5bd107bf3
* Fix the previous check-in [db9acef14d492121] so that the amalgamation builddrh2019-05-10
| | | | | works for systems for which lack HAVE_ISNAN. FossilOrigin-Name: 3cc55e09e6c1de2059d97bdddf2fdfbdcc62c584b513f56faf9d3a39ef80cddd
* Small performance improvement on the variable-length integer decoder:drh2019-04-17
| | | | | sqlite3GetVarint(). FossilOrigin-Name: 5df2bf62fcd4dfdaa195062dddbd5ce5420bc239b2649ac8f547e0db34e7f0bb
* Faster and smaller implementation of sqlite3StrICmp().drh2019-04-17
| | | FossilOrigin-Name: 7ac500fb5abfe1ad60f2ffdcc8fbe5ccc1c641bbeed53f00940e9ff78788e53d
* Enforce the SQLITE_LIMIT_COLUMN limit on virtual tables.drh2019-04-13
| | | FossilOrigin-Name: 0b6ae032c28e7fe34d81d1769f6e2901addbd1b95cd9a255dcef274061fb0164
* Improved reporting of SQLITE_TOOBIG errors while parsing.drh2019-04-09
| | | FossilOrigin-Name: ea2d4b65e20e44e19219c821bf68e97ff3af1760b3b4762250d020ba2a5a6343
* Improved comment on the sqlite3FaultSim() function. No changes to code.drh2019-04-05
| | | FossilOrigin-Name: 08b29672c552e5a6a3874746c6cc7025295e0e44dec43a1bfba3022acce849ff
* The keywords TRUE and FALSE should only act as boolean literal values ifdrh2019-01-11
| | | | | unquoted. FossilOrigin-Name: 5547f39de993c708f72301ef25df190a2f007e0c4253799bdd9e86bb1ae41777
* Changes to avoid a harmless UB warning from clang.drh2018-01-27
| | | FossilOrigin-Name: 19f5c1400054df10688ab448e7e23afef97cab4a7c7a3e411f7527509b515dd8
* Improve text-to-integer conversion in boundary cases. Thedrh2018-01-26
| | | | | | | sqlite3Atoi64() function always returns the minimum or maximum integer if the magnitude of the text value is too large. Trailing whitespace is now ignored. FossilOrigin-Name: ace0644a1a2a42a3ea42d44f00a31915b8a7e56c9ba90f90a6c02001f89f9c86
* Alternative implementation for the internal sqlite3Pow10() utility for MSVC,drh2018-01-17
| | | | | which is more accurate on that platform. FossilOrigin-Name: 469b96be5350ba2291518280ffe179b87aa7fbe701e2813ef63843922771517a
* Faster and smaller implementation of sqlite3AtoF() based on a suggestiondrh2017-12-26
| | | | | from Cezary H. Noweta. FossilOrigin-Name: fd2e0e7a770c2ce9355068aad1024c3d2861c104fd3be304a91c55ca742155fa
* Fix a harmless compiler warning from Xcode 9.1.drh2017-11-06
| | | FossilOrigin-Name: 66d98310b91c69fd01c6a9a958ef1eabda14ec6cd0e4b6612f877f2dfe486c54
* Improved resolution of large integer values in "CAST(x AS NUMERIC)".drh2017-09-20
| | | FossilOrigin-Name: 7f2bd4ff45fba29528c18cac6da983bd9b164303525d3965056f5b40f85dc83f
* Fix an error in [b22cdd67] that can cause a negative infinity to be (rarely)drh2017-09-12
| | | | | reported as a positive infinity. FossilOrigin-Name: 9780b23ca375de6a542516fbc03eb39d5a393ca577718fda231d0d0ccf3b1c7e
* Changes to (hopefully) get the build working with recent Intel compilers.drh2017-09-12
| | | FossilOrigin-Name: b22cdd6734ecda2b2b9749668f353abc2660f192d6a40c5d266309d30e25695e
* Use the __builtin_clzll() function of gcc to improve the performance anddrh2017-08-17
| | | | | reduce the size of the sqlite3LogEst() routine. FossilOrigin-Name: a42a438cbbd721765ca55e71c464552dbaa494050cf472593599b8c7f0249516
* Fix the sqlite3GetInt32() function so that it correctly returns 0 on adrh2017-05-03
| | | | | zero-length input string. FossilOrigin-Name: 05eba9e3a5f9bb2a40af1dacd885e1915fbcd20b9af4cf0eed79ac16dbeba31b
* Remove the CLANG_VERSION macro, since we have learned that version numbers indrh2017-02-15
| | | | | | | clang are "marketing" and are inconsistent and unreliable. Builds using clang will still use the GCC_VERSION macro since clang works hard to be gcc compatible. FossilOrigin-Name: 810d29320b853b3a01aa50d8f2a0bceacf79e0aa
* Cleanup the usage of the SQLITE_DISABLE_INTRINSIC compile-time option.drh2017-02-09
| | | | | | | | Remove the SQLITE_RUNTIME_BYTEORDER compile-time option. Use -DSQLITE_BYTEORDER=0 instead. Fix a bug in R-Tree that occurs when compiling on a known little-endian machine without the use of intrinsic byteswapping functions. FossilOrigin-Name: 798fb9d70d2e5f95e64237b04d6692360133381a
* Use the CLANG_VERSION macro to control clang-specific features.drh2017-01-03
| | | FossilOrigin-Name: f8ebeec211483503e135104ef977b3c384a1d789
* Make use of the __buildin_OP_overflow() functions from GCC when doingdrh2017-01-03
| | | | | 64-bit signed integer arithmetic. FossilOrigin-Name: 82cbebb8ee4484f13e5f48d305e20e73063f273e
* Add check to prevent a VList from growing after pointers to labels have beendrh2016-12-23
| | | | | taken. FossilOrigin-Name: aa23d7eaf69f5ecbf9500b2353846094cae41e6c
* Use the VList object to replace Parse.azVar for tracking the mapping betweendrh2016-12-23
| | | | | | SQL parameter names and parameter numbers. There is a performance improvement, though there are still a few hiccups in the current code. FossilOrigin-Name: 68ecafa1425a41358c88f41efea3262f1b4490f2
* Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE.drh2016-12-07
| | | FossilOrigin-Name: f360818737e73ee4f944685a547abc8f14f47819
* Improved implementation of 64-bit signed integer multiply that correctlydrh2016-09-20
| | | | | | detects overflow (and promotes to floating-point) in some corner cases. Fix for ticket [1ec41379c9c1e400] FossilOrigin-Name: db3ebd7c52cfc5fcc7be00f52e9d7c84719f7b93
* Use comments to mark several branches as optimizations. No changes to code.drh2016-04-28
| | | FossilOrigin-Name: 33e627472780b872716c504f2d585cc057c390a5
* Remove an unnecessary conditional from the sqlite3DecOrHexToI64() routine.drh2016-04-28
| | | FossilOrigin-Name: fcf85bfe50b254e825ee63a4cd0aa0b333b06eed
* Change the sqlite3Atoi64() routine so that it returns failure if not all ofdrh2016-04-28
| | | | | | the input characters are consumed, even if it consumed all characters up to the first 0x00. This has no impact on external APIs as far as I can tell. FossilOrigin-Name: 46d4ffff3bd33d7e901e76cfac1cbde38d4f61d0
* More simplification of the sqlite3AtoF() routine. Add special commentsdrh2016-04-27
| | | | | | to indicate branches that are for optimization purposes only and that give the correct answer even if always or never taken. FossilOrigin-Name: 0065fe97cb8e5076acae1bf1560fd2f69dab9014
* Remove still more unnecessary branches from sqlite3AtoF().drh2016-04-27
| | | FossilOrigin-Name: 3adfe9f3e6ce7cc09fcb570d9b65e830a96cac15
* Further simplifications to sqlite3AtoF() to remove unneeded branches.drh2016-04-26
| | | FossilOrigin-Name: dd69e53cb077873171af5312c633ca185595bf31
* Remove an unnecessary line from the sqlite3AtoF() routine.drh2016-04-26
| | | FossilOrigin-Name: a9d007494cfe30a26dca5352655dc7702351476e
* Performance optimization to sqlite3Dequote() and its callers.drh2016-04-11
| | | FossilOrigin-Name: 9efe2265b1e70172778d333c5b9d9a76095427ab
* Remove an unnecessary branch in the sqlite3LogEstToInt() routine.drh2016-04-05
| | | FossilOrigin-Name: da81d7afeb0566a09a505ba5fce901e991e4a029
* The sqlite3_column_decltype() routine should return NULL, not an empty string,drh2016-03-22
| | | | | if the column has no declared type. FossilOrigin-Name: 605eba4a756e7185119088e2242f82691d078b01
* Improved comments. No logical changes to code.drh2016-03-21
| | | FossilOrigin-Name: a6b6c6c466f3feb257b4fc08ef6b9a27a68ca073
* Do a better job of capturing all system errno values regardless of whendrh2016-03-21
| | | | | they occur. FossilOrigin-Name: 7d49998d571d841a6d1b55f5f9889e613daaab2a
* Experimental implementation of the sqlite3_system_errno() interface.drh2016-03-17
| | | FossilOrigin-Name: 6782c87b3722fbd09684a5b1e5df05247956f1c6
* Use #ifdefs to remove code that is unreachable in some configurations, replacingdrh2016-03-10
| | | | | it with an assert(). FossilOrigin-Name: f96ec84d605fd73c323344a753acf35b76307af9