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 c6a16a8 commit 759cf09Copy full SHA for 759cf09
tests/sqlparser_common.rs
@@ -4113,14 +4113,14 @@ fn parse_alter_table_alter_column() {
4113
);
4114
4115
match alter_table_op(verified_stmt(&format!(
4116
- "{alter_stmt} ALTER COLUMN is_active SET DEFAULT false"
+ "{alter_stmt} ALTER COLUMN is_active SET DEFAULT 0"
4117
))) {
4118
AlterTableOperation::AlterColumn { column_name, op } => {
4119
assert_eq!("is_active", column_name.to_string());
4120
assert_eq!(
4121
op,
4122
AlterColumnOperation::SetDefault {
4123
- value: Expr::Value(Value::Boolean(false))
+ value: Expr::Value(Value::Number("0".to_string(), false))
4124
}
4125
4126
0 commit comments