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
c4325fd7
Commit
c4325fd7
authored
Jul 03, 2020
by
Kristjan Siimson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for MYSQLI_OPT_READ_TIMEOUT
parent
1527d709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+3
-5
No files found.
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
c4325fd7
...
@@ -11,7 +11,6 @@ use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
...
@@ -11,7 +11,6 @@ use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\DBAL\ParameterType
;
use
mysqli
;
use
mysqli
;
use
function
defined
;
use
function
floor
;
use
function
floor
;
use
function
func_get_args
;
use
function
func_get_args
;
use
function
in_array
;
use
function
in_array
;
...
@@ -28,6 +27,7 @@ use function stripos;
...
@@ -28,6 +27,7 @@ use function stripos;
use
const
MYSQLI_INIT_COMMAND
;
use
const
MYSQLI_INIT_COMMAND
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
use
const
MYSQLI_OPT_LOCAL_INFILE
;
use
const
MYSQLI_OPT_LOCAL_INFILE
;
use
const
MYSQLI_OPT_READ_TIMEOUT
;
use
const
MYSQLI_READ_DEFAULT_FILE
;
use
const
MYSQLI_READ_DEFAULT_FILE
;
use
const
MYSQLI_READ_DEFAULT_GROUP
;
use
const
MYSQLI_READ_DEFAULT_GROUP
;
use
const
MYSQLI_SERVER_PUBLIC_KEY
;
use
const
MYSQLI_SERVER_PUBLIC_KEY
;
...
@@ -243,15 +243,13 @@ class MysqliConnection implements ConnectionInterface, PingableConnection, Serve
...
@@ -243,15 +243,13 @@ class MysqliConnection implements ConnectionInterface, PingableConnection, Serve
$supportedDriverOptions
=
[
$supportedDriverOptions
=
[
MYSQLI_OPT_CONNECT_TIMEOUT
,
MYSQLI_OPT_CONNECT_TIMEOUT
,
MYSQLI_OPT_LOCAL_INFILE
,
MYSQLI_OPT_LOCAL_INFILE
,
MYSQLI_OPT_READ_TIMEOUT
,
MYSQLI_INIT_COMMAND
,
MYSQLI_INIT_COMMAND
,
MYSQLI_READ_DEFAULT_FILE
,
MYSQLI_READ_DEFAULT_FILE
,
MYSQLI_READ_DEFAULT_GROUP
,
MYSQLI_READ_DEFAULT_GROUP
,
MYSQLI_SERVER_PUBLIC_KEY
,
];
];
if
(
defined
(
'MYSQLI_SERVER_PUBLIC_KEY'
))
{
$supportedDriverOptions
[]
=
MYSQLI_SERVER_PUBLIC_KEY
;
}
$exceptionMsg
=
"%s option '%s' with value '%s'"
;
$exceptionMsg
=
"%s option '%s' with value '%s'"
;
foreach
(
$driverOptions
as
$option
=>
$value
)
{
foreach
(
$driverOptions
as
$option
=>
$value
)
{
...
...
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