code: def __execute_text(self, query, **replacements):
          
  
          # We've had persistent and long-term issues where we can't access tables 
          # from another client because they're locked, as well as getting the 
          # "gone away" error quite frequenctly. Per the documentation, apparently 
          # it is common to -not- reuse the same session from request to request,
          # and we believe this to be the problem. Hopefully it's fixed, now.
          #
          # REF: http://docs.sqlalchemy.org/en/rel_0_9/orm/session.html#when-do-i-construct-a-session-when-do-i-commit-it-and-when-do-i-close-it
          session = self.__get_session()
          
          try:
              records = session.execute(query, replacements)
          except:
              _LOGGER.exception("Query failure:\n%s", query)
  
              raise
  
          # Verifying that we have a realized list of results before we commit 
          # the transaction.
  
          try:
              records = list(records)
          finally:
              session.commit()
  
          for record in records:
              yield dict(record)
docs: This is an older interface that should now only be used by call(), 
          above.