Skip to content

Commit

Permalink
BUG Fix compatibility issues with mysql 5.7 and above
Browse files Browse the repository at this point in the history
Fixes #257
  • Loading branch information
tractorcow committed May 27, 2020
1 parent d8068ea commit 6c47145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

use SilverStripe\Dev\Deprecation;
use SilverStripe\ORM\DB;

Deprecation::notification_version('4.0.0', 'tractorcow/silverstripe-fluent');

// Credit to https://github.com/sunnysideup thank you for the mysql fix
DB::query("SET SESSION sql_mode='REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE';");

0 comments on commit 6c47145

Please sign in to comment.