@@ -6,8 +6,8 @@ use std::time::SystemTime;
6
6
use tracing:: info;
7
7
8
8
use sea_orm:: sea_query:: {
9
- self , extension:: postgres:: Type , Alias , Expr , ForeignKey , IntoIden , JoinType , Order , Query ,
10
- SelectStatement , SimpleExpr , Table ,
9
+ self , extension:: postgres:: Type , Alias , Expr , ExprTrait , ForeignKey , IntoIden , JoinType , Order ,
10
+ Query , SelectStatement , SimpleExpr , Table ,
11
11
} ;
12
12
use sea_orm:: {
13
13
ActiveModelTrait , ActiveValue , Condition , ConnectionTrait , DbBackend , DbErr , DeriveIden ,
@@ -487,7 +487,7 @@ where
487
487
) )
488
488
. cond_where (
489
489
Condition :: all ( )
490
- . add ( Expr :: expr ( get_current_schema ( db) ) . equals ( (
490
+ . add ( get_current_schema ( db) . equals ( (
491
491
InformationSchema :: TableConstraints ,
492
492
InformationSchema :: TableSchema ,
493
493
) ) )
@@ -532,10 +532,7 @@ where
532
532
)
533
533
. cond_where (
534
534
Condition :: all ( )
535
- . add (
536
- Expr :: expr ( get_current_schema ( db) )
537
- . equals ( ( PgNamespace :: Table , PgNamespace :: Nspname ) ) ,
538
- )
535
+ . add ( get_current_schema ( db) . equals ( ( PgNamespace :: Table , PgNamespace :: Nspname ) ) )
539
536
. add ( Expr :: col ( ( PgType :: Table , PgType :: Typelem ) ) . eq ( 0 ) ) ,
540
537
) ;
541
538
stmt
0 commit comments