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
24255923
Commit
24255923
authored
Nov 02, 2014
by
Matteo Beccati
Committed by
Marco Pivetta
Nov 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DBAL-920] Use PDO::PGSQL_ATTR_DISABLE_PREPARES by default
parent
6458b0bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Driver.php
lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
+7
-1
No files found.
lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
View file @
24255923
...
...
@@ -37,15 +37,21 @@ class Driver extends AbstractPostgreSQLDriver
public
function
connect
(
array
$params
,
$username
=
null
,
$password
=
null
,
array
$driverOptions
=
array
())
{
try
{
return
new
PDOConnection
(
$pdo
=
new
PDOConnection
(
$this
->
_constructPdoDsn
(
$params
),
$username
,
$password
,
$driverOptions
);
if
(
PHP_VERSION_ID
>=
50600
)
{
$pdo
->
setAttribute
(
\PDO
::
PGSQL_ATTR_DISABLE_PREPARES
,
true
);
}
}
catch
(
PDOException
$e
)
{
throw
DBALException
::
driverException
(
$this
,
$e
);
}
return
$pdo
;
}
/**
...
...
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