We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Show Table Records
1 parent 50c52be commit 92f5517Copy full SHA for 92f5517
src/ls/queries.ts
@@ -92,8 +92,11 @@ const treeFunctionFilter = function(p: { [key: string]: any }): string {
92
}
93
94
const fetchRecords: IQueries['fetchRecords'] = queryFactory`
95
-SELECT TOP ${p => p.limit || 50} *
96
-FROM ${p => p.table.schema}.${p => (p.table.label || p.table)}
+SELECT * FROM (
+ SELECT TOP ALL *
97
+ FROM ${p => p.table.schema}.${p => (p.table.label || p.table)}
98
+)
99
+WHERE %vid BETWEEN ${p => (p.offset || 0) + 1} AND ${p => ((p.offset || 0) + (p.limit || 50))}
100
`;
101
102
const countRecords: IQueries['countRecords'] = queryFactory`
0 commit comments