aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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