diff options
author | James Moger <james.moger@gmail.com> | 2011-08-11 14:38:02 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-11 14:38:02 -0400 |
commit | 5c70dc9c2562f40211d51b35854c50a626c9c163 (patch) | |
tree | 1ff18cf9deb85862d3bcf0c911da249c1b913207 /src/com | |
parent | 64184c246a552024dda12f5ee0830ec5b3c6161f (diff) | |
download | iciql-5c70dc9c2562f40211d51b35854c50a626c9c163.tar.gz iciql-5c70dc9c2562f40211d51b35854c50a626c9c163.zip |
Documentation. Added another unmapped field case.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/iciql/IciqlException.java | 2 | ||||
-rw-r--r-- | src/com/iciql/SQLDialectDefault.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/com/iciql/IciqlException.java b/src/com/iciql/IciqlException.java index 6e55c79..5a99c5e 100644 --- a/src/com/iciql/IciqlException.java +++ b/src/com/iciql/IciqlException.java @@ -30,7 +30,7 @@ public class IciqlException extends RuntimeException { public static final int CODE_TABLE_NOT_FOUND = 3;
public static final int CODE_INDEX_ALREADY_EXISTS = 4;
- private static final String TOKEN_UNMAPPED_FIELD = "\\? (=|\\>|\\<|!=|\\>=|\\<=|LIKE|BETWEEN) \\?";
+ private static final String TOKEN_UNMAPPED_FIELD = "\\? (=|\\>|\\<|\\<\\>|!=|\\>=|\\<=|LIKE|BETWEEN) \\?";
private static final long serialVersionUID = 1L;
diff --git a/src/com/iciql/SQLDialectDefault.java b/src/com/iciql/SQLDialectDefault.java index 3fd2067..7786829 100644 --- a/src/com/iciql/SQLDialectDefault.java +++ b/src/com/iciql/SQLDialectDefault.java @@ -100,7 +100,7 @@ public class SQLDialectDefault implements SQLDialect { buff.appendExceptFirst(", ");
buff.append(prepareColumnName(field.columnName)).append(' ');
String dataType = field.dataType;
- if (dataType.equals("VARCHAR")) {
+ if (dataType.equals("VARCHAR")) {
// check to see if we should use VARCHAR or CLOB
if (field.length <= 0) {
dataType = "CLOB";
@@ -111,7 +111,7 @@ public class SQLDialectDefault implements SQLDialect { }
} else if (dataType.equals("DECIMAL")) {
// DECIMAL(precision,scale)
- buff.append(convertSqlType(dataType));
+ buff.append(convertSqlType(dataType));
if (field.length > 0) {
buff.append('(').append(field.length);
if (field.scale > 0) {
@@ -173,13 +173,13 @@ public class SQLDialectDefault implements SQLDialect { @Override
public void prepareCreateIndex(SQLStatement stat, String schemaName, String tableName,
IndexDefinition index) {
- throw new IciqlException("Dialect does not support index creation!");
+ throw new IciqlException("{0} does not support index creation!", getClass().getSimpleName());
}
@Override
public <T> void prepareMerge(SQLStatement stat, String schemaName, String tableName,
TableDefinition<T> def, Object obj) {
- throw new IciqlException("Dialect does not support merge statements!");
+ throw new IciqlException("{0} does not support merge statements!", getClass().getSimpleName());
}
@Override
|