Closed rPraml closed 7 years ago
This fixes createSchemaIfNeeded for Microsoft SQLServer
What does NOT work:
PreparedStatement query = connection.prepareStatement("CREATE SCHEMA " + dbSchema); query.execute();
Statement query = connection.createStatement(); query.execute("CREATE SCHEMA " + dbSchema);
PreparedStatement query = connection.prepareStatement("CREATE SCHEMA " + dbSchema); query.executeUpdate();
all of them will throw com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'SCHEMA'
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'SCHEMA'
Thanks
This fixes createSchemaIfNeeded for Microsoft SQLServer
What does NOT work:
all of them will throw
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'SCHEMA'