mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-29 02:14:07 +00:00
Remove PostgreSQL version of assert (#229)
Remove PostgreSQL procedural assert statement. This also simplifies code somewhat.
This commit is contained in:
parent
c24b0e01db
commit
583f22b929
3 changed files with 6 additions and 22 deletions
|
@ -1163,11 +1163,9 @@ fn parse_assert() {
|
|||
match ast {
|
||||
Statement::Assert {
|
||||
condition: _condition,
|
||||
separator,
|
||||
message,
|
||||
} => {
|
||||
assert_eq!(message, None);
|
||||
assert_eq!(separator, "");
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
@ -1184,9 +1182,7 @@ fn parse_assert_message() {
|
|||
Statement::Assert {
|
||||
condition: _condition,
|
||||
message: Some(message),
|
||||
separator,
|
||||
} => {
|
||||
assert_eq!(separator, "AS");
|
||||
match message {
|
||||
Expr::Value(Value::SingleQuotedString(s)) => assert_eq!(s, "No rows in table"),
|
||||
_ => unreachable!(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue