1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix another corner-case for the 'start of ...' modifier in the date/time

functions.  Related to ticket [6097cb92745327a1].

FossilOrigin-Name: 8831f4393dda42b3434e7767968caea84bbca2af
This commit is contained in:
drh
2017-03-03 20:43:43 +00:00
parent 30741eb0d3
commit 35a0925a23
4 changed files with 12 additions and 9 deletions

View File

@@ -743,6 +743,7 @@ static int parseModifier(
** or month or year.
*/
if( sqlite3_strnicmp(z, "start of ", 9)!=0 ) break;
if( !p->validJD && !p->validYMD && !p->validHMS ) break;
z += 9;
computeYMD(p);
p->validHMS = 1;