Loading src/common/mixins/mssql.py +0 −3 Original line number Diff line number Diff line Loading @@ -31,12 +31,9 @@ class MSSQLMixin(): user=self.connection_info['dbUser'], password=self.connection_info['dbPassword'], host=self.connection_info['dbHost']) #connect_timeout=self.connection_info['dbTimeout']) #application_name='ongpy') self.logger.debug('Successfully opened database connection') self.cursor = self.connection.cursor() self.logger.debug('Successfully created database cursor') # self.cur.execute("SET search_path TO covidb;") return True except pymssql.OperationalError as e: self.logger.error(f'Database error: {e}') Loading Loading
src/common/mixins/mssql.py +0 −3 Original line number Diff line number Diff line Loading @@ -31,12 +31,9 @@ class MSSQLMixin(): user=self.connection_info['dbUser'], password=self.connection_info['dbPassword'], host=self.connection_info['dbHost']) #connect_timeout=self.connection_info['dbTimeout']) #application_name='ongpy') self.logger.debug('Successfully opened database connection') self.cursor = self.connection.cursor() self.logger.debug('Successfully created database cursor') # self.cur.execute("SET search_path TO covidb;") return True except pymssql.OperationalError as e: self.logger.error(f'Database error: {e}') Loading