Mercurial > hg > monetdb-java
changeset 731:4b11238ebe15
Improve DatabaseMetaData.supportsStoredFunctionsUsingCallSyntax().
Future versions of MonetDB (post Sep2022) will have capability to parse and execute ODBC/JDBC escape sequence syntax.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 09 Feb 2023 16:55:27 +0100 (2023-02-09) |
parents | ee061ab9ee32 |
children | 5967ae88e779 |
files | src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java +++ b/src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java @@ -3862,10 +3862,13 @@ public final class MonetDatabaseMetaData * vendor functions using the stored procedure escape syntax. * * @return true if so; false otherwise + * @throws SQLException if a database error occurs */ @Override - public boolean supportsStoredFunctionsUsingCallSyntax() { - return false; + public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException { + if ((getDatabaseMajorVersion() == 11) && (getDatabaseMinorVersion() <= 45)) + return false; + return true; } /**