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 83268f0 commit 66cb893Copy full SHA for 66cb893
src/sqlparser/src/ast/ddl.rs
@@ -739,8 +739,13 @@ pub enum ColumnOption {
739
NotNull,
740
/// `DEFAULT <restricted-expr>`
741
DefaultValue(Expr),
742
+ /// Default value from previous bound `DefaultColumnDesc`. Used internally
743
+ /// and will not be parsed from SQL.
744
DefaultValuePersisted {
745
+ /// Protobuf encoded `DefaultColumnDesc`.
746
persisted: Box<[u8]>,
747
+ /// Optional AST for unparsing. If `None`, the default value will be
748
+ /// shown as `DEFAULT ...`, which is for demonstrating and not valid.
749
expr: Option<Expr>,
750
},
751
/// `{ PRIMARY KEY | UNIQUE }`
0 commit comments