(self, query)
| 47 | return None |
| 48 | |
| 49 | def execute(self, query): |
| 50 | retVal = False |
| 51 | |
| 52 | try: |
| 53 | self.cursor.execute(query) |
| 54 | retVal = True |
| 55 | except (prestodb.exceptions.OperationalError, prestodb.exceptions.ProgrammingError) as ex: |
| 56 | logger.log(logging.WARN if conf.dbmsHandler else logging.DEBUG, "(remote) %s" % getSafeExString(ex)) |
| 57 | except prestodb.exceptions.InternalError as ex: |
| 58 | raise SqlmapConnectionException(getSafeExString(ex)) |
| 59 | |
| 60 | self.connector.commit() |
| 61 | |
| 62 | return retVal |
| 63 | |
| 64 | def select(self, query): |
| 65 | retVal = None |
no test coverage detected