mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
4163388298
implement nullability check for Postgres as a query on pg_attribute implement type name fetching for Postgres as part of `describe()` add nullability for describe() to MySQL improve errors with unknown result column type IDs in `query!()` run cargo fmt and fix warnings improve error when feature gates for chrono/uuid types is not turned on workflows/rust: add step to UI-test missing optional features improve error for unsupported/feature-gated input parameter types fix `PgConnection::get_type_names()` for empty type IDs list fix `tests::mysql::test_describe()` on MariaDB 10.4 copy-edit unsupported/feature-gated type errors in `query!()` Postgres: fix SQL type of string array closes #107 closes #17 Co-Authored-By: Anthony Dodd <Dodd.AnthonyJosiah@gmail.com>
28 lines
764 B
Rust
28 lines
764 B
Rust
#[test]
|
|
fn ui_tests() {
|
|
let t = trybuild::TestCases::new();
|
|
|
|
if cfg!(feature = "postgres") {
|
|
t.compile_fail("tests/ui/postgres/*.rs");
|
|
|
|
// UI tests for column types that require gated features
|
|
if cfg!(not(feature = "chrono")) {
|
|
t.compile_fail("tests/ui/postgres/gated/chrono.rs");
|
|
}
|
|
|
|
if cfg!(not(feature = "uuid")) {
|
|
t.compile_fail("tests/ui/postgres/gated/uuid.rs");
|
|
}
|
|
}
|
|
|
|
if cfg!(feature = "mysql") {
|
|
t.compile_fail("tests/ui/mysql/*.rs");
|
|
|
|
// UI tests for column types that require gated features
|
|
if cfg!(not(feature = "chrono")) {
|
|
t.compile_fail("tests/ui/mysql/gated/chrono.rs");
|
|
}
|
|
}
|
|
|
|
t.compile_fail("tests/ui/*.rs");
|
|
}
|