@@ -10,10 +10,7 @@ use rust_decimal::{
10
10
#[ cfg( feature = "chrono-0_4" ) ]
11
11
use sqlx:: postgres:: types:: PgTimeTz ;
12
12
use sqlx:: {
13
- postgres:: {
14
- types:: { PgAny , PgMoney } ,
15
- PgArguments , PgRow , PgTypeInfo ,
16
- } ,
13
+ postgres:: { types:: PgMoney , PgArguments , PgRow , PgTypeInfo } ,
17
14
query:: Query ,
18
15
types:: Json ,
19
16
Column , Postgres , Row , TypeInfo ,
@@ -95,10 +92,10 @@ impl<'a> Bind<'a, Postgres> for Query<'a, Postgres, PgArguments> {
95
92
None => self . bind ( Option :: < sqlx:: types:: ipnetwork:: IpNetwork > :: None ) ,
96
93
} ,
97
94
( Value :: Text ( c) , _) if type_info. map ( |ti| ti. is_enum ( ) ) . unwrap_or ( false ) => {
98
- self . bind ( c. map ( |c| PgAny ( c. into_owned ( ) ) ) )
95
+ self . bind ( c. map ( |c| c. into_owned ( ) ) )
99
96
}
100
97
( Value :: Text ( c) , _) => self . bind ( c. map ( |c| c. into_owned ( ) ) ) ,
101
- ( Value :: Enum ( c) , _) => self . bind ( c. map ( |c| PgAny ( c. into_owned ( ) ) ) ) ,
98
+ ( Value :: Enum ( c) , _) => self . bind ( c. map ( |c| c. into_owned ( ) ) ) ,
102
99
103
100
( Value :: Bytes ( c) , _) => self . bind ( c. map ( |c| c. into_owned ( ) ) ) ,
104
101
( Value :: Boolean ( b) , _) => self . bind ( b) ,
@@ -659,7 +656,7 @@ impl<'a> Bind<'a, Postgres> for Query<'a, Postgres, PgArguments> {
659
656
for val in ary. into_iter ( ) . map ( |v| v. into_string ( ) ) {
660
657
match val {
661
658
Some ( val) => {
662
- vals. push ( PgAny ( val) ) ;
659
+ vals. push ( val) ;
663
660
}
664
661
None => {
665
662
let msg = "Non-string parameter when storing a string array" ;
@@ -670,7 +667,7 @@ impl<'a> Bind<'a, Postgres> for Query<'a, Postgres, PgArguments> {
670
667
}
671
668
}
672
669
673
- self . bind ( PgAny ( vals) )
670
+ self . bind ( vals)
674
671
}
675
672
None => self . bind ( Option :: < Vec < String > > :: None ) ,
676
673
} ,
0 commit comments