提交 b80b698d authored 作者: Thomas Mueller's avatar Thomas Mueller

MySQL compatibility for CREATE TABLE is improved (UNSIGNED, KEY).

上级 874abb7e
......@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>Recovery did not work if there were more than 255 lobs stored as files.
<ul><li>MySQL compatibility for CREATE TABLE is improved (UNSIGNED, KEY).
</li><li>Recovery did not work if there were more than 255 lobs stored as files.
</li><li>New experimental mode to support multiple read-write connections without starting
a server. To enable this mode, append ;FILE_LOCK=SERIALIZED;OPEN_NEW=TRUE to the database URL.
Don't expect high performance when multiple concurrent writers.
......
......@@ -3388,6 +3388,8 @@ public class Parser {
dataType = DataType.getTypeByName("BINARY");
}
}
// MySQL compatibility
readIf("UNSIGNED");
int type = dataType.type;
Column column = new Column(columnName, type, precision, scale, displaySize);
if (templateColumn != null) {
......@@ -4471,6 +4473,7 @@ public class Parser {
command.setType(AlterTableAddConstraint.CHECK);
command.setCheckExpression(readExpression());
} else if (readIf("UNIQUE")) {
readIf("KEY");
readIf("INDEX");
command = new AlterTableAddConstraint(session, schema, ifNotExists);
command.setType(AlterTableAddConstraint.UNIQUE);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论