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
cb7da62a
Commit
cb7da62a
authored
Dec 29, 2013
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #470 from mishak87/patch-1
Connection: Replaced ! is_int with is_string
parents
e0e5bf49
80b5d63d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Connection.php
lib/Doctrine/DBAL/Connection.php
+3
-3
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
cb7da62a
...
@@ -514,7 +514,7 @@ class Connection implements DriverConnection
...
@@ -514,7 +514,7 @@ class Connection implements DriverConnection
$criteria
[]
=
$columnName
.
' = ?'
;
$criteria
[]
=
$columnName
.
' = ?'
;
}
}
if
(
!
is_int
(
key
(
$types
)))
{
if
(
is_string
(
key
(
$types
)))
{
$types
=
$this
->
extractTypeValues
(
$identifier
,
$types
);
$types
=
$this
->
extractTypeValues
(
$identifier
,
$types
);
}
}
...
@@ -578,7 +578,7 @@ class Connection implements DriverConnection
...
@@ -578,7 +578,7 @@ class Connection implements DriverConnection
$set
[]
=
$columnName
.
' = ?'
;
$set
[]
=
$columnName
.
' = ?'
;
}
}
if
(
!
is_int
(
key
(
$types
)))
{
if
(
is_string
(
key
(
$types
)))
{
$types
=
$this
->
extractTypeValues
(
array_merge
(
$data
,
$identifier
),
$types
);
$types
=
$this
->
extractTypeValues
(
array_merge
(
$data
,
$identifier
),
$types
);
}
}
...
@@ -612,7 +612,7 @@ class Connection implements DriverConnection
...
@@ -612,7 +612,7 @@ class Connection implements DriverConnection
'INSERT INTO '
.
$tableName
.
' ('
.
implode
(
', '
,
array_keys
(
$data
))
.
')'
.
'INSERT INTO '
.
$tableName
.
' ('
.
implode
(
', '
,
array_keys
(
$data
))
.
')'
.
' VALUES ('
.
implode
(
', '
,
array_fill
(
0
,
count
(
$data
),
'?'
))
.
')'
,
' VALUES ('
.
implode
(
', '
,
array_fill
(
0
,
count
(
$data
),
'?'
))
.
')'
,
array_values
(
$data
),
array_values
(
$data
),
is_
int
(
key
(
$types
))
?
$types
:
$this
->
extractTypeValues
(
$data
,
$types
)
is_
string
(
key
(
$types
))
?
$this
->
extractTypeValues
(
$data
,
$types
)
:
$types
);
);
}
}
...
...
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