summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-24 10:21:32 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-24 10:21:32 +0000
commit779a70a0d473391461e5a9c3670c064fc6144ee7 (patch)
tree9442d0c6ae129632383f68e0d9a1ca24095f58fa
parent821ad24bc10fc122e7597026dfa39b770d39c0a5 (diff)
downloadbrdo-779a70a0d473391461e5a9c3670c064fc6144ee7.tar.gz
brdo-779a70a0d473391461e5a9c3670c064fc6144ee7.tar.bz2
- Patch #344575 by cdale: made the ANSI compatibility mode less strict to work around a MySQL 5 bug.
-rw-r--r--includes/database/mysql/database.inc2
-rw-r--r--modules/simpletest/tests/database_test.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/database/mysql/database.inc b/includes/database/mysql/database.inc
index b7043dd15..b5a2e4eaa 100644
--- a/includes/database/mysql/database.inc
+++ b/includes/database/mysql/database.inc
@@ -40,7 +40,7 @@ class DatabaseConnection_mysql extends DatabaseConnection {
// kinds of database systems. These settings force MySQL to behave
// the same as postgresql, or sqlite in regards to syntax interpretation
// and invalid data handling. See http://drupal.org/node/344575 for further disscussion.
- $this->exec("SET sql_mode='ANSI,TRADITIONAL,ONLY_FULL_GROUP_BY'");
+ $this->exec("SET sql_mode='ANSI,TRADITIONAL'");
}
public function queryRange($query, array $args, $from, $count, array $options = array()) {
diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test
index 15802ed1b..c98c5be69 100644
--- a/modules/simpletest/tests/database_test.test
+++ b/modules/simpletest/tests/database_test.test
@@ -2019,7 +2019,7 @@ class DatabaseInvalidDataTestCase extends DatabaseTestCase {
->fields('test', array('name', 'age'))
->condition('age', array(17, 75),'IN')
->execute()->fetchObject();
- $this->assertFalse($record, $e->getMessage() .':: '. t('Insert aborted as expected.'));
+ $this->assertFalse($record, t('Insert aborted as expected.'));
}
}