(self)
| 92 | return value |
| 93 | |
| 94 | def checkDbms(self): |
| 95 | if not conf.extensiveFp and Backend.isDbmsWithin(MAXDB_ALIASES): |
| 96 | setDbms(DBMS.MAXDB) |
| 97 | |
| 98 | self.getBanner() |
| 99 | |
| 100 | return True |
| 101 | |
| 102 | infoMsg = "testing %s" % DBMS.MAXDB |
| 103 | logger.info(infoMsg) |
| 104 | |
| 105 | result = inject.checkBooleanExpression("ALPHA(NULL) IS NULL") |
| 106 | |
| 107 | if result: |
| 108 | infoMsg = "confirming %s" % DBMS.MAXDB |
| 109 | logger.info(infoMsg) |
| 110 | |
| 111 | result = inject.checkBooleanExpression("MAPCHAR(NULL,1,DEFAULTMAP) IS NULL") |
| 112 | |
| 113 | if not result: |
| 114 | warnMsg = "the back-end DBMS is not %s" % DBMS.MAXDB |
| 115 | logger.warning(warnMsg) |
| 116 | |
| 117 | return False |
| 118 | |
| 119 | setDbms(DBMS.MAXDB) |
| 120 | |
| 121 | self.getBanner() |
| 122 | |
| 123 | return True |
| 124 | else: |
| 125 | warnMsg = "the back-end DBMS is not %s" % DBMS.MAXDB |
| 126 | logger.warning(warnMsg) |
| 127 | |
| 128 | return False |
| 129 | |
| 130 | def forceDbmsEnum(self): |
| 131 | if conf.db: |
nothing calls this directly
no test coverage detected