Commit 84770cd5 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DBAL-50 - Fix another follow-up bug, Index column names are not being...

DBAL-50 - Fix another follow-up bug, Index column names are not being sanitized to lower-case, which will make comparisons fail that shouldnt.
parent e38cc303
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
......@@ -65,7 +63,7 @@ class Index extends AbstractAsset implements Constraint
protected function _addColumn($column)
{
if(is_string($column)) {
$this->_columns[] = $column;
$this->_columns[] = strtolower($column);
} else {
throw new \InvalidArgumentException("Expecting a string as Index Column");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment