Changed PagerAction, search and order methods of Model, #16
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@148 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -91,11 +91,12 @@ class MySQLiStatement extends DbStatement
|
||||
$result = $mysqli->query($sql);
|
||||
}
|
||||
if ($result === false) {
|
||||
throw new Exception($mysqli->error, $mysqli->errno);
|
||||
$message = $mysqli->error . "\nQuery: \"" . $sql . '"';
|
||||
throw new Exception($message, $mysqli->errno);
|
||||
}
|
||||
if ($result instanceof MySQLi_Result) {
|
||||
$this->result = $result;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user