We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a5014 commit 6b0c032Copy full SHA for 6b0c032
sql/planbuilder/ddl.go
@@ -317,7 +317,7 @@ func (b *Builder) buildCreateTable(inScope *scope, c *ast.DDL) (outScope *scope)
317
if c.TableSpec == nil && c.OptSelect != nil {
318
selectScope := b.buildSelectStmt(inScope, c.OptSelect.Select)
319
sch := b.resolveSchemaDefaults(outScope, selectScope.node.Schema())
320
-
+
321
// Add implicit DEFAULT NULL for nullable columns to match MySQL behavior
322
for _, col := range sch {
323
if col.Default == nil && col.Nullable {
@@ -330,7 +330,7 @@ func (b *Builder) buildCreateTable(inScope *scope, c *ast.DDL) (outScope *scope)
330
}
331
332
333
334
tableSpec := &plan.TableSpec{
335
Schema: sql.NewPrimaryKeySchema(sch),
336
0 commit comments