Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ed5e136a
Commit
ed5e136a
authored
6 months ago
by
mondrake
Browse files
Options
Downloads
Patches
Plain Diff
Update PdoTrait.php
parent
a7ae0230
No related branches found
No related tags found
4 merge requests
!11355
Create the database driver for MySQLi #3259709
,
!10263
Closes #3488467
,
!10207
Replace \PDO::FETCH_* constants to indicate fetch mode with an enumeration
,
!5247
Enable dynamic queries to produce SQL with positional placeholders
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Database/Statement/PdoTrait.php
+2
-2
2 additions, 2 deletions
core/lib/Drupal/Core/Database/Statement/PdoTrait.php
with
2 additions
and
2 deletions
core/lib/Drupal/Core/Database/Statement/PdoTrait.php
+
2
−
2
View file @
ed5e136a
...
...
@@ -108,10 +108,10 @@ protected function clientExecute(?array $arguments = [], array $options = []): b
* @param int|null $cursorOffset
* Not implemented in all database drivers, don't use.
*
* @return array<string|int|float|bool>|object|
false
* @return array<string|int|float|bool>|object|
string|int|float|bool
* A result, formatted according to $mode, or FALSE on failure.
*/
protected
function
clientFetch
(
?FetchAs
$mode
=
NULL
,
?int
$cursorOrientation
=
NULL
,
?int
$cursorOffset
=
NULL
)
{
protected
function
clientFetch
(
?FetchAs
$mode
=
NULL
,
?int
$cursorOrientation
=
NULL
,
?int
$cursorOffset
=
NULL
)
:
array
|
object
|
string
|
int
|
float
|
bool
{
return
match
(
func_num_args
())
{
0
=>
$this
->
getClientStatement
()
->
fetch
(),
1
=>
$this
->
getClientStatement
()
->
fetch
(
$this
->
fetchAsToPdo
(
$mode
)),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment