Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cc3bb2

Browse files
committed
Minor improvement to PostgreSQL signatures file to identify Windows.
Minor improvement to Microsoft SQL Server "limit" queries.
1 parent 9e0d890 commit 2cc3bb2

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

xml/banner/postgresql.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
<info dbms_version="1"/>
66
</regexp>
77

8+
<!-- Windows -->
9+
<regexp value="Visual C\+\+">
10+
<info type="Windows"/>
11+
</regexp>
12+
813
<!-- Ubuntu -->
914
<regexp value="PostgreSQL\s+(8\.2\.7)\s+on\s+.*?\s+\(Ubuntu 4\.2\.3-2ubuntu4\)">
1015
<info dbms_version="1" type="Linux" distrib="Ubuntu" release="8.04" codename="Hardy Heron"/>

xml/queries.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@
169169
<isnull query="ISNULL(%s, ' ')"/>
170170
<delimiter query="+"/>
171171
<limit query="SELECT TOP %d "/>
172-
<limitregexp query="SELECT\s+TOP\s+1\s+.+?\s+FROM\s+.+?\s+WHERE\s+.+?\s+NOT\s+IN\s+\(SELECT\s+TOP\s+[\d]+\s+"/>
173-
<limitgroupstart/>
174-
<limitgroupstop/>
172+
<limitregexp query="SELECT\s+TOP\s+([\d]+)\s+.+?\s+FROM\s+.+?\s+WHERE\s+.+?\s+NOT\s+IN\s+\(SELECT\s+TOP\s+([\d]+)\s+"/>
173+
<limitgroupstart query="2"/>
174+
<limitgroupstop query="1"/>
175175
<limitstring/>
176176
<order query="ORDER BY %s ASC"/>
177177
<count query="COUNT(%s)"/>

0 commit comments

Comments
 (0)