From 83d290a54b3fd43f039bfe60f923737c93b5724e Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 21 Jul 2015 15:10:05 -0400 Subject: Strip column identifiers from specified column names when mapping JDBC ResultSets to fields --- src/main/java/com/iciql/SQLDialectDefault.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/com/iciql/SQLDialectDefault.java') diff --git a/src/main/java/com/iciql/SQLDialectDefault.java b/src/main/java/com/iciql/SQLDialectDefault.java index 371ee31..ec3f605 100644 --- a/src/main/java/com/iciql/SQLDialectDefault.java +++ b/src/main/java/com/iciql/SQLDialectDefault.java @@ -119,6 +119,11 @@ public class SQLDialectDefault implements SQLDialect { return name; } + @Override + public String extractColumnName(String name) { + return name.replace('\"', ' ').replace('\'', ' ').trim(); + } + @Override public void prepareDropTable(SQLStatement stat, TableDefinition def) { StatementBuilder buff = new StatementBuilder("DROP TABLE IF EXISTS " -- cgit v1.2.3