Skip to content

Commit

Permalink
H2的建表语句,添加Comment时,表名必须是大写
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Feb 14, 2012
1 parent 6d2413c commit 4e24dbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/org/nutz/dao/impl/jdbc/AbstractJdbcExpert.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ public void addComment(Dao dao, Entity<?> en, String commentTable, String commen
Sql tableCommentSQL = Sqls.create(Strings.isBlank(commentTable) ? DEFAULT_COMMENT_TABLE
: commentTable);
tableCommentSQL.vars()
.set("table", en.getTableName())
.set("tableComment", en.getTableComment());
.set("table", en.getTableName().toUpperCase())
.set("tableComment", en.getTableComment().toUpperCase());
sqls.add(tableCommentSQL);
}
// 字段注释
Expand All @@ -299,8 +299,8 @@ public void addComment(Dao dao, Entity<?> en, String commentTable, String commen
Sql columnCommentSQL = Sqls.create(Strings.isBlank(commentColumn) ? DEFAULT_COMMENT_COLUMN
: commentColumn);
columnCommentSQL.vars()
.set("table", en.getTableName())
.set("column", mf.getColumnName())
.set("table", en.getTableName().toUpperCase())
.set("column", mf.getColumnName().toUpperCase())
.set("columnComment", mf.getColumnComment());
sqls.add(columnCommentSQL);
}
Expand Down

0 comments on commit 4e24dbf

Please sign in to comment.