Skip to content

Commit

Permalink
fix a bug when browsing a field with case-sensitive name
Browse files Browse the repository at this point in the history
  • Loading branch information
ioguix committed Apr 18, 2007
1 parent 0dd0c2b commit 1c49f70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tblproperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* List tables in a database
*
* $Id: tblproperties.php,v 1.75 2007/03/24 02:33:59 xzilla Exp $
* $Id: tblproperties.php,v 1.76 2007/04/18 13:30:58 ioguix Exp $
*/

// Include application functions
Expand Down Expand Up @@ -569,7 +569,7 @@ function doTree() {
'table' => $_REQUEST['table'],
'column' => field('attname'),
'query' => replace(
"SELECT %column%, count(*) AS \"count\" FROM %table% GROUP BY %column% ORDER BY %column%",
'SELECT "%column%", count(*) AS "count" FROM %table% GROUP BY "%column%" ORDER BY "%column%"',
array (
'%column%' => field('attname'),
'%table%' => $_REQUEST['table']
Expand Down
4 changes: 2 additions & 2 deletions viewproperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* List views in a database
*
* $Id: viewproperties.php,v 1.24 2007/03/24 02:33:59 xzilla Exp $
* $Id: viewproperties.php,v 1.25 2007/04/18 13:30:58 ioguix Exp $
*/

// Include application functions
Expand Down Expand Up @@ -265,7 +265,7 @@ function doTree () {
'view' => $_REQUEST['view'],
'column' => field('attname'),
'query' => replace(
"SELECT %column%, count(*) AS \"count\" FROM %view% GROUP BY %column% ORDER BY %column%",
'SELECT "%column%", count(*) AS "count" FROM %view% GROUP BY "%column%" ORDER BY "%column%"',
array (
'%column%' => field('attname'),
'%view%' => $_REQUEST['view']
Expand Down

0 comments on commit 1c49f70

Please sign in to comment.