mlanthaler: Bugfix: Philipp's changes broke the code... ai ai ai :-)

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42141 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 16:44:42 +00:00
parent 0edcb97d57
commit fd4cfe1a80
2 changed files with 56 additions and 56 deletions

View File

@ -28,7 +28,6 @@ class PDODatabase extends Database {
private $database; private $database;
/** /**
* Last PDO statement, needed for affectedRows() * Last PDO statement, needed for affectedRows()
* @var PDO object * @var PDO object
@ -442,7 +441,7 @@ class PDODatabase extends Database {
* @param string $tableName The name of the table. * @param string $tableName The name of the table.
* @param string $indexName The name of the index. * @param string $indexName The name of the index.
* @param string $indexSpec The specification of the index, see Database::requireIndex() for more details. * @param string $indexSpec The specification of the index, see Database::requireIndex() for more details.
* @return void * @return void
*/ */
public function createIndex($tableName, $indexName, $indexSpec) { public function createIndex($tableName, $indexName, $indexSpec) {
$stmt = $this->dbConn->prepare("CREATE INDEX $indexName ON $tableName $indexSpec"); $stmt = $this->dbConn->prepare("CREATE INDEX $indexName ON $tableName $indexSpec");
@ -454,7 +453,7 @@ class PDODatabase extends Database {
* @param string $tableName The name of the table. * @param string $tableName The name of the table.
* @param string $indexName The name of the index. * @param string $indexName The name of the index.
* @param string $indexSpec The specification of the index, see Database::requireIndex() for more details. * @param string $indexSpec The specification of the index, see Database::requireIndex() for more details.
* @return void * @return void
*/ */
public function alterIndex($tableName, $indexName, $indexSpec) { public function alterIndex($tableName, $indexName, $indexSpec) {
$this->dbConn->query("DROP INDEX $indexName"); $this->dbConn->query("DROP INDEX $indexName");
@ -713,4 +712,5 @@ class PDOQuery extends Query {
} }
} }
?> ?>