From 880e6f50aed1685f20c418212c308d1cc6bd0c32 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 10 Jul 2013 11:55:23 +0000 Subject: [PATCH] setup.php: - explicitely specify (empty) values for description and transport when creating the "ALL" domain to fix problems with strict SQL mode in MariaDB https://sourceforge.net/p/postfixadmin/bugs/288/ git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1497 a1433add-5e2c-0410-b055-b7f2511e0802 --- setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.php b/setup.php index 536b6b13..1b64ab61 100644 --- a/setup.php +++ b/setup.php @@ -344,7 +344,7 @@ else $table_domain = table_by_key('domain'); $r = db_query("SELECT * FROM $table_domain WHERE domain = 'ALL'"); if($r['rows'] == 0) { - db_insert('domain', array('domain' => 'ALL')); // all other fields should default through the schema. + db_insert('domain', array('domain' => 'ALL', 'description' => '', 'transport' => '') ); // all other fields should default through the schema. } $values = array(