Why in Zend_Db_Adapter_Abstract::insert();
fields for database are not quoted ?

    public function insert($table, $bind)
    {
        // col names come from the array keys
        $cols = array_keys($bind);

        // build the statement
        $sql = "INSERT INTO $table "
             . '(' . implode(', ', $cols) . ') '
             . 'VALUES (:' . implode(', :', $cols) . ')';

        // execute the statement and return the number of affected rows
        $stmt = $this->query($sql, $bind);
        $result = $stmt->rowCount();
        return $result;
    }

    

        $sql = "INSERT INTO $table "
             . '(`' . implode('`, `', $cols) . '`) '
             . 'VALUES (:' . implode(', :', $cols) . ')';


Thank you,
_______________________
Andrey Korolyov | WEB Developer

e | [EMAIL PROTECTED]
c | +380.50.382.7086
Varien
866.4.VARIEN
3402 Motor Ave., Suite B. Los Angles, CA 90034
www.varien.com

Reply via email to