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/jdbc | mmatthews | 22 Sep |