From: root Date: Fri, 6 Oct 2017 08:17:50 +0000 (+0100) Subject: lib/php/db/types/mysql.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=db3e728d851630901b034a341c48477acdfd57d2;p=nb.git lib/php/db/types/mysql.php --- diff --git a/lib/php/db/types/mysql.php b/lib/php/db/types/mysql.php index 16d1a8e2..d12886b4 100644 --- a/lib/php/db/types/mysql.php +++ b/lib/php/db/types/mysql.php @@ -102,6 +102,7 @@ $DB_TYPES['mysql'] = array ( $sql = preg_replace('/ESCAPE \'.*?\'/','',$sql); $sql = preg_replace('/CHARSET=\S+\s*$/','CHARSET='.str_replace('-','',$t->db()->charset),$sql); $sql = str_replace("date DEFAULT 'NULL'","date",$sql); + $sql = str_replace("\n",'\n',$sql); return $sql; },