mirror of
https://github.com/actiontech/dble.git
synced 2026-05-20 06:40:41 -05:00
fix: judging string is empty
This commit is contained in:
@@ -760,7 +760,7 @@ public final class ServerLoadDataInfileHandler implements LoadDataInfileHandler
|
||||
}
|
||||
while ((row = parser.parseNext()) != null) {
|
||||
if (ignoreNumber == 0) {
|
||||
if ((row.length == 1 && row[0] == null) || row.length == 0) {
|
||||
if ((row.length == 1 && row[0] == null) || (row.length == 1 && row[0].isEmpty()) || row.length == 0) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
@@ -831,7 +831,7 @@ public final class ServerLoadDataInfileHandler implements LoadDataInfileHandler
|
||||
boolean empty = true;
|
||||
while ((row = parser.parseNext()) != null) {
|
||||
if (ignoreNumber == 0) {
|
||||
if ((row.length == 1 && row[0] == null) || row.length == 0) {
|
||||
if ((row.length == 1 && row[0] == null) || (row.length == 1 && row[0].isEmpty()) || row.length == 0) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user