mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
Support CONVERT
expressions (#1048)
This commit is contained in:
parent
c0c2d58910
commit
c905ee0cb8
7 changed files with 124 additions and 0 deletions
|
@ -475,6 +475,13 @@ fn parse_cast_varchar_max() {
|
|||
ms_and_generic().verified_expr("CAST('foo' AS VARCHAR(MAX))");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_convert() {
|
||||
ms().verified_expr("CONVERT(VARCHAR(MAX), 'foo')");
|
||||
ms().verified_expr("CONVERT(VARCHAR(10), 'foo')");
|
||||
ms().verified_expr("CONVERT(DECIMAL(10,5), 12.55)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_similar_to() {
|
||||
fn chk(negated: bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue