[#4027] Let INSERT statements default to using DEFAULT VALUES when no values are specified

This commit is contained in:
lukaseder 2015-02-05 15:10:46 +01:00
parent f6d9c8dc85
commit 3d58cbeed9

View File

@ -75,7 +75,10 @@ class FieldMapsForInsert extends AbstractQueryPart {
@Override
public final void accept(Context<?> ctx) {
if (!isExecutable()) {
ctx.sql("[ no fields are inserted ]");
ctx.formatSeparator()
.start(INSERT_VALUES)
.keyword("default values")
.end(INSERT_VALUES);
}
// Single record inserts can use the standard syntax in any dialect