Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3485117
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3485117
Commits
669fe991
Commit
669fe991
authored
9 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#567148
by jcnventura, Damien Tournoud, greenrover33: Use ONLY_FULL_GROUP_BY for MySQL
parent
5b55ea81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
+1
-1
1 addition, 1 deletion
core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
files.php
+270
-0
270 additions, 0 deletions
files.php
index.php
+1
-1
1 addition, 1 deletion
index.php
with
272 additions
and
2 deletions
core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
+
1
−
1
View file @
669fe991
...
...
@@ -113,7 +113,7 @@ public static function open(array &$connection_options = array()) {
'init_commands'
=>
array
(),
);
$connection_options
[
'init_commands'
]
+=
array
(
'sql_mode'
=>
"SET sql_mode = 'ANSI,STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER'"
,
'sql_mode'
=>
"SET sql_mode = 'ANSI,STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER
,ONLY_FULL_GROUP_BY
'"
,
);
// Execute initial commands.
foreach
(
$connection_options
[
'init_commands'
]
as
$sql
)
{
...
...
This diff is collapsed.
Click to expand it.
files.php
0 → 100644
+
270
−
0
View file @
669fe991
This diff is collapsed.
Click to expand it.
index.php
+
1
−
1
View file @
669fe991
...
...
@@ -15,7 +15,7 @@
use
Symfony\Component\HttpFoundation\Response
;
$autoloader
=
require_once
'autoload.php'
;
require_once
'files.php'
;
try
{
$request
=
Request
::
createFromGlobals
();
...
...
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