aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/SQLDialectDefault.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-07-21 15:10:05 -0400
committerJames Moger <james.moger@gitblit.com>2015-07-21 15:10:05 -0400
commit83d290a54b3fd43f039bfe60f923737c93b5724e (patch)
tree8f5d6ae1e1b46b2bf84bfd0c5a910f86dee63e90 /src/main/java/com/iciql/SQLDialectDefault.java
parentd3695336c7a49c10e084ced59ed19109717bffd5 (diff)
downloadiciql-83d290a54b3fd43f039bfe60f923737c93b5724e.tar.gz
iciql-83d290a54b3fd43f039bfe60f923737c93b5724e.zip
Strip column identifiers from specified column names when mapping JDBC ResultSets to fields
Diffstat (limited to 'src/main/java/com/iciql/SQLDialectDefault.java')
-rw-r--r--src/main/java/com/iciql/SQLDialectDefault.java5
1 files changed, 5 insertions, 0 deletions
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
@@ -120,6 +120,11 @@ public class SQLDialectDefault implements SQLDialect {
}
@Override
+ public String extractColumnName(String name) {
+ return name.replace('\"', ' ').replace('\'', ' ').trim();
+ }
+
+ @Override
public <T> void prepareDropTable(SQLStatement stat, TableDefinition<T> def) {
StatementBuilder buff = new StatementBuilder("DROP TABLE IF EXISTS "
+ prepareTableName(def.schemaName, def.tableName));