+ 卧槽爆炸

This commit is contained in:
坏黑 2018-12-08 15:25:08 +08:00
parent 11140c0bd0
commit 737b0c0bd2

View File

@ -108,7 +108,7 @@ public class SQLColumn extends IColumn {
private String convertToOptions() { private String convertToOptions() {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
Arrays.stream(columnOptions).forEach(option -> builder.append(" ").append(option)); Arrays.stream(columnOptions).forEach(option -> builder.append(" ").append(option.getText()));
if (defaultValue != null) { if (defaultValue != null) {
if (defaultValue instanceof String) { if (defaultValue instanceof String) {
builder.append(" DEFAULT '").append(defaultValue).append("'"); builder.append(" DEFAULT '").append(defaultValue).append("'");