Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
669fe991
Commit
669fe991
authored
Apr 27, 2015
by
Nathaniel Catchpole
Browse files
Issue
#567148
by jcnventura, Damien Tournoud, greenrover33: Use ONLY_FULL_GROUP_BY for MySQL
parent
5b55ea81
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
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
)
{
...
...
files.php
0 → 100644
View file @
669fe991
This diff is collapsed.
Click to expand it.
index.php
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
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment