From 42438f6c930e7fb953a0d7ca938492a4cf643125 Mon Sep 17 00:00:00 2001 From: macbre Date: Mon, 15 Jan 2018 08:47:26 +0000 Subject: [PATCH] get_table_schema: cast to str --- indexdigest/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexdigest/database.py b/indexdigest/database.py index 22115bf1..66789df7 100644 --- a/indexdigest/database.py +++ b/indexdigest/database.py @@ -238,7 +238,7 @@ def get_table_schema(self, table_name): :rtype: str """ # @see https://dev.mysql.com/doc/refman/5.7/en/show-create-table.html - return self.query_row('SHOW CREATE TABLE {}'.format(table_name))[1] + return str(self.query_row('SHOW CREATE TABLE {}'.format(table_name))[1]) def _get_information_schema_where(self, table_name): """