Skip to content

Commit

Permalink
fix: use encoded string
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Nov 1, 2023
1 parent 84d27ba commit 7700b9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/sqlsmith/src/sql_gen/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 7700b9b

Please sign in to comment.