Skip to content

Commit 90557be

Browse files
mprinsCopilot
andauthored
Update src/main/java/org/tailormap/api/geotools/featuresources/AttachmentsHelper.java
Co-authored-by: Copilot <[email protected]>
1 parent ed85175 commit 90557be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/tailormap/api/geotools/featuresources/AttachmentsHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ public static void dropAttachmentTableForFeatureType(TMFeatureType featureType)
208208
String dropSql = MessageFormat.format("DROP TABLE {1}{0}_attachments", featureType.getName(), schemaPrefix);
209209
logger.debug("About to drop attachments table using statement:\n{}", dropSql);
210210
try (Connection conn = ds.getDataSource().getConnection();
211-
PreparedStatement stmt = conn.prepareStatement(dropSql); ) {
212-
stmt.execute();
211+
Statement stmt = conn.createStatement()) {
212+
stmt.execute(dropSql);
213213
logger.info("Attachment table dropped for FeatureType: {}", featureType.getName());
214214
}
215215
} finally {

0 commit comments

Comments
 (0)