diff options
author | James Moger <james.moger@gitblit.com> | 2015-07-21 15:10:05 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2015-07-21 15:10:05 -0400 |
commit | 83d290a54b3fd43f039bfe60f923737c93b5724e (patch) | |
tree | 8f5d6ae1e1b46b2bf84bfd0c5a910f86dee63e90 /src/main/java/com/iciql/SQLDialectDefault.java | |
parent | d3695336c7a49c10e084ced59ed19109717bffd5 (diff) | |
download | iciql-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.java | 5 |
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)); |