mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-20 02:37:15 +00:00
Remove most instances of #[cfg(feature(bigdecimal))]
in tests (#910)
This commit is contained in:
parent
a50671d95d
commit
4efe55dd8a
8 changed files with 28 additions and 90 deletions
|
@ -32,6 +32,9 @@ pub enum Value {
|
|||
#[cfg(not(feature = "bigdecimal"))]
|
||||
Number(String, bool),
|
||||
#[cfg(feature = "bigdecimal")]
|
||||
// HINT: use `test_utils::number` to make an instance of
|
||||
// Value::Number This might help if you your tests pass locally
|
||||
// but fail on CI with the `--all-features` flag enabled
|
||||
Number(BigDecimal, bool),
|
||||
/// 'string value'
|
||||
SingleQuotedString(String),
|
||||
|
|
|
@ -198,7 +198,7 @@ pub fn expr_from_projection(item: &SelectItem) -> &Expr {
|
|||
}
|
||||
|
||||
/// Creates a `Value::Number`, panic'ing if n is not a number
|
||||
pub fn number(n: &'static str) -> Value {
|
||||
pub fn number(n: &str) -> Value {
|
||||
Value::Number(n.parse().unwrap(), false)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue