Skip to content

Commit a55d43a

Browse files
committed
Update test so issue is visible
1 parent 8a53cb7 commit a55d43a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

diesel_tests/tests/custom_types.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ table! {
1616
}
1717

1818
#[derive(SqlType)]
19-
#[diesel(postgres_type(name = "my_type"))]
19+
#[diesel(postgres_type(name = "My_Type"))]
2020
pub struct MyType;
2121

2222
#[derive(Debug, PartialEq, FromSqlRow, AsExpression)]
@@ -69,10 +69,10 @@ fn custom_types_round_trip() {
6969
connection
7070
.batch_execute(
7171
r#"
72-
CREATE TYPE my_type AS ENUM ('foo', 'bar');
72+
CREATE TYPE "My_Type" AS ENUM ('foo', 'bar');
7373
CREATE TABLE custom_types (
7474
id SERIAL PRIMARY KEY,
75-
custom_enum my_type NOT NULL
75+
custom_enum "My_Type" NOT NULL
7676
);
7777
"#,
7878
)
@@ -95,7 +95,7 @@ table! {
9595
}
9696

9797
#[derive(SqlType)]
98-
#[diesel(postgres_type(name = "my_type", schema = "custom_schema"))]
98+
#[diesel(postgres_type(name = "My_Type", schema = "custom_schema"))]
9999
pub struct MyTypeInCustomSchema;
100100

101101
#[derive(Debug, PartialEq, FromSqlRow, AsExpression)]
@@ -149,10 +149,10 @@ fn custom_types_in_custom_schema_round_trip() {
149149
.batch_execute(
150150
r#"
151151
CREATE SCHEMA IF NOT EXISTS custom_schema;
152-
CREATE TYPE custom_schema.my_type AS ENUM ('foo', 'bar');
152+
CREATE TYPE custom_schema."My_Type" AS ENUM ('foo', 'bar');
153153
CREATE TABLE custom_schema.custom_types_with_custom_schema (
154154
id SERIAL PRIMARY KEY,
155-
custom_enum custom_schema.my_type NOT NULL
155+
custom_enum custom_schema."My_Type" NOT NULL
156156
);
157157
"#,
158158
)

0 commit comments

Comments
 (0)