@@ -671,26 +671,28 @@ describe.each(createClientSpecs(PG_DB_NAME))('Client find tests for $provider',
671671 posts : [ expect . objectContaining ( { title : 'Post1' } ) ] ,
672672 } ) ;
673673
674- await expect (
675- client . user . findUnique ( {
676- where : { id : user . id } ,
677- select : {
678- posts : { orderBy : { title : 'asc' } , skip : 1 , take : 1 , distinct : [ 'title' ] } ,
679- } ,
680- } ) ,
681- ) . resolves . toMatchObject ( {
682- posts : [ expect . objectContaining ( { title : 'Post2' } ) ] ,
683- } ) ;
684- await expect (
685- client . user . findUnique ( {
686- where : { id : user . id } ,
687- include : {
688- posts : { orderBy : { title : 'asc' } , skip : 1 , take : 1 , distinct : [ 'title' ] } ,
689- } ,
690- } ) ,
691- ) . resolves . toMatchObject ( {
692- posts : [ expect . objectContaining ( { title : 'Post2' } ) ] ,
693- } ) ;
674+ if ( provider === 'postgresql' ) {
675+ await expect (
676+ client . user . findUnique ( {
677+ where : { id : user . id } ,
678+ select : {
679+ posts : { orderBy : { title : 'asc' } , skip : 1 , take : 1 , distinct : [ 'title' ] } as any ,
680+ } ,
681+ } ) ,
682+ ) . resolves . toMatchObject ( {
683+ posts : [ expect . objectContaining ( { title : 'Post2' } ) ] ,
684+ } ) ;
685+ await expect (
686+ client . user . findUnique ( {
687+ where : { id : user . id } ,
688+ include : {
689+ posts : { orderBy : { title : 'asc' } , skip : 1 , take : 1 , distinct : [ 'title' ] } as any ,
690+ } ,
691+ } ) ,
692+ ) . resolves . toMatchObject ( {
693+ posts : [ expect . objectContaining ( { title : 'Post2' } ) ] ,
694+ } ) ;
695+ }
694696
695697 await expect (
696698 client . post . findFirst ( {
0 commit comments