Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct decoding of rust_decimal::Decimal for high-precision values #2820

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sqlx-postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ migrate = ["sqlx-core/migrate"]
offline = ["sqlx-core/offline"]

# Type integration features which require additional dependencies
rust_decimal = ["dep:rust_decimal", "dep:num-bigint"]
rust_decimal = ["dep:rust_decimal", "rust_decimal/maths"]
bigdecimal = ["dep:bigdecimal", "dep:num-bigint"]

[dependencies]
Expand Down
57 changes: 26 additions & 31 deletions sqlx-postgres/src/types/rust_decimal.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
use num_bigint::{BigInt, Sign};
use rust_decimal::{
prelude::{ToPrimitive, Zero},
Decimal,
};
use rust_decimal::{prelude::Zero, Decimal};

use crate::decode::Decode;
use crate::encode::{Encode, IsNull};
Expand All @@ -11,6 +7,8 @@ use crate::types::numeric::{PgNumeric, PgNumericSign};
use crate::types::Type;
use crate::{PgArgumentBuffer, PgHasArrayType, PgTypeInfo, PgValueFormat, PgValueRef, Postgres};

use rust_decimal::MathematicalOps;

impl Type<Postgres> for Decimal {
fn type_info() -> PgTypeInfo {
PgTypeInfo::NUMERIC
Expand All @@ -27,7 +25,7 @@ impl TryFrom<PgNumeric> for Decimal {
type Error = BoxDynError;

fn try_from(numeric: PgNumeric) -> Result<Self, BoxDynError> {
let (digits, sign, weight) = match numeric {
let (digits, sign, mut weight) = match numeric {
PgNumeric::Number {
digits,
sign,
Expand All @@ -41,39 +39,33 @@ impl TryFrom<PgNumeric> for Decimal {
};

if digits.is_empty() {
// Postgres returns an empty digit array for 0 but BigInt expects at least one zero
// Postgres returns an empty digit array for 0
return Ok(0u64.into());
}

let sign = match sign {
PgNumericSign::Positive => Sign::Plus,
PgNumericSign::Negative => Sign::Minus,
};
let mut value = Decimal::ZERO;

// Sum over `digits`, multiply each by its weight and add it to `value`.
for digit in digits {
let mul = Decimal::from(10_000i16)
.checked_powi(weight as i64)
.ok_or("value not representable as rust_decimal::Decimal")?;

let part = Decimal::from(digit) * mul;

// weight is 0 if the decimal point falls after the first base-10000 digit
let scale = (digits.len() as i64 - weight as i64 - 1) * 4;
value = value
.checked_add(part)
.ok_or("value not representable as rust_decimal::Decimal")?;

// no optimized algorithm for base-10 so use base-100 for faster processing
let mut cents = Vec::with_capacity(digits.len() * 2);
for digit in &digits {
cents.push((digit / 100) as u8);
cents.push((digit % 100) as u8);
weight = weight.checked_sub(1).ok_or("weight underflowed")?;
}

let bigint = BigInt::from_radix_be(sign, &cents, 100)
.ok_or("PgNumeric contained an out-of-range digit")?;

match (bigint.to_i128(), scale) {
// A negative scale, meaning we have nothing on the right and must
// add zeroes to the left.
(Some(num), scale) if scale < 0 => Ok(Decimal::from_i128_with_scale(
num * 10i128.pow(scale.abs() as u32),
0,
)),
// A positive scale, so we have decimals on the right.
(Some(num), _) => Ok(Decimal::from_i128_with_scale(num, scale as u32)),
(None, _) => Err("Decimal's integer part out of range.".into()),
match sign {
PgNumericSign::Positive => value.set_sign_positive(true),
PgNumericSign::Negative => value.set_sign_negative(true),
}

Ok(value)
}
}

Expand Down Expand Up @@ -403,4 +395,7 @@ mod decimal_to_pgnumeric {
}
);
}

#[test]
fn issue_666_trailing_zeroes_at_max_precision() {}
}
4 changes: 2 additions & 2 deletions tests/mysql/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate time_ as time;

#[cfg(feature = "decimal")]
#[cfg(feature = "rust_decimal")]
use std::str::FromStr;

use sqlx::mysql::MySql;
Expand Down Expand Up @@ -72,26 +72,26 @@
use sqlx::types::chrono::{DateTime, NaiveDate, NaiveDateTime, NaiveTime, Utc};

test_type!(chrono_date<NaiveDate>(MySql,
"DATE '2001-01-05'" == NaiveDate::from_ymd(2001, 1, 5),

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 75 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead
"DATE '2050-11-23'" == NaiveDate::from_ymd(2050, 11, 23)

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 76 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead
));

test_type!(chrono_time_zero<NaiveTime>(MySql,
"TIME '00:00:00.000000'" == NaiveTime::from_hms_micro(0, 0, 0, 0)

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 80 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead
));

test_type!(chrono_time<NaiveTime>(MySql,
"TIME '05:10:20.115100'" == NaiveTime::from_hms_micro(5, 10, 20, 115100)

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 84 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead
));

test_type!(chrono_date_time<NaiveDateTime>(MySql,
"TIMESTAMP '2019-01-02 05:10:20'" == NaiveDate::from_ymd(2019, 1, 2).and_hms(5, 10, 20)

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 88 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead
));

test_type!(chrono_timestamp<DateTime::<Utc>>(MySql,
"TIMESTAMP '2019-01-02 05:10:20.115100'"
== DateTime::<Utc>::from_utc(
NaiveDate::from_ymd(2019, 1, 2).and_hms_micro(5, 10, 20, 115100),

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (verylatest, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (8, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MySQL (5_7, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 94 in tests/mysql/types.rs

View workflow job for this annotation

GitHub Actions / MariaDB (10_11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead
Utc,
)
));
Expand Down Expand Up @@ -223,7 +223,7 @@
"CAST(12345.6789 AS DECIMAL(9, 4))" == "12345.6789".parse::<sqlx::types::BigDecimal>().unwrap(),
));

#[cfg(feature = "decimal")]
#[cfg(feature = "rust_decimal")]
test_type!(decimal<sqlx::types::Decimal>(MySql,
"CAST(0 as DECIMAL(0, 0))" == sqlx::types::Decimal::from_str("0").unwrap(),
"CAST(1 AS DECIMAL(1, 0))" == sqlx::types::Decimal::from_str("1").unwrap(),
Expand Down
8 changes: 5 additions & 3 deletions tests/postgres/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use sqlx::postgres::Postgres;
use sqlx_test::{test_decode_type, test_prepared_type, test_type};

#[cfg(any(postgres_14, postgres_15))]
use std::str::FromStr;

test_type!(null<Option<i16>>(Postgres,
Expand Down Expand Up @@ -258,34 +257,34 @@
type PgTimeTz = sqlx::postgres::types::PgTimeTz<NaiveTime, FixedOffset>;

test_type!(chrono_date<NaiveDate>(Postgres,
"DATE '2001-01-05'" == NaiveDate::from_ymd(2001, 1, 5),

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 260 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead
"DATE '2050-11-23'" == NaiveDate::from_ymd(2050, 11, 23)

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 261 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead
));

test_type!(chrono_time<NaiveTime>(Postgres,
"TIME '05:10:20.115100'" == NaiveTime::from_hms_micro(5, 10, 20, 115100)

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead

Check warning on line 265 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveTime::from_hms_micro`: use `from_hms_micro_opt()` instead
));

test_type!(chrono_date_time<NaiveDateTime>(Postgres,
"'2019-01-02 05:10:20'::timestamp" == NaiveDate::from_ymd(2019, 1, 2).and_hms(5, 10, 20)

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 269 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead
));

test_type!(chrono_date_time_vec<Vec<NaiveDateTime>>(Postgres,
"array['2019-01-02 05:10:20']::timestamp[]"
== vec![NaiveDate::from_ymd(2019, 1, 2).and_hms(5, 10, 20)]

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 274 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead
));

test_type!(chrono_date_time_tz_utc<DateTime::<Utc>>(Postgres,
"TIMESTAMPTZ '2019-01-02 05:10:20.115100'"
== DateTime::<Utc>::from_utc(
NaiveDate::from_ymd(2019, 1, 2).and_hms_micro(5, 10, 20, 115100),

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead

Check warning on line 280 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated method `sqlx::types::chrono::NaiveDate::and_hms_micro`: use `and_hms_micro_opt()` instead
Utc,
)
));

test_type!(chrono_date_time_tz<DateTime::<FixedOffset>>(Postgres,
"TIMESTAMPTZ '2019-01-02 05:10:20.115100+06:30'"
== FixedOffset::east(60 * 60 * 6 + 1800).ymd(2019, 1, 2).and_hms_micro(5, 10, 20, 115100)

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, async-std, none)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (15, tokio, none)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, async-std, none)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, native-tls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead

Check warning on line 287 in tests/postgres/types.rs

View workflow job for this annotation

GitHub Actions / Postgres (11, tokio, rustls)

use of deprecated associated function `sqlx::types::chrono::FixedOffset::east`: use `east_opt()` instead
));

test_type!(chrono_date_time_tz_vec<Vec<DateTime::<Utc>>>(Postgres,
Expand Down Expand Up @@ -475,7 +474,7 @@
Bound::Excluded("2.4".parse::<sqlx::types::BigDecimal>().unwrap())))
));

#[cfg(feature = "decimal")]
#[cfg(feature = "rust_decimal")]
test_type!(decimal<sqlx::types::Decimal>(Postgres,
"0::numeric" == sqlx::types::Decimal::from_str("0").unwrap(),
"1::numeric" == sqlx::types::Decimal::from_str("1").unwrap(),
Expand All @@ -484,9 +483,12 @@
"0.01234::numeric" == sqlx::types::Decimal::from_str("0.01234").unwrap(),
"12.34::numeric" == sqlx::types::Decimal::from_str("12.34").unwrap(),
"12345.6789::numeric" == sqlx::types::Decimal::from_str("12345.6789").unwrap(),
// https://github.com/launchbadge/sqlx/issues/666#issuecomment-683872154
"17.905625985174584660842500258::numeric" == sqlx::types::Decimal::from_str("17.905625985174584660842500258").unwrap(),
"-17.905625985174584660842500258::numeric" == sqlx::types::Decimal::from_str("-17.905625985174584660842500258").unwrap(),
));

#[cfg(feature = "decimal")]
#[cfg(feature = "rust_decimal")]
test_type!(numrange_decimal<PgRange<sqlx::types::Decimal>>(Postgres,
"'(1.3,2.4)'::numrange" == PgRange::from(
(Bound::Excluded(sqlx::types::Decimal::from_str("1.3").unwrap()),
Expand Down
Loading