/** * Parse the query string and convert any strings of the form `\([a-zA-Z0-9_]*?)\] * table prefix . $1 */ public function query($sql) { if (!empty($sql)) { $sql = $this->add_table_prefixes($sql); } return parent::query($sql); }
/** * Catch query exceptions * * @return bool */ public function run_query($sql) { try { $test = $this->db->query($this->group, $sql, false); } catch (Database_Exception $e) { // Kohana::log('error', 'Migration Failed: ' . $e); echo $e->getMessage(); exit; return FALSE; } return TRUE; }
/** * Catch query exceptions * * @return bool */ public function run_query($sql) { $test = $this->db->query($this->group, $sql, false); }