mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
single_quoted_string updated to accept various string types
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
parent
2575081556
commit
f693735167
1 changed files with 3 additions and 3 deletions
|
@ -366,9 +366,9 @@ pub fn number(n: &str) -> Value {
|
|||
Value::Number(n.parse().unwrap(), false)
|
||||
}
|
||||
|
||||
/// Creates a `Value::SingleQuotedString`
|
||||
pub fn single_quoted_string(s: &str) -> Value {
|
||||
Value::SingleQuotedString(s.to_string())
|
||||
/// Creates a [Value::SingleQuotedString]
|
||||
pub fn single_quoted_string(s: impl Into<String>) -> Value {
|
||||
Value::SingleQuotedString(s.into())
|
||||
}
|
||||
|
||||
pub fn table_alias(name: impl Into<String>) -> Option<TableAlias> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue