Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
fn main() {
let _ = sqlx::query!("select CONVERT(now(), DATE) date");
let _ = sqlx::query!("select CONVERT(now(), TIME) time");
let _ = sqlx::query!("select CONVERT(now(), DATETIME) datetime");
}
+23
View File
@@ -0,0 +1,23 @@
error: optional sqlx feature `chrono` required for type DATE of column #1 ("date")
--> $DIR/chrono.rs:2:13
|
2 | let _ = sqlx::query!("select CONVERT(now(), DATE) date");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: optional sqlx feature `chrono` required for type TIME of column #1 ("time")
--> $DIR/chrono.rs:4:13
|
4 | let _ = sqlx::query!("select CONVERT(now(), TIME) time");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: optional sqlx feature `chrono` required for type DATETIME of column #1 ("datetime")
--> $DIR/chrono.rs:6:13
|
6 | let _ = sqlx::query!("select CONVERT(now(), DATETIME) datetime");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+11
View File
@@ -0,0 +1,11 @@
#[derive(sqlx::Type)]
#[sqlx(rename = "foo")]
enum Foo {
One,
Two,
Three,
}
fn main() {
compile_error!("trybuild test needs to fail for stderr checking");
}
+13
View File
@@ -0,0 +1,13 @@
error: trybuild test needs to fail for stderr checking
--> $DIR/deprecated_rename.rs:10:5
|
10 | compile_error!("trybuild test needs to fail for stderr checking");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated function `sqlx::_rename`: `#[sqlx(rename = "...")]` is now `#[sqlx(type_name = "...")`
--> $DIR/deprecated_rename.rs:2:8
|
2 | #[sqlx(rename = "foo")]
| ^^^^^^
|
= note: `#[warn(deprecated)]` on by default
+17
View File
@@ -0,0 +1,17 @@
fn main() {
let _ = sqlx::query!("select now()::date");
let _ = sqlx::query!("select now()::time");
let _ = sqlx::query!("select now()::timestamp");
let _ = sqlx::query!("select now()::timestamptz");
let _ = sqlx::query!("select $1::date", ());
let _ = sqlx::query!("select $1::time", ());
let _ = sqlx::query!("select $1::timestamp", ());
let _ = sqlx::query!("select $1::timestamptz", ());
}
+63
View File
@@ -0,0 +1,63 @@
error: optional sqlx feature `time` required for type DATE of column #1 ("now")
--> $DIR/chrono.rs:2:13
|
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)
error: optional sqlx feature `time` required for type TIME of column #1 ("now")
--> $DIR/chrono.rs:4:13
|
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)
error: optional sqlx feature `time` required for type TIMESTAMP of column #1 ("now")
--> $DIR/chrono.rs:6:13
|
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)
error: optional sqlx feature `time` required for type TIMESTAMPTZ of column #1 ("now")
--> $DIR/chrono.rs:8:13
|
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)
error: optional sqlx feature `time` required for type DATE of param #1
--> $DIR/chrono.rs:10:13
|
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)
error: optional sqlx feature `time` required for type TIME of param #1
--> $DIR/chrono.rs:12:13
|
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)
error: optional sqlx feature `time` required for type TIMESTAMP of param #1
--> $DIR/chrono.rs:14:13
|
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)
error: optional sqlx feature `time` required for type TIMESTAMPTZ of param #1
--> $DIR/chrono.rs:16:13
|
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)
+9
View File
@@ -0,0 +1,9 @@
fn main() {
let _ = sqlx::query!("select '127.0.0.1'::inet");
let _ = sqlx::query!("select '2001:4f8:3:ba::/64'::cidr");
let _ = sqlx::query!("select $1::inet", ());
let _ = sqlx::query!("select $1::cidr", ());
}
+31
View File
@@ -0,0 +1,31 @@
error: optional sqlx feature `ipnetwork` required for type INET of column #1 ("inet")
--> $DIR/ipnetwork.rs:2:13
|
2 | let _ = sqlx::query!("select '127.0.0.1'::inet");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: optional sqlx feature `ipnetwork` required for type CIDR of column #1 ("cidr")
--> $DIR/ipnetwork.rs:4:13
|
4 | let _ = sqlx::query!("select '2001:4f8:3:ba::/64'::cidr");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: optional sqlx feature `ipnetwork` required for type INET of param #1
--> $DIR/ipnetwork.rs:6:13
|
6 | let _ = sqlx::query!("select $1::inet", ());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: optional sqlx feature `ipnetwork` required for type CIDR of param #1
--> $DIR/ipnetwork.rs:8:13
|
8 | let _ = sqlx::query!("select $1::cidr", ());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+4
View File
@@ -0,0 +1,4 @@
fn main() {
let _ = sqlx::query!("select 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid");
let _ = sqlx::query!("select $1::uuid", ());
}
+15
View File
@@ -0,0 +1,15 @@
error: optional sqlx feature `uuid` required for type UUID of column #1 ("uuid")
--> $DIR/uuid.rs:2:13
|
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)
error: optional sqlx feature `uuid` required for type UUID of param #1
--> $DIR/uuid.rs:3:13
|
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)
+3
View File
@@ -0,0 +1,3 @@
fn main() {
let query = sqlx::query!("select 1 as \"'1\"");
}
+7
View File
@@ -0,0 +1,7 @@
error: column name "\'1" is invalid: "\'1" is not a valid Rust identifier
--> $DIR/issue_30.rs:2:17
|
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)
+5
View File
@@ -0,0 +1,5 @@
fn main() {
// we're probably not going to get around to the geometric types anytime soon
let _ = sqlx::query!("select null::circle");
let _ = sqlx::query!("select $1::circle", panic!());
}
+15
View File
@@ -0,0 +1,15 @@
error: unsupported type CIRCLE of column #1 ("circle")
--> $DIR/unsupported-type.rs:3:13
|
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)
error: unsupported type CIRCLE for param #1
--> $DIR/unsupported-type.rs:4:13
|
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)
+14
View File
@@ -0,0 +1,14 @@
fn main() {
let _query = sqlx::query!("select $1::text", 0i32);
let _query = sqlx::query!("select $1::text", &0i32);
let _query = sqlx::query!("select $1::text", Some(0i32));
let arg = 0i32;
let _query = sqlx::query!("select $1::text", arg);
let arg = Some(0i32);
let _query = sqlx::query!("select $1::text", arg);
let _query = sqlx::query!("select $1::text", arg.as_ref());
}
+47
View File
@@ -0,0 +1,47 @@
error[E0308]: mismatched types
--> $DIR/wrong_param_type.rs:2:50
|
2 | let _query = sqlx::query!("select $1::text", 0i32);
| ^^^^ expected `&str`, found `i32`
error[E0308]: mismatched types
--> $DIR/wrong_param_type.rs:4:50
|
4 | let _query = sqlx::query!("select $1::text", &0i32);
| ^ expected `str`, found `i32`
|
= note: expected reference `&str`
found reference `&i32`
error[E0308]: mismatched types
--> $DIR/wrong_param_type.rs:6:50
|
6 | let _query = sqlx::query!("select $1::text", Some(0i32));
| ^^^^ expected `&str`, found `i32`
|
= note: expected enum `Option<&str>`
found enum `Option<i32>`
error[E0308]: mismatched types
--> $DIR/wrong_param_type.rs:9:50
|
9 | let _query = sqlx::query!("select $1::text", arg);
| ^^^ expected `&str`, found `i32`
error[E0308]: mismatched types
--> $DIR/wrong_param_type.rs:12:50
|
12 | let _query = sqlx::query!("select $1::text", arg);
| ^^^ expected `&str`, found `i32`
|
= note: expected enum `Option<&str>`
found enum `Option<i32>`
error[E0308]: mismatched types
--> $DIR/wrong_param_type.rs:13:50
|
13 | let _query = sqlx::query!("select $1::text", arg.as_ref());
| ^^^ expected `str`, found `i32`
|
= note: expected enum `Option<&str>`
found enum `Option<&i32>`
+3
View File
@@ -0,0 +1,3 @@
fn main() {
let _ = sqlx::query!("select 1 as id");
}
@@ -0,0 +1,7 @@
error: database couldn't tell us the type of column #1 ("id"); this can happen for columns that are the result of an expression
--> $DIR/expression-column-type.rs:2:13
|
2 | let _ = sqlx::query!("select 1 as id");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)