removing startQuote/endQuote from Model::getColumnType() closes #5719

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7857 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-11-10 16:16:36 +00:00
parent 9f7e3a3060
commit aed9872ce2

View file

@ -899,12 +899,9 @@ class Model extends Overloadable {
* @access public * @access public
*/ */
function getColumnType($column) { function getColumnType($column) {
$db =& ConnectionManager::getDataSource($this->useDbConfig);
$cols = $this->schema(); $cols = $this->schema();
$model = null; $model = null;
$column = str_replace(array($db->startQuote, $db->endQuote), '', $column);
if (strpos($column, '.')) { if (strpos($column, '.')) {
list($model, $column) = explode('.', $column); list($model, $column) = explode('.', $column);
} }