mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
fix Postgres UI tests for 1.41 stable
This commit is contained in:
parent
fdff5ef4c6
commit
a9f0fca1b2
@ -4,7 +4,7 @@ error: optional feature `chrono` required for type DATE of column #1 ("now")
|
||||
2 | let _ = sqlx::query!("select now()::date");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type TIME of column #1 ("now")
|
||||
--> $DIR/chrono.rs:4:13
|
||||
@ -12,7 +12,7 @@ error: optional feature `chrono` required for type TIME of column #1 ("now")
|
||||
4 | let _ = sqlx::query!("select now()::time");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type TIMESTAMP of column #1 ("now")
|
||||
--> $DIR/chrono.rs:6:13
|
||||
@ -20,7 +20,7 @@ error: optional feature `chrono` required for type TIMESTAMP of column #1 ("now"
|
||||
6 | let _ = sqlx::query!("select now()::timestamp");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type TIMESTAMPTZ of column #1 ("now")
|
||||
--> $DIR/chrono.rs:8:13
|
||||
@ -28,7 +28,7 @@ error: optional feature `chrono` required for type TIMESTAMPTZ of column #1 ("no
|
||||
8 | let _ = sqlx::query!("select now()::timestamptz");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type DATE of param #1
|
||||
--> $DIR/chrono.rs:10:13
|
||||
@ -36,7 +36,7 @@ error: optional feature `chrono` required for type DATE of param #1
|
||||
10 | let _ = sqlx::query!("select $1::date", ());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type TIME of param #1
|
||||
--> $DIR/chrono.rs:12:13
|
||||
@ -44,7 +44,7 @@ error: optional feature `chrono` required for type TIME of param #1
|
||||
12 | let _ = sqlx::query!("select $1::time", ());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type TIMESTAMP of param #1
|
||||
--> $DIR/chrono.rs:14:13
|
||||
@ -52,7 +52,7 @@ error: optional feature `chrono` required for type TIMESTAMP of param #1
|
||||
14 | let _ = sqlx::query!("select $1::timestamp", ());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `chrono` required for type TIMESTAMPTZ of param #1
|
||||
--> $DIR/chrono.rs:16:13
|
||||
@ -60,4 +60,4 @@ error: optional feature `chrono` required for type TIMESTAMPTZ of param #1
|
||||
16 | let _ = sqlx::query!("select $1::timestamptz", ());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
@ -4,7 +4,7 @@ error: optional feature `uuid` required for type UUID of column #1 ("uuid")
|
||||
2 | let _ = sqlx::query!("select 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: optional feature `uuid` required for type UUID of param #1
|
||||
--> $DIR/uuid.rs:3:13
|
||||
@ -12,4 +12,4 @@ error: optional feature `uuid` required for type UUID of param #1
|
||||
3 | let _ = sqlx::query!("select $1::uuid", ());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
@ -4,4 +4,4 @@ error: "\'1" is not a valid Rust identifier
|
||||
2 | let query = sqlx::query!("select 1 as \"'1\"");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
@ -4,7 +4,7 @@ error: unsupported type CIRCLE of column #1 ("circle")
|
||||
3 | let _ = sqlx::query!("select null::circle");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: unsupported type CIRCLE for param #1
|
||||
--> $DIR/unsupported-type.rs:4:13
|
||||
@ -12,4 +12,4 @@ error: unsupported type CIRCLE for param #1
|
||||
4 | let _ = sqlx::query!("select $1::circle", panic!());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
@ -1,55 +1,55 @@
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/wrong_param_type.rs:2:50
|
||||
--> $DIR/wrong_param_type.rs:2:18
|
||||
|
|
||||
2 | let _query = sqlx::query!("select $1::text", 0i32);
|
||||
| ^^^^ expected `&str`, found `i32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32`
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/wrong_param_type.rs:4:50
|
||||
--> $DIR/wrong_param_type.rs:4:18
|
||||
|
|
||||
4 | let _query = sqlx::query!("select $1::text", &0i32);
|
||||
| ^^^^^ expected `str`, found `i32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found `i32`
|
||||
|
|
||||
= note: expected reference `&str`
|
||||
found reference `&i32`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/wrong_param_type.rs:6:50
|
||||
--> $DIR/wrong_param_type.rs:6:18
|
||||
|
|
||||
6 | let _query = sqlx::query!("select $1::text", Some(0i32));
|
||||
| ^^^^^^^^^^ expected `&str`, found `i32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32`
|
||||
|
|
||||
= note: expected enum `std::option::Option<&str>`
|
||||
found enum `std::option::Option<i32>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/wrong_param_type.rs:9:50
|
||||
--> $DIR/wrong_param_type.rs:9:18
|
||||
|
|
||||
9 | let _query = sqlx::query!("select $1::text", arg);
|
||||
| ^^^ expected `&str`, found `i32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32`
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/wrong_param_type.rs:12:50
|
||||
--> $DIR/wrong_param_type.rs:12:18
|
||||
|
|
||||
12 | let _query = sqlx::query!("select $1::text", arg);
|
||||
| ^^^ expected `&str`, found `i32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32`
|
||||
|
|
||||
= note: expected enum `std::option::Option<&str>`
|
||||
found enum `std::option::Option<i32>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/wrong_param_type.rs:13:50
|
||||
--> $DIR/wrong_param_type.rs:13:18
|
||||
|
|
||||
13 | let _query = sqlx::query!("select $1::text", arg.as_ref());
|
||||
| ^^^^^^^^^^^^ expected `str`, found `i32`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found `i32`
|
||||
|
|
||||
= note: expected enum `std::option::Option<&str>`
|
||||
found enum `std::option::Option<&i32>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user