Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pquery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pquery
Commits
959d45d0
Commit
959d45d0
authored
Dec 06, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed usless error function from SQL plugin.
parent
85134e9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
pquery.sql.php
pquery.sql.php
+1
-14
No files found.
pquery.sql.php
View file @
959d45d0
...
@@ -294,6 +294,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
...
@@ -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.
* 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.
* @param string $query The query that was executed, if any.
* @codeCoverageIgnore
*/
*/
static
function
mysql_error
(
$query
=
''
)
{
static
function
mysql_error
(
$query
=
''
)
{
$error
=
sprintf
(
'MySQL error %d: %s.'
,
mysql_errno
(),
mysql_error
());
$error
=
sprintf
(
'MySQL error %d: %s.'
,
mysql_errno
(),
mysql_error
());
...
@@ -302,20 +303,6 @@ class pQuerySql extends pQuery implements pQueryExtension {
...
@@ -302,20 +303,6 @@ class pQuerySql extends pQuery implements pQueryExtension {
self
::
error
(
$error
);
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.
* Escape a string for safe use in a query.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment