fix a bug when browsing a field with case-sensitive name
authorioguix <ioguix>
Wed, 18 Apr 2007 13:30:58 +0000 (13:30 +0000)
committerioguix <ioguix>
Wed, 18 Apr 2007 13:30:58 +0000 (13:30 +0000)
tblproperties.php
viewproperties.php

index bf61385f48d8c4e21c53213d9b6e0253a1c60efd..60d3a50a3f28108cc9fb81f558fabbc71823527a 100644 (file)
@@ -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
                                                                        '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']
index 1497775fa0c121059dadc6f15d2f28a6dc298a72..9cf021a2d2e2de2c39ef6fb8441a13301b952bfb 100755 (executable)
@@ -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
                                                                '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']