Unverified Commit c66caee7 authored by javaht's avatar javaht Committed by GitHub

Fix the postgresql type boolean type conversion (#1861)

* fix postgres schema error * fix postgres schema * fix postgres schema * fix postgres schema * Fix the postgresql type boolean type conversion --------- Co-authored-by: 's avataraiwenmo <32723967+aiwenmo@users.noreply.github.com>
parent db105663
...@@ -74,7 +74,7 @@ public class PostgreSqlTypeConvert implements ITypeConvert { ...@@ -74,7 +74,7 @@ public class PostgreSqlTypeConvert implements ITypeConvert {
} }
} else if (t.contains("numeric") || t.contains("decimal")) { } else if (t.contains("numeric") || t.contains("decimal")) {
columnType = ColumnType.DECIMAL; columnType = ColumnType.DECIMAL;
} else if (t.contains("boolean")) { } else if (t.contains("boolean") || t.contains("bool")) {
if (isNullable) { if (isNullable) {
columnType = ColumnType.JAVA_LANG_BOOLEAN; columnType = ColumnType.JAVA_LANG_BOOLEAN;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment