mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 05:32:17 +00:00
feat: add arg placeholder (#420)
Co-authored-by: gamife <gamife9886@gmail.com>
This commit is contained in:
parent
1da49c15c7
commit
899f91b1f6
4 changed files with 60 additions and 1 deletions
|
@ -59,6 +59,8 @@ pub enum Value {
|
|||
},
|
||||
/// `NULL` value
|
||||
Null,
|
||||
/// `?` or `$` Prepared statement arg placeholder
|
||||
Placeholder(String),
|
||||
}
|
||||
|
||||
impl fmt::Display for Value {
|
||||
|
@ -111,6 +113,7 @@ impl fmt::Display for Value {
|
|||
Ok(())
|
||||
}
|
||||
Value::Null => write!(f, "NULL"),
|
||||
Value::Placeholder(v) => write!(f, "{}", v),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue