Skip to content

Commit

Permalink
Testing distinct count
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfoot90 committed Jan 23, 2017
1 parent 1a19596 commit 6af4ff3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Utils/FormatterTest.php
Expand Up @@ -334,6 +334,18 @@ public function formatQueries_new()
'<span class="sql-reserved">SELECT</span>' . '<br/>' .
'&nbsp;&nbsp;&nbsp;&nbsp;<span class="sql-keyword">HEX</span>(<span class="sql-string">"1"</span>)',
),
'distinct count' => array(
'query' => 'select distinct count(*)',
'text' =>
'SELECT DISTINCT' . "\n" .
' COUNT(*)',
'cli' =>
"\x1b[35mSELECT \x1b[35mDISTINCT" . "\n" .
" \x1b[95mCOUNT\x1b[39m(\x1b[39m*\x1b[39m)" . "\x1b[0m",
'html' =>
'<span class="sql-reserved">SELECT</span> <span class="sql-reserved">DISTINCT</span>' . '<br/>' .
'&nbsp;&nbsp;&nbsp;&nbsp;<span class="sql-keyword">COUNT</span>(*)',
),
'create procedure' => array(
'query' => 'create procedure test_procedure() begin from tbl select *; end',
'text' =>
Expand Down

0 comments on commit 6af4ff3

Please sign in to comment.