/ History for src/date.c
Login

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

History for src/date.c

2020-06-19
11:34
[9f1d31ef] part of check-in [7bb08b1b] Refactoring various names. No changes in the resulting machine code. (check-in: [7bb08b1b] user: drh branch: trunk, size: 33538)
2020-03-28
12:01
[b29b349d] part of check-in [076658e5] MSVC does not allow constant expressions as initializers for constants with /fp:strict. (check-in: [076658e5] user: drh branch: trunk, size: 33544)
2020-01-17
16:47
[6c408fdd] part of check-in [c9abf1bd] Improved rounding in the 'unixepoch' feature of the date and time functions. (check-in: [c9abf1bd] user: drh branch: trunk, size: 33622)
2019-06-07
22:26
[e1d8ac71] 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: 33614)
2017-12-07
22:04
[ebe1dc7c] part of check-in [95958b60] Fix typo in comment. No changes to code. (check-in: [95958b60] user: mistachkin branch: trunk, size: 33608)
2017-07-20
13:17
[48f743d8] part of check-in [22eda098] Combine the Parse.ckBase and Parse.iSelfTab fields into just Parse.iSelfTab. This fixes a problem with date/time functions in check-constraints. Add some test cases for date/time functions in index expressions and check constraints. (check-in: [22eda098] user: drh branch: index-on-date-func, size: 33608)
2017-07-19
19:48
[921fb595] part of check-in [0a5e1c04] Allow indexes to be created on date/time functions as long as the 'now' date and the 'localtime' and 'utc' modifiers are not used. (check-in: [0a5e1c04] user: drh branch: index-on-date-func, size: 33637)
17:12
[9d27aa27] part of check-in [55791928] Create "pure" versions of the date/time functions that omit the 'now' feature and are therefore deterministic and usable in an index. (check-in: [55791928] user: drh branch: pure-date-functions, size: 34227)
2017-04-22
00:20
[cc42a41c] part of check-in [e39769f4] Fix an assertion fault found by OSSFuzz. (check-in: [e39769f4] user: drh branch: trunk, size: 33520)
2017-03-03
21:36
[ee676e76] part of check-in [4a04c48a] Remove an redundant function call from the date/time function implementation. (check-in: [4a04c48a] user: drh branch: trunk, size: 33485)
20:43
[499343d9] part of check-in [8831f439] Fix another corner-case for the 'start of ...' modifier in the date/time functions. Related to ticket [6097cb92745327a1]. (check-in: [8831f439] user: drh branch: trunk, size: 33508)
2017-03-02
23:40
[bb4db348] part of check-in [081dbcfb] Fix a bug in the 'start of ...' date/time modifiers when they follow a julian day number. Fix for ticket [6097cb92745327a1]. (check-in: [081dbcfb] user: drh branch: trunk, size: 33445)
2016-12-30
00:09
[dc3f1391] part of check-in [f57952ba] Encode a 64-bit integer literal in date.c as a constant expression so that it works on older compilers. Also fix a harmless compiler warning in vdbe.c. (check-in: [f57952ba] user: drh branch: trunk, size: 33426)
2016-12-07
15:49
[b48378ae] part of check-in [f3608187] Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE. (check-in: [f3608187] user: drh branch: trunk, size: 33049)
2016-12-05
20:16
[57f23f58] part of check-in [b4bc40d1] Fix a harmless redundant local variable declaration in the date/time function logic. (check-in: [b4bc40d1] user: drh branch: trunk, size: 33063)
2016-12-02
19:07
[11609794] part of check-in [6e144735] Simplify the date/time function logic for improved rebustness and also to decrease the size of the binary. (check-in: [6e144735] user: drh branch: trunk, size: 33070)
17:08
[58d4275a] part of check-in [768c9859] Extend the valid range of 'unixepoch' dates from JulianDay 0 through 9999-12-31. (check-in: [768c9859] user: drh branch: trunk, size: 32154)
14:15
[59fc29b4] part of check-in [3c58b173] Fix a potential integer overflow during out-of-bound date computations. (check-in: [3c58b173] user: drh branch: date-overflow-fix, size: 31719)
2016-11-30
04:07
[206d0eb8] part of check-in [1218005a] More improvements to boundary cases in the date/time functions, flowing out of branch coverage testing. (check-in: [1218005a] user: drh branch: trunk, size: 31580)
00:48
[736c1f36] part of check-in [dc453b34] Further changes to the date/time functions to suppress harmless signed integer overflow warnings that could have occurred when doing out-of-range date calculations which, according to the docs, give undefined results. (check-in: [dc453b34] user: drh branch: trunk, size: 31504)
2016-11-29
20:39
[53a4019b] part of check-in [d410a839] The documentation says that the built-in date-time functions give undefined results for dates before 0000-01-01 and after 9999-12-31. Change the actually implementation so that the answer given is really NULL. This also avoids unnecessary hand-wringing over an signed integer overflow that might otherwise occur when processing out-of-bound dates. (check-in: [d410a839] user: drh branch: trunk, size: 31165)
2016-08-02
20:42
[95c9a8d0] part of check-in [e2f9919e] Fix a unused variable that comes up with -DSQLITE_OMIT_DATETIME_FUNCS. (check-in: [e2f9919e] user: drh branch: trunk, size: 30718)
2016-04-12
16:11
[1cc9fb51] part of check-in [541c6da2] Add and adjust comments. (check-in: [541c6da2] user: mistachkin branch: winCeLocalTime, size: 30733)
2016-04-11
22:45
[b2581915] part of check-in [b35bb928] Further refinements. (check-in: [b35bb928] user: mistachkin branch: winCeLocalTime, size: 30673)
2016-04-05
17:59
[cd412cb2] part of check-in [00990020] Merge updates from trunk. (check-in: [00990020] user: mistachkin branch: winCeLocalTime, size: 30382)
2016-02-15
00:34
[0b73e681] 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: 30382)
2016-02-05
13:38
[ca17321b] part of check-in [0a802e96] Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority cases where db is guaranteed to be not NULL. (check-in: [0a802e96] user: drh branch: oom-handling, size: 30557)
2016-01-23
01:54
[6142d9e4] part of check-in [39759a55] Cleanup localtime() support for Windows CE. (check-in: [39759a55] user: mistachkin branch: winCeLocalTime, size: 30555)
2016-01-14
19:32
[997651e3] part of check-in [b9159f42] Simplification to the ISO8610 parser in the imnplementation of date/time functions. (check-in: [b9159f42] user: drh branch: trunk, size: 30555)
2015-12-23
10:54
[e4655393] part of check-in [b910a3d5] Enhance the 'utc' modifier on date/time functions so that if the LHS is already known to be in UTC, the modifier becomes a no-op. This is not an incompatibility because the behavior is documented as "undefined" in that scenario. (check-in: [b910a3d5] user: drh branch: trunk, size: 29832)
2015-08-31
17:34
[fb1c9917] part of check-in [c77554b5] Make the distinction between truly deterministic functions and date/time functions which only return the same answer for a single query. Only truly deterministic functions are allowed in indexes. Add new expression index test cases. (check-in: [c77554b5] user: drh branch: index-expr, size: 29643)
2015-07-15
18:04
[8ec787fe] part of check-in [b522c95d] Attempt to fix harmless warnings generated by GCC and Clang runtime analyzers. (check-in: [b522c95d] user: drh branch: trunk, size: 29635)
2015-01-10
16:49
[e4d50b32] part of check-in [9e92a5ed] Improvements to compile-time-option hygiene. Use "#if OPTION" instead of "#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. (check-in: [9e92a5ed] user: drh branch: trunk, size: 29627)
2015-01-09
01:27
[53cedb54] part of check-in [fe578863] Fix three crash problems discovered by afl-fuzz. Ticket [a59ae93ee990a55]. (check-in: [fe578863] user: drh branch: trunk, size: 29725)
2014-11-07
13:24
[93594514] part of check-in [94c564da] Fix harmless typos in comments. (check-in: [94c564da] user: drh branch: trunk, size: 29693)
2014-09-06
16:39
[57a7f9ba] part of check-in [e62aab5e] Fix typos in comments. No code changes. (check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 29693)
2014-05-19
15:16
[7535e866] 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: 29686)
2014-04-23
12:00
[483fd9ee] part of check-in [2029a396] Enhancements to the date and time functions so that they optionally support a 5-digit year. Not sure we want to include this in trunk. Saved in a branch for future reference. (check-in: [2029a396] user: drh branch: five-digit-year, size: 30439)
2013-10-11
20:14
[593c744b] part of check-in [5e0d43ab] Add requirements marks. No code changes. (check-in: [5e0d43ab] user: drh branch: trunk, size: 29691)
2013-09-16
12:57
[65196e95] part of check-in [daf6ba41] The date and time functions use the exact same notion of "now" for every invocation within the same call to sqlite3_step(). (check-in: [daf6ba41] user: drh branch: trunk, size: 29237)
2011-10-12
23:13
[067a81c9] part of check-in [c96651dd] The date/time functions return NULL if the xCurrentTime or xCurrentTimeInt64 VFS methods fail. Ticket [0b803bff856c644c] (check-in: [c96651dd] user: drh branch: trunk, size: 29330)
2011-06-24
11:29
[a3c6842b] part of check-in [9b191bb4] Fix some harmless compiler warnings that were occurring with THREADSAFE=0. (check-in: [9b191bb4] user: drh branch: trunk, size: 29220)
2011-06-21
15:58
[c223415e] part of check-in [1abce55a] Give the osLocaltime() function file scope in date.c. (check-in: [1abce55a] user: dan branch: branch-3.7.6, size: 29079)
15:54
[d3c11de7] part of check-in [15774845] Give the osLocaltime() function file scope in date.c. (check-in: [15774845] user: drh branch: trunk, size: 29189)
15:38
[e4df4878] part of check-in [6b9877fa] Initialize a variable introduced as part of the fix for [bd484a090c8077] in order to silence a compiler warning. (check-in: [6b9877fa] user: dan branch: trunk, size: 29182)
15:34
[1478fb55] part of check-in [2f5b3712] Backport the localtime() failure patch from trunk. Ticket [bd484a090c8077]. (check-in: [2f5b3712] user: drh branch: branch-3.6.1, size: 27626)
15:01
[8eb16dd5] part of check-in [17624809] Rework the localtime logic yet again in order to make all branches reachable and to follow GNU standards for HAVE_LOCALTIME_R-type macros. Ticket [bd484a090c8077]. (check-in: [17624809] user: drh branch: trunk, size: 29072)
14:35
[2c5b336a] part of check-in [5b68dae3] Simplifications to the localtime() interface. Fix the case where localtime_r() is available so that it works. Ticket [bd484a090c8077]. (check-in: [5b68dae3] user: drh branch: trunk, size: 28833)
13:46
[193172e7] part of check-in [0e82175f] Change the error message returned when localtime_r() fails to "local time unavailable". Ticket [bd484a090c8077] (check-in: [0e82175f] user: dan branch: trunk, size: 29881)
12:53
[f3711b13] part of check-in [97e86ec6] Fix an error made in the previous commit. The parameters to localtime_s() were accidentally reversed. Ticket [bd484a090c807]. (check-in: [97e86ec6] user: dan branch: trunk, size: 29879)
12:47
[1b23db78] part of check-in [76ae8257] Return an error if localtime_r() fails within one of the date/time functions. Fix for [bd484a090c]. (check-in: [76ae8257] user: dan branch: trunk, size: 29879)
2011-04-23
15:54
[0d63575d] part of check-in [68240e75] Have the ATTACH command do URI interpretation in the same way as sqlite3_open() and sqlite3_open_v2() do. (check-in: [68240e75] user: dan branch: uri, size: 27797)
2010-09-30
00:50
[1548fdac] 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: 27798)
2010-05-03
19:17
[5dd8448a] part of check-in [e7ded46b] Fix a bug in the computation of the current time for the alternative CURRENT_TIMESTAMP functions used when SQLITE_OMIT_DATETIME is defined. (check-in: [e7ded46b] user: drh branch: trunk, size: 27866)
14:32
[8a389e95] part of check-in [ab77b3ae] Use VFS method xCurrentTimeInt64 instead of xCurrentTime when it is available. Provide an implementation of xCurrentTimeInt64 for os_unix.c. (check-in: [ab77b3ae] user: drh branch: trunk, size: 27867)
2010-01-12
19:28
[485a4409] part of check-in [eb98265b] Fix the implementation of CURRENT_TIMESTAME and CURRENT_DATE when SQLITE_OMIT_DATETIME_FUNCS is defined. (check-in: [eb98265b] user: drh branch: trunk, size: 28080)
2009-11-10
01:30
[a79c0a8f] part of check-in [f6c045f6] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f6] user: drh branch: trunk, size: 28080)
2009-09-22
13:25
[657ff12c] part of check-in [216bcda7] Allow specific exclusion of localtime_s() usage on Windows. (check-in: [216bcda7] user: shane branch: trunk, size: 28136)
2009-09-10
20:23
[6d936393] part of check-in [f42ec993] Fixed some warnings and an assert in the WINCE code when compiling under MSVC. (check-in: [f42ec993] user: shane branch: trunk, size: 28116)
2009-05-03
20:23
[ab5f7137] part of check-in [a6122990] Changes to facility full coverage testing of util.c. (CVS 6597) (check-in: [a6122990] user: drh branch: trunk, size: 28106)
2009-04-16
12:58
[d327ec7b] part of check-in [e6e036b3] Make sure the 'unixepoch' converter in the date and time functions rounds to the nearest millisecond rather than truncating downward to the next smaller millisecond. Ticket #3808. (CVS 6512) (check-in: [e6e036b3] user: drh branch: trunk, size: 28030)
2009-04-03
12:04
[3e5c554b] part of check-in [c26f97bd] Use integer rather than floating point compuations in converting from julian day number to unix-time to avoid round-off errors on Borland compilers. Ticket #3769. (CVS 6445) (check-in: [c26f97bd] user: drh branch: trunk, size: 28020)
2009-04-01
20:44
[e6263ed8] part of check-in [a95b843a] Fix the strftime() function so that the %s format can handle dates outside of the range of 1901 to 2038. Ticket #3769. (CVS 6430) (check-in: [a95b843a] user: drh branch: trunk, size: 28017)
2009-02-04
03:59
[0d804df3] 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: 28017)
2009-01-30
17:27
[870770dd] part of check-in [86be908c] Fix a round-off error when moving dates by negative modifier amounts. Ticket #3618. Enhance the "NNN years" modifier to accept fractional years. (CVS 6220) (check-in: [86be908c] user: drh branch: trunk, size: 27777)
2009-01-28
02:55
[b4db68e6] part of check-in [90b42eba] Add testcase() macros for coverage in date.c. (CVS 6209) (check-in: [90b42eba] user: drh branch: trunk, size: 27570)
2009-01-20
16:53
[6fd7a113] 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: 27402)
2008-12-20
13:18
[e010095d] part of check-in [51b3bfc3] Do not use long long constants in code. Ticket #3547. (CVS 6048) (check-in: [51b3bfc3] user: drh branch: trunk, size: 27395)
2008-12-10
22:30
[3dbac3ea] part of check-in [715dcd52] Work to remove harmless MSVC compiler warnings. (CVS 6013) (check-in: [715dcd52] user: shane branch: trunk, size: 27387)
21:19
[719afa55] part of check-in [ea01d437] Additional work at eliminating silly compiler warnings. (CVS 6010) (check-in: [ea01d437] user: drh branch: trunk, size: 27389)
19:26
[9a615644] 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: 27367)
2008-12-09
04:59
[80b158ab] part of check-in [5eb648a0] Removed some harmless compiler warnings and converted some "double" ops to "int" in date.c. (CVS 5997) (check-in: [5eb648a0] user: shane branch: trunk, size: 27266)
2008-11-19
09:05
[88898ae9] part of check-in [88134322] Changes to avoid "unused parameter" compiler warnings. (CVS 5921) (check-in: [88134322] user: danielk1977 branch: trunk, size: 26979)
2008-11-17
19:18
[acae103f] part of check-in [8009220c] Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914) (check-in: [8009220c] user: danielk1977 branch: trunk, size: 26838)
2008-10-13
15:35
[6f4277fa] part of check-in [c3f91645] Fix the SQLITE_OMIT_DATETIME_FUNCS compile-time option so that it builds successfully. (CVS 5815) (check-in: [c3f91645] user: drh branch: trunk, size: 26822)
2008-10-07
12:32
[1b1fc801] part of check-in [b0323132] Do not use double unnecessarily in date+time functions. Ticket #3422. (CVS 5776) (check-in: [b0323132] user: drh branch: trunk, size: 26810)
2008-09-03
17:11
[5c092296] part of check-in [e333c3f4] Work around an issue with the WINSCW compiler. (CVS 5671) (check-in: [e333c3f4] user: drh branch: trunk, size: 26813)
2008-09-01
18:34
[66095574] 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: 26811)
2008-08-21
20:21
[2373f20a] 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: 26697)
2008-07-28
19:34
[52a54811] 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: 26886)
2008-07-25
16:39
[243677c5] part of check-in [71486e93] Add an SQLITE_OMIT_LOCALTIME around the "utc" modifier in date/time functions. (CVS 5483) (check-in: [71486e93] user: drh branch: trunk, size: 26851)
2008-06-18
17:09
[e841168e] part of check-in [5059644c] Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) (check-in: [5059644c] user: danielk1977 branch: trunk, size: 26815)
2008-06-15
02:51
[bbc4114d] 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: 26815)
2008-06-12
16:35
[76a5ba94] part of check-in [ed35f8a9] Convert the date/time functions to work with milliseconds since the julian epoch internally (instead of days since the epoch) in order to avoid problems with floating-point roundoff error. The interface is unchanged. (CVS 5215) (check-in: [ed35f8a9] user: drh branch: trunk, size: 26816)
13:50
[95d742c3] part of check-in [6ec4d765] Avoid unnecessary float->text->float conversions in date/time processing. This change necessary to reproduce the problem reported by BareFoot. (CVS 5213) (check-in: [6ec4d765] user: drh branch: trunk, size: 26455)
12:51
[fd34fd6b] part of check-in [12f3ba11] Add the ability to disable the "localtime" modifier in the date/time functions. This might be necessary for systems that do not support localtime_r() or localtime_s(). (CVS 5212) (check-in: [12f3ba11] user: drh branch: trunk, size: 26127)
2008-05-27
19:49
[b305ced9] part of check-in [1518827e] Updated to use localtime_s() in Windows build environments that support it. Ticket #3126. (CVS 5164) (check-in: [1518827e] user: shane branch: trunk, size: 26027)
2008-03-20
14:03
[e41ce451] 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: 25127)
2008-03-19
21:45
[7b80383c] 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: 25081)
20:18
[4c026b33] part of check-in [73fbac7c] Use the xCurrentTime method of the default VFS instead of stdlib time() to get the current time when compiling with SQLITE_OMIT_DATETIME_FUNCS. (CVS 4887) (check-in: [73fbac7c] user: drh branch: trunk, size: 25066)
2008-02-21
20:40
[187cad26] part of check-in [4c9a7b42] Accept "Z" as the zulu timezone at the end of date strings. (CVS 4805) (check-in: [4c9a7b42] user: drh branch: trunk, size: 25103)
2008-01-17
22:27
[8ce763c6] part of check-in [a676f949] Test coverage for date.c. (CVS 4722) (check-in: [a676f949] user: drh branch: trunk, size: 24968)
20:26
[a5bf9426] part of check-in [495fb416] Improved test coverage in date.c. Report an error if a malloc fails within strftime(). (CVS 4721) (check-in: [495fb416] user: drh branch: trunk, size: 25277)
2007-09-12
17:01
[49c5a6d2] part of check-in [c8405b15] Fixes for compilation/testing when the various OMIT macros are defined. (CVS 4423) (check-in: [c8405b15] user: danielk1977 branch: trunk, size: 25224)
2007-08-24
03:51
[af235f38] part of check-in [3a68fcdd] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (check-in: [3a68fcdd] user: drh branch: trunk, size: 25202)
2007-08-21
19:33
[a80b33f6] 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: 25188)
10:44
[70a5af19] part of check-in [fbbd5bda] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda] user: drh branch: trunk, size: 25197)
2007-08-18
10:59
[8c37dbba] part of check-in [a258c4ec] Further progress on migration to sqlite3_vfs. (CVS 4242) (check-in: [a258c4ec] user: danielk1977 branch: trunk, size: 25221)
2007-08-16
10:09
[c44aa498] 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: 24871)
04:30
[6c6ae019] 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: 24851)
2007-05-08
21:56
[6049db7d] part of check-in [03349ec0] Remove a keyword from the header comment in date.c (CVS 3961) (check-in: [03349ec0] user: drh branch: trunk, size: 24847)
15:15
[263ef5b8] 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: 24860)
2007-05-04
13:15
[c34a9c86] 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: 24765)
2007-04-25
18:23
[94a6777d] 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: 24498)
2007-04-06
02:32
[74b76691] part of check-in [a776d93c] Test coverage improvements. Over 90% of branches are now executed in both directions. (CVS 3820) (check-in: [a776d93c] user: drh branch: trunk, size: 24526)
2007-03-29
17:57
[c4930ef6] part of check-in [e853067e] Make sure the strftime() date conversions put in leading zeros correctly. Ticket #2276. (CVS 3749) (check-in: [e853067e] user: drh branch: trunk, size: 24528)
2007-01-08
16:20
[3f080b6f] part of check-in [47fee16b] Fix a date round-off problem in strftime(). Ticket #2153. (CVS 3575) (check-in: [47fee16b] user: drh branch: version_2, size: 21216)
16:19
[393c73fc] part of check-in [d49ddc5f] Fix another round-off problem in strftime(). Ticket #2153. (CVS 3574) (check-in: [d49ddc5f] user: drh branch: trunk, size: 24528)
13:43
[93658710] part of check-in [e6a18741] Fix a round-off error in the %W conversion of strftime(). Ticket #2150. (CVS 3572) (check-in: [e6a18741] user: drh branch: version_2, size: 21222)
13:07
[bc0828d3] part of check-in [52067937] Fix a round-off error in the %W and %j conversions of the strftime() function. Ticket #2150. (CVS 3570) (check-in: [52067937] user: drh branch: trunk, size: 24534)
2006-09-25
18:05
[9602457c] part of check-in [433dac1f] CVS malfunctioned on the previous check-in. Make sure the revision to date.c was received. Ticket #1991. (CVS 3444) (check-in: [433dac1f] user: drh branch: trunk, size: 24528)
18:01
[5e470f01] part of check-in [bf460840] Fix a round-off problem in the %f conversion of strftime(). Ticket #1991. (CVS 3443) (check-in: [bf460840] user: drh branch: trunk, size: 24527)
2006-09-08
12:49
[d5519023] part of check-in [862302ea] Add HAVE_GMTIME_R and HAVE_LOCALTIME_R flags and use them if defined. Unable to modify the configure script to test for gmtime_r and localtime_r, however, because on my SuSE 10.2 system, autoconf generates a configure script that does not work. Bummer. Ticket #1906 (CVS 3397) (check-in: [862302ea] user: drh branch: trunk, size: 24517)
12:27
[bbfc2db2] part of check-in [c81eaa0d] Bug fix in date/time computations. Ticket #1964. Some unrelated comment typos are also fixed and got accidently checked in at the same time. (CVS 3396) (check-in: [c81eaa0d] user: drh branch: trunk, size: 24052)
2006-01-31
20:49
[cd2bd5d1] part of check-in [a088eb6d] Patches to support linux on embedded platforms. (CVS 3049) (check-in: [a088eb6d] user: drh branch: trunk, size: 24031)
2006-01-24
12:09
[c70a4f88] part of check-in [d86f18a4] Rename some variables to avoid hiding others. Also add "static" to two function signatures that were missing it. (CVS 3024) (check-in: [d86f18a4] user: danielk1977 branch: trunk, size: 24039)
2006-01-17
13:21
[2f148728] 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: 24027)
2006-01-15
00:13
[5f5850c6] part of check-in [03c422ec] Documentation updates. Fix to date.c. But most importantly: database connections are now allowed to change threads as long as they are not holding a lock. (CVS 2944) (check-in: [03c422ec] user: drh branch: trunk, size: 24031)
2006-01-13
01:17
[5b86bc41] part of check-in [94eac140] Terminate the va_start in the getDigits function of date.c. (CVS 2931) (check-in: [94eac140] user: drh branch: trunk, size: 24000)
2006-01-09
00:18
[a927bdbb] part of check-in [94c87b70] Fix timezone parsing in the date/time functions. Ticket #1587. (CVS 2891) (check-in: [94c87b70] user: drh branch: trunk, size: 23986)
2006-01-06
14:32
[9a1fe548] part of check-in [2529c2e1] Change the OS interface layer to use traditional direct function call implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) (check-in: [2529c2e1] user: drh branch: trunk, size: 23986)
2005-12-09
20:02
[bb079317] 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: 23996)
2005-11-30
03:20
[8bc8d084] part of check-in [bd8740d1] Restructure the OS interface yet again. This time make the OsFile object a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) (check-in: [bd8740d1] user: drh branch: trunk, size: 23969)
2005-06-25
18:42
[7444b090] 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: 23959)
2005-03-21
00:43
[2134ef43] part of check-in [2bf88daa] Allow the character "T" between date and time in ISO-8601 date/time formats. Ticket #1170. (CVS 2408) (check-in: [2bf88daa] user: drh branch: trunk, size: 24056)
2005-01-15
01:52
[f3d1f5cd] part of check-in [92f9d2b2] Test coverage improvements. (CVS 2215) (check-in: [92f9d2b2] user: drh branch: trunk, size: 24036)
2004-11-14
21:56
[65536e7e] 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: 24071)
2004-11-11
01:50
[4fd4e90b] part of check-in [c85f13f8] Add documentation for DEFAULT CURRENT_TIME & co. (CVS 2088) (check-in: [c85f13f8] user: danielk1977 branch: trunk, size: 24118)
2004-11-10
11:55
[21413a0f] part of check-in [8e5c2e5d] Ensure tables cannot be created/dropped when btree cursors are open. (CVS 2085) (check-in: [8e5c2e5d] user: danielk1977 branch: trunk, size: 24124)
2004-11-09
16:13
[fcbade13] part of check-in [f81b9c1c] Have "DEFAULT CURRENT_TIME" & co. work even if SQLITE_OMIT_DATETIME_FUNCS is defined. (CVS 2083) (check-in: [f81b9c1c] user: danielk1977 branch: trunk, size: 24108)
12:44
[dbf15c13] part of check-in [0d27c8ff] Port the "DEFAULT CURRENT_TIME" etc. functionality from an earlier fork of sqlite. (CVS 2082) (check-in: [0d27c8ff] user: danielk1977 branch: trunk, size: 22634)
2004-10-06
15:41
[34bdb008] part of check-in [d790c84c] Convert many constants to have type "const". (CVS 2006) (check-in: [d790c84c] user: drh branch: trunk, size: 21364)
2004-10-01
02:00
[93927e2d] part of check-in [8972c004] Use type i64 instead of off_t for file offsets since off_t is giving portability problems. Ticket #924. (CVS 1992) (check-in: [8972c004] user: drh branch: trunk, size: 21358)
2004-09-06
17:24
[eb8d5fa1] 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: 21358)
2004-08-17
10:42
[edff4aa8] part of check-in [9af1d4d1] Fix a typo in a comment. (CVS 1889) (check-in: [9af1d4d1] user: drh branch: trunk, size: 21357)
2004-08-08
20:22
[a164e3a5] 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: 21357)
2004-07-20
00:40
[54befeaf] part of check-in [28c01d2a] Comment out all of date/time functions with SQLITE_OMIT_DATETIME_FUNCS. Ticket #784. (CVS 1829) (check-in: [28c01d2a] user: drh branch: version_2, size: 21216)
00:39
[e1bb384a] part of check-in [4e2ad572] Comment out all of date/time functions with SQLITE_OMIT_DATETIME_FUNCS. Ticket #784. (CVS 1828) (check-in: [4e2ad572] user: drh branch: trunk, size: 21320)
2004-07-18
22:25
[6ccb9336] part of check-in [135e5447] The %W date specifier in strftime should be measured from the first Monday of the year. Ticket #758. (CVS 1806) (check-in: [135e5447] user: drh branch: version_2, size: 21216)
22:22
[d42ea73a] part of check-in [50b016b0] The %W date specifier in strftime should be measured from the first Monday of the year. Ticket #758. (CVS 1805) (check-in: [50b016b0] user: drh branch: trunk, size: 21320)
2004-06-19
08:18
[b3e8b2be] part of check-in [728d57ff] Remove the iCollate argument from sqlite3_create_function() (CVS 1632) (check-in: [728d57ff] user: danielk1977 branch: trunk, size: 21169)
2004-06-12
09:25
[65b483ca] 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: 21172)
00:42
[2d193dbe] 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: 21102)
2004-05-31
18:51
[8e6fa317] part of check-in [adf7e29f] Change all SQLITE3 preprocessor macros to SQLITE. Documentation updates. (CVS 1511) (check-in: [adf7e29f] user: drh branch: trunk, size: 21092)
2004-05-26
23:25
[0eb922af] 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: 21094)
16:54
[37bb5784] 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: 21094)
06:18
[1a6a7254] 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: 21267)
2004-05-25
12:05
[098aee0a] 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: 21258)
11:47
[b754dc0e] 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: 21234)
2004-05-24
12:39
[64fd7169] 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: 21250)
07:04
[fd6a4649] 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: 21094)
2004-05-14
11:00
[0eb0a899] part of check-in [dbfe6e93] Implement type affinity for table and index records (CVS 1375) (check-in: [dbfe6e93] user: danielk1977 branch: trunk, size: 21083)
2004-05-10
10:34
[1564caa1] 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: 21080)
2004-05-08
08:23
[ca325e07] 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: 21073)
2004-02-29
01:08
[f055419d] part of check-in [7b3b8968] One more fix to the new HH:MM:SS modifier. This time add some test procedures too. (CVS 1280) (check-in: [7b3b8968] user: drh branch: trunk, size: 21053)
00:50
[33a52678] part of check-in [e20d51f9] Try again to get the HH:MM:SS modifier change right... (CVS 1279) (check-in: [e20d51f9] user: drh branch: trunk, size: 21054)
00:48
[1eaa5014] part of check-in [248b5500] Fix a bug in the HH:MM:SS modifier change that was just checked in. (CVS 1278) (check-in: [248b5500] user: drh branch: trunk, size: 21014)
00:40
[6cb69543] part of check-in [559002a5] Allow time modifiers of the form HH:MM:SS.SSS with an option "+" or "-" prefix. The specified amount of time is added into the date-time begin modified. (CVS 1277) (check-in: [559002a5] user: drh branch: trunk, size: 20964)
2004-02-22
17:49
[3025642c] part of check-in [9b3bcde1] Code cleanup in the date and time functions. (CVS 1263) (check-in: [9b3bcde1] user: drh branch: trunk, size: 20238)
2004-02-21
03:28
[6120c591] part of check-in [ffa97193] Enhance date/time functions to work with negative years. Ticket #617. (CVS 1255) (check-in: [ffa97193] user: drh branch: trunk, size: 20173)
2004-02-10
13:19
[c9d2bfd4] part of check-in [d0624d25] Fix for ticket #603. (CVS 1220) (check-in: [d0624d25] user: drh branch: trunk, size: 20186)
2004-01-17
01:16
[c6b7e3fa] part of check-in [ed6bd2eb] Do not use strcpy() on overlapping buffers. (CVS 1187) (check-in: [ed6bd2eb] user: drh branch: trunk, size: 20184)
2004-01-08
02:17
[bb89fdb9] part of check-in [34a6b741] Remove unused code and tighten existing code to make the library a little smaller. (CVS 1168) (check-in: [34a6b741] user: drh branch: trunk, size: 20215)
2004-01-07
03:29
[eef0ccd9] part of check-in [70df32b7] Preserve the HH:MM:SS for most date/time modifiers. Ticket #551. (CVS 1163) (check-in: [70df32b7] user: drh branch: trunk, size: 20561)
2003-12-31
17:25
[13775c2d] part of check-in [458cfa5b] Fix for ticket #542. (CVS 1151) (check-in: [458cfa5b] user: drh branch: trunk, size: 20535)
2003-12-24
01:41
[d6377867] part of check-in [9392c514] minor edits for new date.c with mingw/msys on Windows (CVS 1148) (check-in: [9392c514] user: dougcurrie branch: trunk, size: 20531)
2003-12-23
16:34
[a69da899] part of check-in [a5a5fbd6] Update date/time functions so that they correctly handle NULL arguments. (CVS 1147) (check-in: [a5a5fbd6] user: drh branch: trunk, size: 20524)
16:22
[1e3318d8] part of check-in [8482b8c4] Add localtime<-->UTC conversions to the date functions. (CVS 1146) (check-in: [8482b8c4] user: drh branch: trunk, size: 20482)
02:17
[ec36ce6f] 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: 18681)
2003-11-01
01:53
[acb75ff7] 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: 18675) Added