title: MariaDB jdbc connection fails during bulk inserts
body: <p>I have a table in MariaDB with this spec:</p>
  
  <pre><code>CREATE TABLE `pages_txt` (
      `id` INT(10) UNSIGNED NOT NULL,
      `title` TEXT NOT NULL,
      `txt` MEDIUMTEXT NOT NULL,
      PRIMARY KEY (`id`)
  )
  COLLATE='utf8_general_ci'
  ENGINE=MyISAM;
  </code></pre>
  
  <p>and I want to insert about 2 million records into this table.
  However, after inserting about 160K records the connection dies and I receive this exception:</p>
  
  <pre><code>at Main.main(Main.java:57)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
  Caused by: org.mariadb.jdbc.internal.common.QueryException: Could not send query: Last packet not finished
      at org.mariadb.jdbc.internal.mysql.MySQLProtocol.executeQuery(MySQLProtocol.java:954)
      at org.mariadb.jdbc.MySQLStatement.execute(MySQLStatement.java:278)
      ... 21 more
  Caused by: java.io.IOException: Last packet not finished
      at org.mariadb.jdbc.internal.common.packet.PacketOutputStream.startPacket(PacketOutputStream.java:38)
      at org.mariadb.jdbc.internal.common.packet.commands.StreamedQueryPacket.send(StreamedQueryPacket.java:76)
      at org.mariadb.jdbc.internal.mysql.MySQLProtocol.executeQuery(MySQLProtocol.java:952)
      ... 22 more
  java.sql.SQLNonTransientConnectionException: Could not send query: Last packet not finished
      at org.mariadb.jdbc.internal.SQLExceptionMapper.get(SQLExceptionMapper.java:136)
      at org.mariadb.jdbc.internal.SQLExceptionMapper.throwException(SQLExceptionMapper.java:106)
      at org.mariadb.jdbc.MySQLStatement.executeQueryEpilog(MySQLStatement.java:262)
      at org.mariadb.jdbc.MySQLStatement.execute(MySQLStatement.java:285)
      at org.mariadb.jdbc.MySQLStatement.executeUpdate(MySQLStatement.java:313)
      at org.mariadb.jdbc.MySQLPreparedStatement.executeUpdate(MySQLPreparedStatement.java:156)
      at Main$1.process(Main.java:50)
  </code></pre>
  
  <p>but the MariaDB server is up and working! Is there any bugs in JDBC connector???
  The version is 5.5.32-MariaDB.</p>