aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-05-15 04:38:33 +0000
committermtvee <emptyvee@gmail.com>2009-05-15 04:38:33 +0000
commitfa7f9811fbbbbee702acb1a5592f69fa7592f5c7 (patch)
treec75d20aeb6d8da8de49fcb5bb6278d77e981c907 /Source/SPTableData.m
parentc271a152b7856fa04de00ba74e221904ae2c0c4c (diff)
downloadsequelpro-fa7f9811fbbbbee702acb1a5592f69fa7592f5c7.tar.gz
sequelpro-fa7f9811fbbbbee702acb1a5592f69fa7592f5c7.tar.bz2
sequelpro-fa7f9811fbbbbee702acb1a5592f69fa7592f5c7.zip
fixed #254 and an unreported bug in the constraint parser
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 57421d0e..6b40eb99 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -364,11 +364,11 @@
*/
[constraintDetails setObject:[[parts objectAtIndex:1] stringByTrimmingCharactersInSet:junk]
forKey:@"name"];
- [constraintDetails setObject:[[parts objectAtIndex:4] stringByTrimmingCharactersInSet:junk]
+ [constraintDetails setObject:[[parts objectAtIndex:4] stringByRemovingCharactersInSet:junk]
forKey:@"columns"];
[constraintDetails setObject:[[parts objectAtIndex:6] stringByTrimmingCharactersInSet:junk]
forKey:@"ref_table"];
- [constraintDetails setObject:[[parts objectAtIndex:7] stringByTrimmingCharactersInSet:junk]
+ [constraintDetails setObject:[[parts objectAtIndex:7] stringByRemovingCharactersInSet:junk]
forKey:@"ref_columns"];
int nextOffs = 12;