diff options
author | stuconnolly <stuart02@gmail.com> | 2011-04-03 09:34:29 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-04-03 09:34:29 +0000 |
commit | 3ed8b33deeadcc98185911f41bc6bcb4e53b4719 (patch) | |
tree | b0e20fd5a534a0e24fe00206163fdca5245882fd /Source/SPFieldMapperController.m | |
parent | c7a4e604462e11bf26dc7b58645fa6429848e6fc (diff) | |
download | sequelpro-3ed8b33deeadcc98185911f41bc6bcb4e53b4719.tar.gz sequelpro-3ed8b33deeadcc98185911f41bc6bcb4e53b4719.tar.bz2 sequelpro-3ed8b33deeadcc98185911f41bc6bcb4e53b4719.zip |
Bring outline view branch up to date with trunk (r3246:r3264).
Diffstat (limited to 'Source/SPFieldMapperController.m')
-rw-r--r-- | Source/SPFieldMapperController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m index de22b485..f6633172 100644 --- a/Source/SPFieldMapperController.m +++ b/Source/SPFieldMapperController.m @@ -1387,7 +1387,7 @@ static NSString *SPTableViewSqlColumnID = @"sql"; // Create a distance matrix for each file-table name // distance will be calculated by using Levenshtein distance minus common prefix and suffix length // and minus the length of a fuzzy regex search for a common sequence of characters - NSUInteger i,j; + NSUInteger i,j,k; NSMutableArray *distMatrix = [NSMutableArray array]; for(i=0; i < [tableHeaderNames count]; i++) { CGFloat dist = 1e6f; @@ -1406,8 +1406,8 @@ static NSString *SPTableViewSqlColumnID = @"sql"; NSMutableString *fuzzyRegexp = [[NSMutableString alloc] initWithCapacity:3]; unichar c; - for(i=0; i<[headerName length]; i++) { - c = [headerName characterAtIndex:i]; + for(k=0; k<[headerName length]; k++) { + c = [headerName characterAtIndex:k]; if (c == '.' || c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}') [fuzzyRegexp appendFormat:@".*?\\%c",c]; else |