Skip to content

Commit 67d52bf

Browse files
committed
fix
1 parent 17da5f4 commit 67d52bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/src/value.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ impl_try_from_number_value!(f64);
521521

522522
impl TryFrom<Value> for NaiveDateTime {
523523
type Error = Error;
524+
#[allow(deprecated)]
524525
fn try_from(val: Value) -> Result<Self> {
525526
match val {
526527
Value::Timestamp(i) => {
@@ -616,6 +617,7 @@ impl std::fmt::Display for Value {
616617
}
617618

618619
// Compatible with Databend, inner values of nested types are quoted.
620+
#[allow(deprecated)]
619621
fn encode_value(f: &mut std::fmt::Formatter<'_>, val: &Value, raw: bool) -> std::fmt::Result {
620622
match val {
621623
Value::Null => write!(f, "NULL"),

0 commit comments

Comments
 (0)