aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
Commit message (Collapse)AuthorAge
...
* Fix an incorrect #ifdef on sqlite3LogEstToInt().drh2016-03-05
| | | FossilOrigin-Name: dca7b23354a6b08c926b6ed3f7345d942a409862
* Fix an assert() in sqlite3VarintLen(), even though it is impossible to hitdrh2016-03-04
| | | | | in SQLite due to the way sqlite3VarintLen() is used. FossilOrigin-Name: 251424c5869f43012fc1e1a545de362036b883db
* Reduce the amount of heap required to store many schemas by storing eachdrh2016-02-29
| | | | | | column datatype appended to the column name, rather than as a separate allocation. FossilOrigin-Name: 842b21162713bb141b845b01c136457a31af4ab0
* Change the "PRAGMA stats" command to report size values in LogEst units.drh2016-02-25
| | | | | | The eliminates the need for sqlite3LogEstToInt() unless non-standard compile-time options are used, so leave it out except in those cases. FossilOrigin-Name: 832c237fcbe83dd4f5a18a06acb0aeb7e2b9e712
* Add an SQLITE_DISABLE_INTRINSIC #ifdef to the sqlite3Put4Byte() function.drh2016-02-19
| | | FossilOrigin-Name: ba9c6827d0890aaed9168c221fefbdbe89f4f9d3
* Improvements to the application-defined function mechanism so that it isdrh2016-02-15
| | | | | | more compact and runs faster, especially when the application defines thousands of new SQL functions. FossilOrigin-Name: 3201fbcc5105d23132e6b8b7ac825e66af4f8a39
* Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majoritydrh2016-02-05
| | | | | cases where db is guaranteed to be not NULL. FossilOrigin-Name: 0a802e96ab06e2643834b83671fa8353da1a348d
* Add the sqlite3TokenInit() utility function.drh2016-01-22
| | | FossilOrigin-Name: 7323175337b7ba85ac932ca892b28860f6a5b688
* Fix over-length source code lines. No logic changes.drh2015-11-21
| | | FossilOrigin-Name: 198d191b2f5ef7d63ac0093c701955c9052fd734
* Performance improvement in sqlite3VarintLen().drh2015-09-01
| | | FossilOrigin-Name: adf9fefb00ae1dbb07a921c6796cb0a9505c6d19
* Add SQLITE_DISABLE_INTRINSIC define to disable use of intrinsic functions ↵mistachkin2015-07-29
| | | | | (e.g. for certain older compilers and/or platforms). FossilOrigin-Name: f0075d735a76ce326619b6ba7f0d556e492f1c41
* Enable use of the __builtin_bswap32() only with GCC 4.3 and higher.mistachkin2015-07-03
| | | FossilOrigin-Name: 030f60a7ba171650ce8c0ac32dc166eab80aca32
* Make use of the _byteswap_ushort() and _byteswap_ulong() compiler intrinsics ↵mistachkin2015-06-30
| | | | | for MSVC, when available. FossilOrigin-Name: fe144dd73f7097a17c24c7812c2a1cc40466e6da
* Remove the use of htonl() in the previous check-in due to linkage issues.drh2015-06-30
| | | | | | Add the get2byteAligned() macro and use it for access to the cell offsets on btree pages for about a 1% performance gain. FossilOrigin-Name: 79ff36b7170c9e7e7a9935c8b9d1665867771087
* Make use of htonl() and <nowiki>__builtin_bswap32()</nowiki> for fasterdrh2015-06-30
| | | | | implementations of sqlite3Get4byte() and sqlite3Put4byte(). FossilOrigin-Name: bc27ebd7f73e9fc8e00da6ec82632e439fcce812
* Implement sqlite3Strlen30() using strlen() from the C library.drh2015-06-30
| | | FossilOrigin-Name: 8001aa52bd12f900092387fe3571463e89efd977
* Disregard leading zeros when converting strings to 32-bit integers.drh2015-04-18
| | | FossilOrigin-Name: 691cc201e135a01c4cc4057be7e5d99285ab392d
* Improvements to compile-time-option hygiene. Use "#if OPTION" instead ofdrh2015-01-10
| | | | | | | "#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work. Add the "Have-Not" configuration in releasetest.tcl which disables all of the "HAVE_component" compile-time options. FossilOrigin-Name: 9e92a5ed5aaba20461ed4ce8359d6e34e7773d68
* Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work indrh2014-10-24
| | | | | progress and is not yet completely functional. FossilOrigin-Name: c297a84bc678f81ffc0aa9139ab73f0ca87c1971
* Fix typos in comments. No code changes.peter.d.reid2014-09-06
| | | FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
* Performance enhancement in sqlite3PutVarint().drh2014-08-22
| | | FossilOrigin-Name: a929be551924144c9bc7aab608404d59e479abb5
* Split the sqlite3Error() routine into sqlite3Error() anddrh2014-08-22
| | | | | sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. FossilOrigin-Name: cf561d1f0bb60b3d638632d20bd686dda4fa4a04
* Change the hex literal processing so that only the SQL parser understandsdrh2014-07-23
| | | | | | | hex literals. Casting and coercing string literals into numeric values does not understand hexadecimal integers. This preserves backwards compatibility. Also: Throw an error on any hex literal that is too big to fit into 64 bits. FossilOrigin-Name: 6c6f0de59bf96b79c8ace8c9bfe48c7a6a306a50
* Test cases for hex literals.drh2014-07-23
| | | FossilOrigin-Name: 19054339c47448bcdfd1f7be35daa3826c409077
* Add support for parsing C-style hexadecimal literals.drh2014-07-23
| | | FossilOrigin-Name: 34a1f38b7a23c64f5c6e5b34c19a20480be53961
* Repurpose the SQLITE_TESTCTRL_FAULT_INSTALL test-control to register adrh2014-05-16
| | | | | | callback to be invoked by sqlite3FaultSim(). That test-control has been unused since 2008-06-20 and was never used in any official release. FossilOrigin-Name: 0d43a7ad9abe821e33e0bf83a997aa4461b1e3f2
* Fix long-standing typos in comments.drh2014-04-30
| | | FossilOrigin-Name: b9f91317c34d07769a95dc2f905a6ccabceb64a3
* Faster implementation for sqlite3MulInt64().drh2014-02-10
| | | FossilOrigin-Name: 010c48f671e909cb406f3716102a0032bc72a592
* Fixes for various clang warnings.drh2014-01-24
| | | FossilOrigin-Name: 87bf60637e5863c54c5e2d05aaaca0835b7aace8
* Simplication and optimization of error message handling.drh2013-12-13
| | | FossilOrigin-Name: 9d347f547e7ba9590b0c68edf50a14ad94a2bb92
* Fix two potential (and apparently harmless) shift overflows discovered bydrh2013-12-05
| | | | | the -fcatch-undefined-behavior option of clang. FossilOrigin-Name: e19eead8c9977ed4f00eac54c5bc7e90db78caa8
* Fix typos in the header comment on the sqlite3Atoi64() routine.drh2013-12-01
| | | FossilOrigin-Name: c85e0c546ea6c6be46deea5c7a716b5fb553c7b4
* Change the REAL-to-INTEGER casting behavior so that if the REAL valuedrh2013-11-26
| | | | | | | | | is greater than 9223372036854775807.0 then it is cast to the latest possible integer, 9223372036854775807. This is sensible and the way most platforms work in hardware. The former behavior was that oversize REALs would be cast to the smallest possible integer, -9223372036854775808, which is the way Intel hardware works. FossilOrigin-Name: 6f53fc7106658d44edf63068f9a8522fa5a7688b
* Begin an experimental refactoring to estimate the average number of bytesdrh2013-10-05
| | | | | | | in table and index rows and to use that information in query planner. Begin by renaming WhereCost to LogEst and making that type and its conversion routines available outside of where.c. FossilOrigin-Name: 66c4a251d61582b47d5cbe50cbca160a9209bd06
* Change the PRAGMA parser to use a binary search for the pragma name.drh2013-09-13
| | | | | | Also: Minor performance enhancement to sqlite3DbFree() and to the token dequoter. FossilOrigin-Name: 870c030b4e1854e6e0d39907fadbd82774c16f56
* Adjustment to an extreme corner case in the sqlite3Atoi64() routine.drh2013-03-28
| | | FossilOrigin-Name: 39534b4baa53b9360696a9d5ee8cc2108af34592
* Fix text-to-numeric type casting so that it works correctly on UTF16drh2013-03-20
| | | | | | strings that contain characters where the LSB is numeric but the MSB is non-zero. Ticket [689137afb6da41] FossilOrigin-Name: 5b22053f918d16f593227a432a5d5b4c195bb0b5
* Improved rounding accuracy on test-to-float conversions.drh2012-06-19
| | | FossilOrigin-Name: 699b792c6a0e989994549959b11ec1bfad8bbd92
* Add additional test cases to e_insert.test. Update evidence marks.drh2012-03-19
| | | | | no changes to core code. FossilOrigin-Name: 036395c0a8e08883b11df025e3da9e2461e4b1eb
* Change the SQLITE_FCNTL_PRAGMA file-control so that it can return a stringdrh2012-02-22
| | | | | value. FossilOrigin-Name: fd8d7440277b17f57a6dc0a210f42adf1fa2dcd2
* Only require double-zero terminators on database filenames, not any everydrh2012-01-10
| | | | | | | files supplied to the xOpen method. This backs out [2544f233f1]. Also refactor the fillInUnixFile() routine in os_unix.c to reduce the number of parameters. FossilOrigin-Name: cb774b26e13745cfad0d76a71e47466d703e0007
* Fix an incorrect assert() on the sqlite3FileSuffix3() function.drh2012-01-05
| | | FossilOrigin-Name: 24db54bd49ed91c74a9797faca02df2d39553240
* Make sure filenames passed into sqlite3OsOpen() always have the extradrh2012-01-03
| | | | | zero-terminators needed by sqlite3_uri_parameter(). FossilOrigin-Name: d73e93cfdc9441ade77b796dcdcf6eeb753cb398
* Fix the build so that it works when SQLITE_ENABLE_8_3_NAMES=1.drh2012-01-02
| | | FossilOrigin-Name: d9761f15a175724c6c28a52335c979304737b188
* Add interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which aredrh2011-12-23
| | | | | | wrappers around sqlite3_uri_parameter() combined with internal routines for converting strings to booleans and 64-bit integers. FossilOrigin-Name: 83d26b9a9115eadac9e59a33d608bca0ab2519e3
* Make sure the antipenultimate character of master-journal filenames is a "9"drh2011-12-16
| | | | | | in order to avoid collisions with other files in 8+3 filename mode. Also, limit the number of attempts at finding a unique master-journal filename. FossilOrigin-Name: 34a0483605d36e6cf03065ed0df33fb1f7c8a272
* Change a memcpy() in sqlite3FileSuffix() to memmove() on the grounds that ↵dan2011-11-04
| | | | | the source and destination may overlap. FossilOrigin-Name: 5e1d247e5b3b5dcf6763f01002e996786db48152
* Avoid 32-bit integer overflow when evaluating the exponent of a floating pointdrh2011-10-17
| | | | | value during ascii to binary conversion. FossilOrigin-Name: 4becc47eb4d48686faca4f61e93e5f379b227fcc
* Performance improvement for ascii to floating-point conversions with verydrh2011-10-17
| | | | | large exponents. FossilOrigin-Name: 59bb999c8ba5e4ee7a4e388fc724b8606136d60c
* Compile with the SQLITE_ENABLE_8_3_NAME macro set to 2 to force 8+3 filenamesdrh2011-07-21
| | | | | to be on all the time. FossilOrigin-Name: ae83dac70173fecf203bf7e9f7bcb189d3e48f08