Skip to content

Commit

Permalink
fix(sqlsmith): encode should take in Bytea as its first argument …
Browse files Browse the repository at this point in the history
…instead of `varchar` (#13743)
  • Loading branch information
kwannoel authored Nov 30, 2023
1 parent c67df6e commit abc1e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/sqlsmith/src/sql_gen/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<'a, R: Rng> SqlGenerator<'a, R> {
}

fn gen_decode(&mut self, context: SqlGeneratorContext) -> Expr {
let input_string = self.gen_expr(&DataType::Varchar, context);
let input_string = self.gen_expr(&DataType::Bytea, context);
let encoding = &["base64", "hex", "escape"].choose(&mut self.rng).unwrap();
let args = vec![
input_string,
Expand Down

0 comments on commit abc1e0c

Please sign in to comment.