From 2bc5926db5b052802d19aded49feb7274f98441c Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 1 Dec 2020 19:05:19 +0100 Subject: [PATCH] Re-add CURRENT_TIMESTAMP function, removed accidentally in last update. See https://www.heidisql.com/forum.php?t=37278 --- source/dbstructures.pas | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/dbstructures.pas b/source/dbstructures.pas index ab0355b2..e0730b46 100644 --- a/source/dbstructures.pas +++ b/source/dbstructures.pas @@ -2289,7 +2289,7 @@ var ); - MySqlFunctions: Array [0..374] of TMysqlFunction = + MySqlFunctions: Array [0..375] of TMysqlFunction = ( ( Name: 'BIT_COUNT'; @@ -3184,6 +3184,16 @@ var +'+-------------+' ), + // Added by hand, for https://github.com/HeidiSQL/HeidiSQL/issues/74#issuecomment-559321533 + // and again, for https://www.heidisql.com/forum.php?t=37278 + ( + Name: 'CURRENT_TIMESTAMP'; + Declaration: '()'; + Category: 'Date and Time Functions'; + Version: SQL_VERSION_ANSI; + Description: 'CURRENT_TIMESTAMP and CURRENT_TIMESTAMP() are synonyms for NOW()' + ), + ( Name: 'DATEDIFF'; Declaration: '(expr1,expr2)';