function query($query) { if (parent::query($query)) { return true; } if ($this->db != null) { $res = $this->db->query($query); if (is_a($res, "DB_Error")) { $this->_addError($res->message, 'query()'); } else { $this->result = $res; return true; } } return false; }
function query($query) { parent::query($query); if ($this->db != null) { $res =& $this->db->dbx_query($query); if (!$res) { $this->error = $this->db->dbx_error(); $this->result = null; return false; } else { $this->result = $res; return true; } } else { return false; } }
function query($query) { parent::query($query); if ($this->db != null) { // submit query @$this->db->query($query); // everything fine? if ($this->db->Errno == 0) { return true; // save error msg } else { $this->error = $this->db->Error; return false; } } else { return false; } }
function query($query) { parent::query($query); $this->_count = 0; if ($this->db != null) { // submit query $this->result = @pg_query($this->db, $query); if ($this->result != false) { return true; // save error msg } else { $this->error = @pg_last_error($this->db); return false; } } else { return false; } }
function query($query) { parent::query($query); if ($this->db != null) { $res = $this->db->query($query); if (is_a($res, "DB_Error")) { $this->error = $res->message; // $this->error .= " / CODE(" .$res->code . ") / MODE(" . $res->mode . ")"; $this->result = null; return false; } else { $this->result = $res; return true; } } else { return false; } }
function query($query) { parent::query($query); if ($this->db != null) { // submit query $this->result = @sqlite_unbuffered_query($this->db, $query); if ($this->result != false) { return true; // save error msg } else { $this->error = @sqlite_error_string(sqlite_last_error($this->db)); $this->result = null; return false; } } else { return false; } }
function query($query) { parent::query($query); if ($this->db != null) { // submit query $this->result = @mysql_query($query, $this->db); if ($this->result != false) { // $this->_updateCache($query, $cacheTime); return true; // save error msg } else { $this->error = @mysql_error($this->db); } } // $this->_cachedRes = null; // $this->fromCache = false; return false; }
function query($query) { if (parent::query($query)) { return true; } $this->_count = 0; if ($this->db != null) { $res =& $this->db->Execute($query); if (!$res) { $this->_addError($this->db->ErrorMsg(), "query({$query})"); $this->result = null; return false; } else { $this->result = $res; return true; } } else { return false; } }
function query($query) { parent::query($query); $this->_count = 0; if ($this->db != null) { $res = $this->db->Execute($query); if (!$res) { $this->error = $this->db->ErrorMsg(); $this->result = null; return false; } else { $this->result = $res; return true; } } else { return false; } }
function query($query) { parent::query($query); $this->_count = 0; $result = MetabaseQuery($this->db, $query); if ($result == 0) { $this->error = MetabaseError($this->db); return false; } else { $this->result = $result; return true; } }
function query($query) { parent::query($query); if ($this->db != null) { // submit query $this->result = @mysql_query($query, $this->db); if ($this->result != false) { return true; // save error msg } else { $this->_addError(@mysql_error($this->db), "query({$query})"); } } return false; }
function query($query) { if (parent::query($query)) { return true; } if ($this->db) { $this->result = @odbc_exec($this->db, $query); if (!$this->result) { $this->_addError(odbc_errormsg($this->db), "query({$query})"); } else { return true; } } return false; }