From 5a979702e2b679043a174127e18314573c05901e Mon Sep 17 00:00:00 2001 From: joamag Date: Fri, 10 Apr 2015 12:23:04 +0100 Subject: [PATCH] new interface suport --- data/src/entity_mysql/system.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/src/entity_mysql/system.py b/data/src/entity_mysql/system.py index 5cf4ae4f93..32e0c557b1 100644 --- a/data/src/entity_mysql/system.py +++ b/data/src/entity_mysql/system.py @@ -362,7 +362,7 @@ def execute_query(self, query, cursor = None, retries = 3): # gathers the name of the data base for which the query # is going to be executed (helps with debug operations) - database = _connection.database + database = _connection.get_database() # encodes the provided query into the appropriate # representation for mysql execution @@ -895,6 +895,9 @@ def is_valid_transaction(self): return is_valid_transaction + def get_database(self): + return self.database + def get_database_encoding(self): # checks if the current object already contains the encoding # attribute set for such cases the retrieval is immediate