(self)
| 58 | return value |
| 59 | |
| 60 | def checkDbms(self): |
| 61 | if not conf.extensiveFp and Backend.isDbmsWithin(FRONTBASE_ALIASES): |
| 62 | setDbms(DBMS.FRONTBASE) |
| 63 | return True |
| 64 | |
| 65 | infoMsg = "testing %s" % DBMS.FRONTBASE |
| 66 | logger.info(infoMsg) |
| 67 | |
| 68 | result = inject.checkBooleanExpression("(SELECT degradedTransactions FROM INFORMATION_SCHEMA.IO_STATISTICS)>=0") |
| 69 | |
| 70 | if result: |
| 71 | infoMsg = "confirming %s" % DBMS.FRONTBASE |
| 72 | logger.info(infoMsg) |
| 73 | |
| 74 | result = inject.checkBooleanExpression("(SELECT TOP (0,1) file_version FROM INFORMATION_SCHEMA.FRAGMENTATION)>=0") |
| 75 | |
| 76 | if not result: |
| 77 | warnMsg = "the back-end DBMS is not %s" % DBMS.FRONTBASE |
| 78 | logger.warning(warnMsg) |
| 79 | |
| 80 | return False |
| 81 | |
| 82 | setDbms(DBMS.FRONTBASE) |
| 83 | |
| 84 | return True |
| 85 | else: |
| 86 | warnMsg = "the back-end DBMS is not %s" % DBMS.FRONTBASE |
| 87 | logger.warning(warnMsg) |
| 88 | |
| 89 | return False |
nothing calls this directly
no test coverage detected