From d08d29caff527a57d824543c1f15e61785e56e78 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 10 Jul 2013 11:59:30 +0000 Subject: [PATCH] - 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/branches/postfixadmin-2.3@1498 a1433add-5e2c-0410-b055-b7f2511e0802 --- setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.php b/setup.php index f4a45626..05235805 100644 --- a/setup.php +++ b/setup.php @@ -335,7 +335,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. } list ($error, $tMessage, $pAdminCreate_admin_username_text, $pAdminCreate_admin_password_text) = create_admin($fUsername, $fPassword, $fPassword2, array('ALL'), TRUE);