diff options
author | rowanbeentje <rowan@beent.je> | 2013-03-01 00:53:17 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-03-01 00:53:17 +0000 |
commit | e01f4a945279605ae5b674b61e0bee752e8d933d (patch) | |
tree | 9c406ae1825b50ce53adb7574e5ce9bd97cd6ac2 /Source/SPTableData.m | |
parent | b7c8b06a8aad371f02139d5fe4ac64bba7f11811 (diff) | |
download | sequelpro-e01f4a945279605ae5b674b61e0bee752e8d933d.tar.gz sequelpro-e01f4a945279605ae5b674b61e0bee752e8d933d.tar.bz2 sequelpro-e01f4a945279605ae5b674b61e0bee752e8d933d.zip |
- Fix handling of primary keys listing multiple fields of which an early field has a specified length, addressing Issue #1641
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r-- | Source/SPTableData.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m index 0de1e651..311108f2 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -718,7 +718,7 @@ // add dict root "primarykeyfield" = <field> for faster accessing else if( [NSArrayObjectAtIndex(parts, 0) hasPrefix:@"PRIMARY"] && [parts count] == 3) { SPSQLParser *keyParser = [SPSQLParser stringWithString:NSArrayObjectAtIndex(parts, 2)]; - keyParser = [SPSQLParser stringWithString:[keyParser stringFromCharacter:'(' toCharacter:')' inclusively:NO]]; + keyParser = [SPSQLParser stringWithString:[keyParser stringFromCharacter:'(' toCharacter:')' inclusively:NO skippingBrackets:YES]]; NSArray *primaryKeyQuotedNames = [keyParser splitStringByCharacter:',']; if ([keyParser length]) { NSMutableArray *primaryKeyFields = [NSMutableArray array]; |