bug fixed for postgres dialect
This commit is contained in:
parent
e9059acd4d
commit
8fb9bd8d36
|
@ -197,6 +197,10 @@ WHERE c.relkind = 'r'::char AND c.relname = $1 AND f.attnum > 0 ORDER BY f.attnu
|
|||
}
|
||||
}
|
||||
|
||||
if colDefault != nil && strings.HasPrefix(*colDefault, "nextval(") {
|
||||
col.IsAutoIncrement = true
|
||||
}
|
||||
|
||||
col.Nullable = (isNullable == "YES")
|
||||
|
||||
switch dataType {
|
||||
|
|
Loading…
Reference in New Issue