Fixes# 1210 - Send the columns SQL with proper mime type.

This commit is contained in:
Harshal Dhumal
2016-06-03 15:24:38 +05:30
committed by Ashesh Vashi
parent 40ab0b7c88
commit ab9f63d960

View File

@@ -820,7 +820,7 @@ class ColumnsView(PGChildNodeView, DataTypeReader):
data=data, conn=self.conn)
SQL = sql_header + '\n\n' + SQL
return SQL
return ajax_response(response=SQL.strip('\n'))
except Exception as e:
return internal_server_error(errormsg=str(e))