Support CONVERT expressions (#1048)

This commit is contained in:
Ophir LOJKINE 2023-11-20 20:55:18 +01:00 committed by GitHub
parent c0c2d58910
commit c905ee0cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 124 additions and 0 deletions

View file

@ -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) {