File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ export class SqlWrappingExecutor implements QueryExecutor {
134134 let cmp : number ;
135135 if ( typeof av === "number" && typeof bv === "number" ) cmp = av - bv ;
136136 else if ( typeof av === "bigint" && typeof bv === "bigint" ) cmp = av < bv ? - 1 : av > bv ? 1 : 0 ;
137- else if ( typeof av === "bigint" && typeof bv === "number" ) cmp = av < BigInt ( bv ) ? - 1 : av > BigInt ( bv ) ? 1 : 0 ;
138- else if ( typeof av === "number" && typeof bv === "bigint" ) cmp = BigInt ( av ) < bv ? - 1 : BigInt ( av ) > bv ? 1 : 0 ;
137+ else if ( typeof av === "bigint" && typeof bv === "number" ) { const bb = BigInt ( Math . trunc ( bv ) ) ; cmp = av < bb ? - 1 : av > bb ? 1 : 0 ; }
138+ else if ( typeof av === "number" && typeof bv === "bigint" ) { const ab = BigInt ( Math . trunc ( av ) ) ; cmp = ab < bv ? - 1 : ab > bv ? 1 : 0 ; }
139139 else cmp = String ( av ) . localeCompare ( String ( bv ) ) ;
140140 if ( cmp !== 0 ) return direction === "desc" ? - cmp : cmp ;
141141 }
You can’t perform that action at this time.
0 commit comments