Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-MySQLi-Database-Class
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
PHP-MySQLi-Database-Class
Commits
e3c63d00
Commit
e3c63d00
authored
May 10, 2016
by
Alexander Butenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reword prepere() error. Fix for tableExists. Bump for 2.6 release
parent
3df726de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
MysqliDb.php
MysqliDb.php
+5
-6
No files found.
MysqliDb.php
View file @
e3c63d00
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @copyright Copyright (c) 2010
* @copyright Copyright (c) 2010
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
* @version 2.6
-master
* @version 2.6
*/
*/
class
MysqliDb
class
MysqliDb
...
@@ -1493,7 +1493,7 @@ class MysqliDb
...
@@ -1493,7 +1493,7 @@ class MysqliDb
protected
function
_prepareQuery
()
protected
function
_prepareQuery
()
{
{
if
(
!
$stmt
=
$this
->
mysqli
()
->
prepare
(
$this
->
_query
))
{
if
(
!
$stmt
=
$this
->
mysqli
()
->
prepare
(
$this
->
_query
))
{
$msg
=
"Problem preparing query (
$this->_query
) "
.
$this
->
mysqli
()
->
error
;
$msg
=
$this
->
mysqli
()
->
error
.
" query: "
.
$this
->
_query
;
$this
->
reset
();
$this
->
reset
();
throw
new
Exception
(
$msg
);
throw
new
Exception
(
$msg
);
}
}
...
@@ -1868,11 +1868,10 @@ class MysqliDb
...
@@ -1868,11 +1868,10 @@ class MysqliDb
return
false
;
return
false
;
}
}
array_walk
(
$tables
,
function
(
&
$value
,
$key
)
{
foreach
(
$tables
as
$i
=>
$value
)
$value
=
self
::
$prefix
.
$value
;
$tables
[
$i
]
=
self
::
$prefix
.
$value
;
});
$this
->
where
(
'table_schema'
,
$this
->
db
);
$this
->
where
(
'table_schema'
,
$this
->
db
);
$this
->
where
(
'table_name'
,
$tables
,
'
IN
'
);
$this
->
where
(
'table_name'
,
$tables
,
'
in
'
);
$this
->
get
(
'information_schema.tables'
,
$count
);
$this
->
get
(
'information_schema.tables'
,
$count
);
return
$this
->
count
==
$count
;
return
$this
->
count
==
$count
;
}
}
...
...
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