title: READ COMMITTED ERROR 1665 impossible to write to binary log
body: <p>THis example works :  </p>
  
  <pre><code>MariaDB [test]&gt; SET TRANSACTION  ISOLATION LEVEL REPEATABLE READ;
  Query OK, 0 rows affected (0.00 sec)
  
  MariaDB [test]&gt; INSERT INTO test(id, value) VALUES (1, 'test'), (2, 'test 2');
  Query OK, 2 rows affected (0.37 sec)
  Records: 2  Duplicates: 0  Warnings: 0
  
  MariaDB [test]&gt; SELECT * FROM test;
  +------+--------+
  | id   | value  |
  +------+--------+
  |    1 | test   |
  |    2 | test 2 |
  +------+--------+
  2 rows in set (0.00 sec)
  
  MariaDB [test]&gt; COMMIT;
  </code></pre>
  
  <p>but when i changed transaction level :</p>
  
  <pre><code>MariaDB [test]&gt; SET TRANSACTION  ISOLATION LEVEL READ COMMITTED;
  Query OK, 0 rows affected (0.00 sec)
  
  MariaDB [test]&gt; INSERT INTO test(id, value) VALUES (1, 'test'), (2, 'test 2');
  ERROR 1665 (HY000): Cannot execute statement: impossible to write to binary log
  since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine lim
  ited to row-based logging. InnoDB is limited to row-logging when transaction iso
  lation level is READ COMMITTED or READ UNCOMMITTED.
  MariaDB [test]&gt; SELECT * FROM test;
  Empty set (0.00 sec)
  
  MariaDB [test]&gt; COMMIT;
  Query OK, 0 rows affected (0.00 sec)
  </code></pre>
  
  <p>How to fix this problem ?</p>