You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implemented support for __pivotDumpTable on MSSQL as normal tables tend to not play well with normal TOP 1 ..NOT IN..ORDER BY mechanism if the argument for ORDER BY is not the unique one (returns only number of rows equal to the number of distinct values for that field)
Copy file name to clipboardExpand all lines: xml/queries.xml
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -193,8 +193,7 @@
193
193
</columns>
194
194
<dump_table>
195
195
<inbandquery="SELECT %s FROM %s.%s"/>
196
-
<!--<blind query="SELECT TOP 1 %s FROM %s..%s WHERE %s NOT IN (SELECT TOP %d %s FROM %s..%s)" count="SELECT LTRIM(STR(COUNT(*))) FROM %s..%s"/>-->
197
-
<blindquery="SELECT TOP 1 %s FROM (SELECT TOP 1 * FROM ( SELECT TOP %d * FROM %s.%s ORDER BY %s ASC ) AS t1 ORDER BY %s DESC) AS t2 ORDER BY %s ASC"count="SELECT LTRIM(STR(COUNT(*))) FROM %s.%s"/>
196
+
<blindquery="SELECT MIN(%s) FROM %s WHERE CONVERT(NVARCHAR(4000),%s)>'%s'"query2="SELECT MAX(%s) FROM %s WHERE CONVERT(NVARCHAR(4000),%s) LIKE '%s'"count="SELECT LTRIM(STR(COUNT(*))) FROM %s"count2="SELECT LTRIM(STR(COUNT(DISTINCT(%s)))) FROM %s"/>
198
197
</dump_table>
199
198
<search_db>
200
199
<inbandquery="SELECT name FROM master..sysdatabases WHERE "condition="name"/>
0 commit comments