提交 764384ed authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add DEFAULT VALUES to INSERT documentation

上级 fe56f187
...@@ -2429,7 +2429,7 @@ NAME ...@@ -2429,7 +2429,7 @@ NAME
"Other Grammar","Insert columns and source"," "Other Grammar","Insert columns and source","
{ [ ( columnName [,...] ) ] { [ ( columnName [,...] ) ]
{ insertValues | [ DIRECT ] [ SORTED ] select } } { insertValues | [ DIRECT ] [ SORTED ] select | DEFAULT VALUES } }
| { SET { columnName = { DEFAULT | expression } } [,...] } | { SET { columnName = { DEFAULT | expression } } [,...] }
"," ","
Names of columns and their values for INSERT statement. Names of columns and their values for INSERT statement.
......
...@@ -1678,8 +1678,7 @@ public class Parser { ...@@ -1678,8 +1678,7 @@ public class Parser {
} }
if (readIf("DEFAULT")) { if (readIf("DEFAULT")) {
read(VALUES); read(VALUES);
Expression[] expr = {}; command.addRow(new Expression[0]);
command.addRow(expr);
} else if (readIf(VALUES)) { } else if (readIf(VALUES)) {
parseValuesForCommand(command); parseValuesForCommand(command);
} else if (readIf("SET")) { } else if (readIf("SET")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论