mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
feature!: added NUMERIC and DEC ANSI data types, and now the DECIMAL (#695)
type prints DECIMAL instead of NUMERIC. BREAKING CHANGE: enum DATA TYPE variants changed, changing any API that uses it.
This commit is contained in:
parent
f0646c8c1a
commit
1b3778e2d5
4 changed files with 65 additions and 31 deletions
|
@ -156,8 +156,7 @@ fn long_numerics() {
|
|||
#[test]
|
||||
fn decimal_precision() {
|
||||
let query = "SELECT CAST(a AS DECIMAL(18,2)) FROM db.table";
|
||||
let expected = "SELECT CAST(a AS NUMERIC(18,2)) FROM db.table";
|
||||
hive().one_statement_parses_to(query, expected);
|
||||
hive().verified_stmt(query);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue