Commit 779a70a0 authored by Dries's avatar Dries
Browse files

- Patch #344575 by cdale: made the ANSI compatibility mode less strict to work...

- Patch #344575 by cdale: made the ANSI compatibility mode less strict to work around a MySQL 5 bug.
parent 821ad24b
...@@ -40,7 +40,7 @@ public function __construct(array $connection_options = array()) { ...@@ -40,7 +40,7 @@ public function __construct(array $connection_options = array()) {
// kinds of database systems. These settings force MySQL to behave // kinds of database systems. These settings force MySQL to behave
// the same as postgresql, or sqlite in regards to syntax interpretation // the same as postgresql, or sqlite in regards to syntax interpretation
// and invalid data handling. See http://drupal.org/node/344575 for further disscussion. // 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()) { public function queryRange($query, array $args, $from, $count, array $options = array()) {
......
...@@ -2019,7 +2019,7 @@ class DatabaseInvalidDataTestCase extends DatabaseTestCase { ...@@ -2019,7 +2019,7 @@ class DatabaseInvalidDataTestCase extends DatabaseTestCase {
->fields('test', array('name', 'age')) ->fields('test', array('name', 'age'))
->condition('age', array(17, 75),'IN') ->condition('age', array(17, 75),'IN')
->execute()->fetchObject(); ->execute()->fetchObject();
$this->assertFalse($record, $e->getMessage() .':: '. t('Insert aborted as expected.')); $this->assertFalse($record, t('Insert aborted as expected.'));
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment