nodeAlterTableSetNotNull converts a tree.AlterTableSetNotNull instance into an equivalent vitess.DDL instance.
(ctx *Context, node *tree.AlterTableSetNotNull, tableName vitess.TableName, ifExists bool)
| 388 | |
| 389 | // nodeAlterTableSetNotNull converts a tree.AlterTableSetNotNull instance into an equivalent vitess.DDL instance. |
| 390 | func nodeAlterTableSetNotNull(ctx *Context, node *tree.AlterTableSetNotNull, tableName vitess.TableName, ifExists bool) (*vitess.DDL, error) { |
| 391 | return &vitess.DDL{ |
| 392 | Action: "alter", |
| 393 | Table: tableName, |
| 394 | IfExists: ifExists, |
| 395 | NotNullSpec: &vitess.NotNullSpec{ |
| 396 | Action: "set", |
| 397 | Column: vitess.NewColIdent(node.Column.String()), |
| 398 | }, |
| 399 | }, nil |
| 400 | } |
| 401 | |
| 402 | // nodeAlterTableSetNotNull converts a tree.AlterTablePartition instance into an equivalent vitess.DDL instance. |
| 403 | func nodeAlterTablePartition(ctx *Context, node *tree.AlterTablePartition) (*vitess.AlterTable, error) { |
no test coverage detected