Skip to content

Commit

Permalink
importing migration Data will destroy the formatting of varchars
Browse files Browse the repository at this point in the history
now if we are inQuotes state it will not trim and destroy TAB, also it will not loose LineFeed anymore.
  • Loading branch information
ishimoto committed Oct 15, 2013
1 parent 09dd8d6 commit 6f7d6d5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,11 @@ public NSArray<String> splitSQLStatements(String sql) {
try {
String nextLine = reader.readLine();
while (nextLine != null) {
nextLine = nextLine.trim();
if(!inQuotes) {
nextLine = nextLine.trim(); // trim only if we not inQuotes
} else {
statementBuffer.append('\n'); // we are in Quotes but got a new Line
}

// Skip blank lines and new lines starting with the comment pattern
if (nextLine.length() == 0 ||
Expand Down

0 comments on commit 6f7d6d5

Please sign in to comment.