@@ -30,7 +30,6 @@ class BaseRDBMSDataTable(object):
else:
self.columns_description = [{'name': col} for col in columns]
self.columns = columns
- self.columns_description = columns
self.next = None
self.startRowOffset = 0
self.fetchSize = 1000
@@ -163,6 +163,7 @@ class RdbmsApi(Api):
if sample_data:
response['status'] = 0
response['headers'] = sample_data.columns
+ response['full_headers'] = sample_data.columns_description
response['rows'] = list(sample_data.rows())
response['message'] = _('Failed to get sample data.')