aboutsummaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-30 16:41:01 -0400
committerJames Moger <james.moger@gmail.com>2011-08-30 16:41:01 -0400
commit5b1113a29cc76253351616a9893b486b2996ea85 (patch)
tree897387eb4a62d08dfdb5fd694acaeae428c58222 /src/com
parent405cd2f14253a6cb83de6eee0a911f73dc466bbc (diff)
downloadiciql-5b1113a29cc76253351616a9893b486b2996ea85.tar.gz
iciql-5b1113a29cc76253351616a9893b486b2996ea85.zip
Adjustment to PostgreSQL dialect for creating autoincrement columns.
Diffstat (limited to 'src/com')
-rw-r--r--src/com/iciql/SQLDialectPostgreSQL.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/iciql/SQLDialectPostgreSQL.java b/src/com/iciql/SQLDialectPostgreSQL.java
index 5b3ec71..fc115ab 100644
--- a/src/com/iciql/SQLDialectPostgreSQL.java
+++ b/src/com/iciql/SQLDialectPostgreSQL.java
@@ -46,24 +46,22 @@ public class SQLDialectPostgreSQL extends SQLDialectDefault {
@Override
protected boolean prepareColumnDefinition(StatementBuilder buff, String dataType,
- boolean isAutoIncrement, boolean isPrimaryKey) {
- boolean isIdentity = false;
+ boolean isAutoIncrement, boolean isPrimaryKey) {
String convertedType = convertSqlType(dataType);
if (isIntegerType(dataType)) {
- if (isAutoIncrement && isPrimaryKey) {
+ if (isAutoIncrement) {
if ("BIGINT".equals(dataType)) {
buff.append("BIGSERIAL");
} else {
buff.append("SERIAL");
}
- isIdentity = true;
} else {
buff.append(convertedType);
}
} else {
buff.append(convertedType);
}
- return isIdentity;
+ return false;
}
@Override