changeset 968:ef11627b87cb

Let getTimeDateFunctions() return functions sys.dayname and sys.monthname when the server supports them. Those will be supported from MonetDB server v11.53 (March2025).
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 20 Mar 2025 16:12:58 +0100 (2 weeks ago)
parents 5cc071c5c170
children 0fce9f209457
files src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java
+++ b/src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java
@@ -482,7 +482,7 @@ public final class MonetDatabaseMetaData
 		final String wherePart =
 			 "\"mod\" IN ('mtime','timestamp')" +
 			// include Date/Time functions which are located in 'str' module
-			" OR f.\"name\" IN ('localtime','localtimestamp','date_trunc')";
+			" OR f.\"name\" IN ('localtime','localtimestamp','date_trunc','dayname','monthname')";
 		final String unionPart =
 			// add time date functions which are not listed in sys.functions but implemented in the SQL parser (see sql/server/sql_parser.y)
 			" UNION SELECT 'extract'" +