Skip to content

Commit 759cf09

Browse files
committed
fix parse_alter_table_alter_column test relying on all dialects having a false literal
1 parent c6a16a8 commit 759cf09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/sqlparser_common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4113,14 +4113,14 @@ fn parse_alter_table_alter_column() {
41134113
);
41144114

41154115
match alter_table_op(verified_stmt(&format!(
4116-
"{alter_stmt} ALTER COLUMN is_active SET DEFAULT false"
4116+
"{alter_stmt} ALTER COLUMN is_active SET DEFAULT 0"
41174117
))) {
41184118
AlterTableOperation::AlterColumn { column_name, op } => {
41194119
assert_eq!("is_active", column_name.to_string());
41204120
assert_eq!(
41214121
op,
41224122
AlterColumnOperation::SetDefault {
4123-
value: Expr::Value(Value::Boolean(false))
4123+
value: Expr::Value(Value::Number("0".to_string(), false))
41244124
}
41254125
);
41264126
}

0 commit comments

Comments
 (0)