comparison src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java @ 736:f317b37bad30

In MonetCallableStatement constructor skip calling removeEscapes() when the connected server supports ODBC/JDBC escape sequence syntax.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 16 Feb 2023 20:35:09 +0100 (2023-02-16)
parents e0caafa2d814
children 99ff3cd9f4f0
comparison
equal deleted inserted replaced
735:3dd0d43014e8 736:f317b37bad30
28 extends MonetWrapper 28 extends MonetWrapper
29 implements DatabaseMetaData 29 implements DatabaseMetaData
30 { 30 {
31 private final MonetConnection con; 31 private final MonetConnection con;
32 32
33 /**
34 * Constructor
35 * @param parent the parent MonetConnection object.
36 */
33 public MonetDatabaseMetaData(final MonetConnection parent) { 37 public MonetDatabaseMetaData(final MonetConnection parent) {
34 con = parent; 38 con = parent;
35 } 39 }
36 40
37 /** 41 /**
3863 /** 3867 /**
3864 * Retrieves whether this database supports invoking user-defined or 3868 * Retrieves whether this database supports invoking user-defined or
3865 * vendor functions using the stored procedure escape syntax. 3869 * vendor functions using the stored procedure escape syntax.
3866 * 3870 *
3867 * @return true if so; false otherwise 3871 * @return true if so; false otherwise
3868 * @throws SQLException if a database error occurs 3872 */
3869 */ 3873 @Override
3870 @Override 3874 public boolean supportsStoredFunctionsUsingCallSyntax() {
3871 public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException { 3875 return con.supportsEscapeSequenceSyntax();
3872 if ((getDatabaseMajorVersion() == 11) && (getDatabaseMinorVersion() <= 45))
3873 return false;
3874 return true;
3875 } 3876 }
3876 3877
3877 /** 3878 /**
3878 * Retrieves whether a SQLException while autoCommit is true 3879 * Retrieves whether a SQLException while autoCommit is true
3879 * inidcates that all open ResultSets are closed, even ones that are 3880 * inidcates that all open ResultSets are closed, even ones that are