From 6854decd4a83d86b9d513c31cb1c084f097bb010 Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Wed, 1 Nov 2023 11:36:15 +0800 Subject: [PATCH] fix: use encoded string --- src/tests/sqlsmith/src/sql_gen/functions.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/sqlsmith/src/sql_gen/functions.rs b/src/tests/sqlsmith/src/sql_gen/functions.rs index 01cbb0604d262..863cf293d5d26 100644 --- a/src/tests/sqlsmith/src/sql_gen/functions.rs +++ b/src/tests/sqlsmith/src/sql_gen/functions.rs @@ -129,6 +129,11 @@ impl<'a, R: Rng> SqlGenerator<'a, R> { input_string, Expr::Value(Value::SingleQuotedString(encoding.to_string())), ]; + let encoded_string = Expr::Function(make_simple_func("encode", &args)); + let args = vec![ + encoded_string, + Expr::Value(Value::SingleQuotedString(encoding.to_string())), + ]; Expr::Function(make_simple_func("decode", &args)) }