Browse files

Simple implementation of getListTableIndexesSQL function. Not sure if…

… this is sufficient.
  • Loading branch information...
1 parent 52c882f commit 8703c4c062b23652817aa47900fb5dab85aeb79f @posulliv committed Aug 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
View
5 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -187,7 +187,10 @@ public function getListTableConstraintsSQL($table)
*/
public function getListTableIndexesSQL($table, $currentDatabase = null)
{
- // TODO
+ // TODO - should $currentDatabase be used?
+ return "SELECT table_name, index_name, is_unique " .
+ "FROM information_schema.indexes " .
+ "WHERE table_name = ' . $table;
}
/**

0 comments on commit 8703c4c

Please sign in to comment.