aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPSQLParser.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPSQLParser.m b/Source/SPSQLParser.m
index e0abf319..d95d964f 100644
--- a/Source/SPSQLParser.m
+++ b/Source/SPSQLParser.m
@@ -630,7 +630,7 @@ TO_BUFFER_STATE to_scan_string (const char *);
if (supportDelimiters && [finalQuery isMatchedByRegex:@"(?i)^\\s*delimiter\\s+\\S+"])
finalQuery = nil;
if ([finalQuery length])
- [resultsArray addObject:[NSValue valueWithRange:NSMakeRange(stringIndex, [string length] - stringIndex - delimiterLengthMinusOne)]];
+ [resultsArray addObject:[NSValue valueWithRange:NSMakeRange(stringIndex, [string length] - stringIndex)]];
}
return resultsArray;