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

pull/3/head
Harshal Dhumal 2016-06-03 15:24:38 +05:30 committed by Ashesh Vashi
parent 40ab0b7c88
commit ab9f63d960
1 changed files with 1 additions and 1 deletions

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))