List:Internals« Previous MessageNext Message »
From:mmatthews Date:September 22 2005 5:26pm
Subject:Connector/J commit: r4292 - branches/branch_5_0/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_5_0/connector-j/src/com/mysql/jdbc/MysqlIO.java
Log:
Read response in MysqlIO.sendFileToServer(), even if the 
      local file can't be opened, otherwise next query issued
      will fail, because it's reading the response to the empty
      LOAD DATA INFILE packet sent to the server.

(merged from 3.1)

Modified: branches/branch_5_0/connector-j/src/com/mysql/jdbc/MysqlIO.java
===================================================================
--- branches/branch_5_0/connector-j/src/com/mysql/jdbc/MysqlIO.java	2005-09-22 17:25:30 UTC (rev 4291)
+++ branches/branch_5_0/connector-j/src/com/mysql/jdbc/MysqlIO.java	2005-09-22 17:26:48 UTC (rev 4292)
@@ -2716,6 +2716,7 @@
                 // file open failed, but server needs one packet
                 filePacket.clear();
                 send(filePacket);
+                checkErrorPacket(); // to clear response off of queue
             }
         }
 

Thread
Connector/J commit: r4292 - branches/branch_5_0/connector-j/src/com/mysql/jdbcmmatthews22 Sep