Showing 1 of 3 files from the diff.

@@ -49,6 +49,15 @@
Loading
49 49
     */
50 50
    private static $charset = 'utf8';
51 51
52 +
    /**
53 +
     * SQL Mode used on connections to MySQL. Defaults to ANSI. For basic ORM
54 +
     * compatibility, this setting must always include ANSI or ANSI_QUOTES.
55 +
     *
56 +
     * @config
57 +
     * @var string
58 +
     */
59 +
    private static $sql_mode = 'ANSI';
60 +
52 61
    /**
53 62
     * Cache for getTransactionManager()
54 63
     *
@@ -84,8 +93,8 @@
Loading
84 93
        // Notify connector of parameters
85 94
        $this->connector->connect($parameters);
86 95
87 -
        // This is important!
88 -
        $this->setSQLMode('ANSI');
96 +
        // Set sql_mode
97 +
        $this->setSQLMode(static::config()->get('sql_mode'));
89 98
90 99
        if (isset($parameters['timezone'])) {
91 100
            $this->selectTimezone($parameters['timezone']);
Files Complexity Coverage
src 14,005 75.12%
_config.php 0 100.00%
_register_database.php 0 0.00%
cli-script.php 0 0.00%
Project Totals (468 files) 14005 75.06%
18341.6
7.3=.3
TRAVIS_OS_NAME=linux
18337.6
7.3=.3
TRAVIS_OS_NAME=linux
18344.6
7.3=.3
TRAVIS_OS_NAME=linux
18342.6
7.3=.3
TRAVIS_OS_NAME=linux
18349.6
7.3=.3
TRAVIS_OS_NAME=linux
18346.6
7.3=.3
TRAVIS_OS_NAME=linux
18349.6
7.3=.3
TRAVIS_OS_NAME=linux
1
comment: false
2
codecov:
3
  branch: master
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading