Skip to content

Commit c1bffc9

Browse files
authored
fix postgresql default type generation (#57)
1 parent d1dde04 commit c1bffc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

element/column.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (c Column) definition() string {
149149
}
150150

151151
if sql.IsPostgres() && opt.Tp == ast.ColumnOptionDefaultValue {
152-
strSql += " " + b.String()
152+
strSql += " " + opt.StrValue
153153
continue
154154
}
155155

0 commit comments

Comments
 (0)