aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-01-12 19:28:20 +0000
committerdrh <drh@noemail.net>2010-01-12 19:28:20 +0000
commit2b1e690ff11ea5ef49edecef98fa94fe8694232d (patch)
tree6d1c4f086ad305d59686633da5694194cf3843c2 /src
parentf596da5cc6176e4f1754aee21b954eda6c3edef5 (diff)
downloadsqlite-2b1e690ff11ea5ef49edecef98fa94fe8694232d.tar.gz
sqlite-2b1e690ff11ea5ef49edecef98fa94fe8694232d.zip
Fix the implementation of CURRENT_TIMESTAME and CURRENT_DATE when
SQLITE_OMIT_DATETIME_FUNCS is defined. FossilOrigin-Name: eb98265b59db59965b468a7070739921da55efc4
Diffstat (limited to 'src')
-rw-r--r--src/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index a17159179..2c39a0a0d 100644
--- a/src/date.c
+++ b/src/date.c
@@ -1092,8 +1092,8 @@ void sqlite3RegisterDateTimeFunctions(void){
FUNCTION(current_date, 0, 0, 0, cdateFunc ),
#else
STR_FUNCTION(current_time, 0, "%H:%M:%S", 0, currentTimeFunc),
- STR_FUNCTION(current_timestamp, 0, "%Y-%m-%d", 0, currentTimeFunc),
- STR_FUNCTION(current_date, 0, "%Y-%m-%d %H:%M:%S", 0, currentTimeFunc),
+ STR_FUNCTION(current_date, 0, "%Y-%m-%d", 0, currentTimeFunc),
+ STR_FUNCTION(current_timestamp, 0, "%Y-%m-%d %H:%M:%S", 0, currentTimeFunc),
#endif
};
int i;