Skip to content

Commit c52ebad

Browse files
authored
Update custom_types.rs
1 parent c0f2921 commit c52ebad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/custom_types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::connection;
22
use diesel::deserialize::{self, FromSql, FromSqlRow};
33
use diesel::expression::{AsExpression, IntoSql};
44
use diesel::pg::{Pg, PgValue};
5+
use diesel::query_builder::QueryId;
56
use diesel::serialize::{self, IsNull, Output, ToSql};
67
use diesel::sql_types::SqlType;
78
use diesel::*;
@@ -17,7 +18,7 @@ table! {
1718
}
1819
}
1920

20-
#[derive(SqlType)]
21+
#[derive(SqlType, QueryId)]
2122
#[diesel(postgres_type(name = "my_type"))]
2223
pub struct MyType;
2324

0 commit comments

Comments
 (0)