Skip to content

Commit

Permalink
Merge pull request #502 from ishimoto/sql_import
Browse files Browse the repository at this point in the history
importing migration Data will destroy the formatting of varchars
  • Loading branch information
ishimoto committed Oct 15, 2013
2 parents 09dd8d6 + 6f7d6d5 commit 7e18cc0
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 7e18cc0

Please sign in to comment.