Skip to content
Snippets Groups Projects
Commit 959d45d0 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Removed usless error function from SQL plugin.

parent 85134e9a
No related branches found
No related tags found
No related merge requests found
......@@ -294,6 +294,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
* If a query is specified and debug mode is on, add the query to the error message.
*
* @param string $query The query that was executed, if any.
* @codeCoverageIgnore
*/
static function mysql_error($query='') {
$error = sprintf('MySQL error %d: %s.', mysql_errno(), mysql_error());
......@@ -302,20 +303,6 @@ class pQuerySql extends pQuery implements pQueryExtension {
self::error($error);
}
/**
* Extention of {@link pQuery::error}, returning FALSE (useful in result loops).
* Also, the current query is printed in debug mode.
*
* @param string $error The error message
* @returns bool FALSE
*/
static function error($error /* [ , $arg1 [ , ... ] ] */) {
$args = func_get_args();
call_user_func_array('pQuery::error', $args);
return false;
}
/**
* Escape a string for safe use in a query.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment