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
60132596
Commit
60132596
authored
Dec 14, 2017
by
Gabriel Caruso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean elses
parent
73b2ad52
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
17 deletions
+17
-17
Connection.php
lib/Doctrine/DBAL/Driver/DrizzlePDOMySql/Connection.php
+2
-2
DB2Connection.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
+2
-2
QueryBuilder.php
lib/Doctrine/DBAL/Query/QueryBuilder.php
+2
-2
PostgreSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
+2
-2
Table.php
lib/Doctrine/DBAL/Schema/Table.php
+2
-2
Statement.php
lib/Doctrine/DBAL/Statement.php
+2
-2
DbalFunctionalTestCase.php
tests/Doctrine/Tests/DbalFunctionalTestCase.php
+2
-2
DriverMock.php
tests/Doctrine/Tests/Mocks/DriverMock.php
+3
-3
No files found.
lib/Doctrine/DBAL/Driver/DrizzlePDOMySql/Connection.php
View file @
60132596
...
@@ -32,9 +32,9 @@ class Connection extends \Doctrine\DBAL\Driver\PDOConnection
...
@@ -32,9 +32,9 @@ class Connection extends \Doctrine\DBAL\Driver\PDOConnection
if
(
\PDO
::
PARAM_BOOL
===
$type
)
{
if
(
\PDO
::
PARAM_BOOL
===
$type
)
{
if
(
$value
)
{
if
(
$value
)
{
return
'true'
;
return
'true'
;
}
else
{
return
'false'
;
}
}
return
'false'
;
}
}
return
parent
::
quote
(
$value
,
$type
);
return
parent
::
quote
(
$value
,
$type
);
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
View file @
60132596
...
@@ -103,9 +103,9 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
...
@@ -103,9 +103,9 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
$input
=
db2_escape_string
(
$input
);
$input
=
db2_escape_string
(
$input
);
if
(
$type
==
\PDO
::
PARAM_INT
)
{
if
(
$type
==
\PDO
::
PARAM_INT
)
{
return
$input
;
return
$input
;
}
else
{
return
"'"
.
$input
.
"'"
;
}
}
return
"'"
.
$input
.
"'"
;
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Query/QueryBuilder.php
View file @
60132596
...
@@ -204,9 +204,9 @@ class QueryBuilder
...
@@ -204,9 +204,9 @@ class QueryBuilder
{
{
if
(
$this
->
type
==
self
::
SELECT
)
{
if
(
$this
->
type
==
self
::
SELECT
)
{
return
$this
->
connection
->
executeQuery
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
return
$this
->
connection
->
executeQuery
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
}
else
{
return
$this
->
connection
->
executeUpdate
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
}
}
return
$this
->
connection
->
executeUpdate
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
60132596
...
@@ -194,9 +194,9 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
...
@@ -194,9 +194,9 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
if
(
$table
[
'schema_name'
]
==
$firstSchema
)
{
if
(
$table
[
'schema_name'
]
==
$firstSchema
)
{
return
$table
[
'table_name'
];
return
$table
[
'table_name'
];
}
else
{
return
$table
[
'schema_name'
]
.
"."
.
$table
[
'table_name'
];
}
}
return
$table
[
'schema_name'
]
.
"."
.
$table
[
'table_name'
];
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Schema/Table.php
View file @
60132596
...
@@ -122,9 +122,9 @@ class Table extends AbstractAsset
...
@@ -122,9 +122,9 @@ class Table extends AbstractAsset
{
{
if
(
$this
->
_schemaConfig
instanceof
SchemaConfig
)
{
if
(
$this
->
_schemaConfig
instanceof
SchemaConfig
)
{
return
$this
->
_schemaConfig
->
getMaxIdentifierLength
();
return
$this
->
_schemaConfig
->
getMaxIdentifierLength
();
}
else
{
return
63
;
}
}
return
63
;
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Statement.php
View file @
60132596
...
@@ -118,9 +118,9 @@ class Statement implements \IteratorAggregate, DriverStatement
...
@@ -118,9 +118,9 @@ class Statement implements \IteratorAggregate, DriverStatement
}
}
return
$this
->
stmt
->
bindValue
(
$name
,
$value
,
$bindingType
);
return
$this
->
stmt
->
bindValue
(
$name
,
$value
,
$bindingType
);
}
else
{
return
$this
->
stmt
->
bindValue
(
$name
,
$value
);
}
}
return
$this
->
stmt
->
bindValue
(
$name
,
$value
);
}
}
/**
/**
...
...
tests/Doctrine/Tests/DbalFunctionalTestCase.php
View file @
60132596
...
@@ -62,9 +62,9 @@ class DbalFunctionalTestCase extends DbalTestCase
...
@@ -62,9 +62,9 @@ class DbalFunctionalTestCase extends DbalTestCase
return
get_class
(
$p
);
return
get_class
(
$p
);
}
elseif
(
is_scalar
(
$p
))
{
}
elseif
(
is_scalar
(
$p
))
{
return
"'"
.
$p
.
"'"
;
return
"'"
.
$p
.
"'"
;
}
else
{
return
var_export
(
$p
,
true
);
}
}
return
var_export
(
$p
,
true
);
},
$query
[
'params'
]
?:
array
());
},
$query
[
'params'
]
?:
array
());
$queries
.=
$i
.
". SQL: '"
.
$query
[
'sql'
]
.
"' Params: "
.
implode
(
", "
,
$params
)
.
PHP_EOL
;
$queries
.=
$i
.
". SQL: '"
.
$query
[
'sql'
]
.
"' Params: "
.
implode
(
", "
,
$params
)
.
PHP_EOL
;
$i
--
;
$i
--
;
...
...
tests/Doctrine/Tests/Mocks/DriverMock.php
View file @
60132596
...
@@ -43,9 +43,9 @@ class DriverMock implements \Doctrine\DBAL\Driver
...
@@ -43,9 +43,9 @@ class DriverMock implements \Doctrine\DBAL\Driver
{
{
if
(
$this
->
_schemaManagerMock
==
null
)
{
if
(
$this
->
_schemaManagerMock
==
null
)
{
return
new
SchemaManagerMock
(
$conn
);
return
new
SchemaManagerMock
(
$conn
);
}
else
{
return
$this
->
_schemaManagerMock
;
}
}
return
$this
->
_schemaManagerMock
;
}
}
/* MOCK API */
/* MOCK API */
...
...
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