Revert "Upstream patch: Enable ORM to use column name in where clause"

No longer required

This reverts commit f272bc254d.
This commit is contained in:
Deon George 2011-10-13 15:30:45 +11:00
parent 0bbda5352e
commit dce2daddc4

View File

@ -114,11 +114,6 @@ abstract class Kohana_Database_Query_Builder extends Database_Query {
{
$value = $db->quote($value);
}
elseif (is_string($value) AND preg_match('/^=/',$value))
{
// Value is a column
$value = $db->quote_column(preg_replace('/^=/','',$value));
}
elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)
{
// Quote the value, it is not a parameter