Add LOCALTIME and LOCALTIMESTAMP functions per SQL99 standard.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 15 Jun 2002 03:00:09 +0000 (03:00 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 15 Jun 2002 03:00:09 +0000 (03:00 +0000)
Remove ODBC-compatible empty parentheses from calls to SQL99 functions
 for which these parentheses do not match the standard.
Update the ODBC driver to ensure compatibility with the ODBC standard
 for these functions (e.g. CURRENT_TIMESTAMP, CURRENT_USER, etc).
Include a new appendix in the User's Guide which lists the labeled features
 for SQL99 (the labeled features replaced the "basic", "intermediate",
 and "advanced" categories from SQL92). features.sgml does not yet split
 this list into "supported" and "unsupported" lists.

convert.c

index 39a430aff3f2d20ca2b9a0146dfa76bac19bdfae..60fdc54f9c34febf35ee5be89b9793b93f3215bf 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -103,6 +103,8 @@ char       *mapFuncs[][2] = {
    {"CURRENT_DATE", "current_date" },
    {"CURRENT_TIME", "current_time" },
    {"CURRENT_TIMESTAMP", "current_timestamp" },
+   {"LOCALTIME", "localtime" },
+   {"LOCALTIMESTAMP", "localtimestamp" },
    {"CURRENT_USER", "cast(current_user as text)" },
    {"SESSION_USER", "cast(session_user as text)" },
    {"CURDATE",  "current_date" },