if (!$result) {
$this->error = mysql_error($this->_link);
return false;
- } elseif ($result === true) {
+ }
+ if ($result === true) {
$this->affected_rows = mysql_affected_rows($this->_link);
$this->info = mysql_info($this->_link);
return true;
}
function query($query, $unbuffered = false) {
- $result = parent::query($query);
- if (!$result) {
+ $return = parent::query($query);
+ if (!$return) {
$errorInfo = $this->errorInfo();
$this->error = $errorInfo[2];
return false;
}
- $this->_result = $result;
- if (!$result->columnCount()) {
- $this->affected_rows = $result->rowCount();
- return true;
+ if ($return->columnCount()) {
+ $this->affected_rows = $return->rowCount();
+ } else {
+ $return->num_rows = $return->rowCount(); // is not guaranteed to work with all drivers
}
- $result->num_rows = $result->rowCount(); // is not guaranteed to work with all drivers
- return $result;
+ return $return;
}
function multi_query($query) {
- return $this->query($query);
+ return $this->_result = $this->query($query);
}
function store_result() {
- return ($this->_result->columnCount() ? $this->_result : true);
+ $return = &$this->_result;
+ if ($return->columnCount()) {
+ $this->affected_rows = $return->rowCount();
+ return true;
+ }
+ $return->num_rows = $return->rowCount();
+ return $return;
}
function next_result() {
MySQL 5 BIT data type
Transactions in export
Create view and routine options
-Highlight SQL textarea - may use external CodePress
Mass editation of individual rows
Offer enum and set items in search - whisperer
Variables editation, especially timezone
Optionally check IP address
Disable spell checking in SQL textareas - spellcheck="false"
Accept Tab in SQL textareas, Ctrl+Enter to send form
+Highlight SQL textarea, then display query inside textarea in select - may use external CodePress
Blob download and image display in edit form (important for Editor with hidden fields in select)
Add title to Logout, edit (in select) and select (in menu) in style "hever"
? Column and table names auto-completition in SQL textarea