protected function _InsertRow() { if ($this->_CreateKeyNamesTable()) { $sql = 'INSERT OR REPLACE INTO ' . FB_KEYNAMES_TABLE . ' (colname,orgname) VALUES (?,?);'; $sth = $this->db->prepare($sql); if ($sth === false) { writeErrorLog('Failed compile query:', $sql); } else { foreach (Config::GetInstance()->postkeymap as $key => $value) { if ($key != $value) { if (!$sth->execute(array($key, $value))) { writeErrorLog('Failed to update table keynames:', $sth->errorInfo()); } } } } } return DataSave::_InsertRow(); }