Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
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
Tomáš Trávníček
doctrine-dbal
Commits
8010ed86
Commit
8010ed86
authored
Oct 28, 2013
by
till
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: incorporate feedback from @beberlei
* fix typo * remove fluent interface
parent
da6892e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+2
-6
No files found.
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
8010ed86
...
...
@@ -36,7 +36,7 @@ class MysqliConnection implements Connection
*/
private
$_driverOptions
;
private
$_supportedDriverOpions
=
array
(
private
$_supportedDriverOp
t
ions
=
array
(
\MYSQLI_OPT_CONNECT_TIMEOUT
,
\MYSQLI_OPT_LOCAL_INFILE
,
\MYSQLI_INIT_COMMAND
,
...
...
@@ -173,8 +173,6 @@ class MysqliConnection implements Connection
*
* @param array $driverOptions
*
* @return MysqliConnection
*
* @throws MysqliException When one of of the options is not supported.
* @throws MysqliException When applying doesn't work - e.g. due to incorrect value.
*/
...
...
@@ -186,7 +184,7 @@ class MysqliConnection implements Connection
foreach
(
$driverOptions
as
$option
=>
$value
)
{
if
(
!
in_array
(
$option
,
$this
->
_supportedDriverOpions
))
{
if
(
!
in_array
(
$option
,
$this
->
_supportedDriverOp
t
ions
))
{
throw
new
MysqliException
(
sprintf
(
$exceptionMsg
,
'Unsupported'
,
$option
,
$value
)
);
...
...
@@ -198,7 +196,5 @@ class MysqliConnection implements Connection
);
}
}
return
$this
;
}
}
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