Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Implemnet getListTableConstraintsSQL function.

  • Loading branch information...
commit 3277021beeeb7d64bb1735d2eeb0b3ef5700f2cf 1 parent 1736d59
Padraig O'Sullivan authored August 13, 2012
6  lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -180,7 +180,11 @@ public function getDropViewSQL($name)
180 180
 
181 181
     public function getListTableConstraintsSQL($table)
182 182
     {
183  
-        // TODO
  183
+        // TODO - do we only want unique and primary key indexes here?
  184
+        return "SELECT index_name " .
  185
+               "FROM information_schema.indexes " .
  186
+               "WHERE schema_name != 'information_schema' AND " .
  187
+               "table_name = '" . $table . "'";
184 188
     }
185 189
 
186 190
     /**

0 notes on commit 3277021

Please sign in to comment.
Something went wrong with that request. Please try again.