diff options
author | rowanbeentje <rowan@beent.je> | 2012-01-09 23:45:35 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-01-09 23:45:35 +0000 |
commit | 769ea7847b21c4eafcb32b18045b8c6a13e08c0a (patch) | |
tree | 7690663cc5283506798f517058aadd907df193db /Source/SPTableData.m | |
parent | 844435db969701bb914094c523e93d775e597df1 (diff) | |
download | sequelpro-769ea7847b21c4eafcb32b18045b8c6a13e08c0a.tar.gz sequelpro-769ea7847b21c4eafcb32b18045b8c6a13e08c0a.tar.bz2 sequelpro-769ea7847b21c4eafcb32b18045b8c6a13e08c0a.zip |
- Expicitly cast parameters before passing into NSString formatters assuming 64-bit lengths; this addresses exceptions and hangs viewing table contents on 32-bit machines, many thanks to stuart02 for identifying and tracking down this issue
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r-- | Source/SPTableData.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m index 554b3e36..297718b9 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -590,7 +590,7 @@ } [fieldsParser setIgnoreCommentStrings:NO]; - [tableColumn setObject:[NSString stringWithFormat:@"%llu", [tableColumns count]] forKey:@"datacolumnindex"]; + [tableColumn setObject:[NSString stringWithFormat:@"%llu", (unsigned long long)[tableColumns count]] forKey:@"datacolumnindex"]; [tableColumn setObject:fieldName forKey:@"name"]; // Split the remaining field definition string by spaces and process @@ -872,7 +872,7 @@ resultRow = [theResult fetchRowAsDictionary]; // Add the column index and name - [tableColumn setObject:[NSString stringWithFormat:@"%llu", [tableColumns count]] forKey:@"datacolumnindex"]; + [tableColumn setObject:[NSString stringWithFormat:@"%llu", (unsigned long long)[tableColumns count]] forKey:@"datacolumnindex"]; [tableColumn setObject:[NSString stringWithString:[resultRow objectForKey:@"Field"]] forKey:@"name"]; // Populate type, length, and other available details from the Type columns |