@@ -111,6 +111,8 @@ impl ToSql<types::Timestamp, Pg> for PgTimestamp {
111111 }
112112}
113113
114+ debug_to_sql ! ( types:: Timestamp , PgTimestamp ) ;
115+
114116impl FromSql < types:: Timestamp , Pg > for PgTimestamp {
115117 fn from_sql ( bytes : Option < & [ u8 ] > ) -> Result < Self , Box < Error +Send +Sync > > {
116118 FromSql :: < types:: BigInt , Pg > :: from_sql ( bytes)
@@ -124,6 +126,8 @@ impl ToSql<types::Timestamptz, Pg> for PgTimestamp {
124126 }
125127}
126128
129+ debug_to_sql ! ( types:: Timestamptz , PgTimestamp ) ;
130+
127131impl FromSql < types:: Timestamptz , Pg > for PgTimestamp {
128132 fn from_sql ( bytes : Option < & [ u8 ] > ) -> Result < Self , Box < Error +Send +Sync > > {
129133 FromSql :: < types:: Timestamp , Pg > :: from_sql ( bytes)
@@ -136,6 +140,8 @@ impl ToSql<types::Date, Pg> for PgDate {
136140 }
137141}
138142
143+ debug_to_sql ! ( types:: Date , PgDate ) ;
144+
139145impl FromSql < types:: Date , Pg > for PgDate {
140146 fn from_sql ( bytes : Option < & [ u8 ] > ) -> Result < Self , Box < Error +Send +Sync > > {
141147 FromSql :: < types:: Integer , Pg > :: from_sql ( bytes)
@@ -149,6 +155,8 @@ impl ToSql<types::Time, Pg> for PgTime {
149155 }
150156}
151157
158+ debug_to_sql ! ( types:: Time , PgTime ) ;
159+
152160impl FromSql < types:: Time , Pg > for PgTime {
153161 fn from_sql ( bytes : Option < & [ u8 ] > ) -> Result < Self , Box < Error +Send +Sync > > {
154162 FromSql :: < types:: BigInt , Pg > :: from_sql ( bytes)
@@ -165,6 +173,8 @@ impl ToSql<types::Interval, Pg> for PgInterval {
165173 }
166174}
167175
176+ debug_to_sql ! ( types:: Interval , PgInterval ) ;
177+
168178impl FromSql < types:: Interval , Pg > for PgInterval {
169179 fn from_sql ( bytes : Option < & [ u8 ] > ) -> Result < Self , Box < Error +Send +Sync > > {
170180 let bytes = not_none ! ( bytes) ;
0 commit comments