We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed85175 commit 90557beCopy full SHA for 90557be
src/main/java/org/tailormap/api/geotools/featuresources/AttachmentsHelper.java
@@ -208,8 +208,8 @@ public static void dropAttachmentTableForFeatureType(TMFeatureType featureType)
208
String dropSql = MessageFormat.format("DROP TABLE {1}{0}_attachments", featureType.getName(), schemaPrefix);
209
logger.debug("About to drop attachments table using statement:\n{}", dropSql);
210
try (Connection conn = ds.getDataSource().getConnection();
211
- PreparedStatement stmt = conn.prepareStatement(dropSql); ) {
212
- stmt.execute();
+ Statement stmt = conn.createStatement()) {
+ stmt.execute(dropSql);
213
logger.info("Attachment table dropped for FeatureType: {}", featureType.getName());
214
}
215
} finally {
0 commit comments