aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-07-15 00:29:57 +0000
committerrowanbeentje <rowan@beent.je>2009-07-15 00:29:57 +0000
commit0b9c1d19c50dd993991dda997a48699b04894090 (patch)
tree68b69c9dec436f5ae9011e68299c0c99d6d793f6 /Source/SPTableData.m
parentaa2f8b4cbddb68b4aadd6544eb754c8468746633 (diff)
downloadsequelpro-0b9c1d19c50dd993991dda997a48699b04894090.tar.gz
sequelpro-0b9c1d19c50dd993991dda997a48699b04894090.tar.bz2
sequelpro-0b9c1d19c50dd993991dda997a48699b04894090.zip
- Update r1003 to also work with views (fixes Issue #335)
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 888b8b11..81fe5479 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -653,7 +653,8 @@
[tableColumn removeAllObjects];
resultRow = [theResult fetchRowAsDictionary];
- // Add the column name
+ // Add the column index and name
+ [tableColumn setObject:[NSNumber numberWithInt:[tableColumns count]] forKey:@"datacolumnindex"];
[tableColumn setObject:[NSString stringWithString:[resultRow objectForKey:@"Field"]] forKey:@"name"];
// Populate type, length, and other available details from the Type columns