From 527938b3e258445a4dde8a8f9d9473a0c0f3fa09 Mon Sep 17 00:00:00 2001 From: Jared Frees_Home Date: Tue, 28 May 2019 11:10:58 -0400 Subject: [PATCH] 0003978: SQLAnywhere will not create engine when database name contains hyphen --- .../org/jumpmind/db/platform/AbstractJdbcDdlReader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/AbstractJdbcDdlReader.java b/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/AbstractJdbcDdlReader.java index 9cd7b8b723..7a577ffde7 100644 --- a/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/AbstractJdbcDdlReader.java +++ b/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/AbstractJdbcDdlReader.java @@ -1520,7 +1520,12 @@ public List execute(Connection connection) throws SQLException { ResultSet rs = null; try { - rs = meta.getSchemas(); + try { + rs = meta.getSchemas(); + } catch (SQLException e) { + rs = meta.getSchemas("", null); + } + while (rs.next()) { int columnCount = rs.getMetaData().getColumnCount(); String schema = rs.getString(1);