(expression, expressionFields, expressionFieldsList, payload, num=None, charsetType=None, firstChar=None, lastChar=None, dump=False)
| 133 | return value |
| 134 | |
| 135 | def _goInferenceFields(expression, expressionFields, expressionFieldsList, payload, num=None, charsetType=None, firstChar=None, lastChar=None, dump=False): |
| 136 | outputs = [] |
| 137 | origExpr = None |
| 138 | |
| 139 | for field in expressionFieldsList: |
| 140 | output = None |
| 141 | |
| 142 | if field.startswith("ROWNUM "): |
| 143 | continue |
| 144 | |
| 145 | if isinstance(num, int): |
| 146 | origExpr = expression |
| 147 | expression = agent.limitQuery(num, expression, field, expressionFieldsList[0]) |
| 148 | |
| 149 | if "ROWNUM" in expressionFieldsList: |
| 150 | expressionReplaced = expression |
| 151 | else: |
| 152 | expressionReplaced = expression.replace(expressionFields, field, 1) |
| 153 | |
| 154 | output = _goInference(payload, expressionReplaced, charsetType, firstChar, lastChar, dump, field) |
| 155 | |
| 156 | if isinstance(num, int): |
| 157 | expression = origExpr |
| 158 | |
| 159 | outputs.append(output) |
| 160 | |
| 161 | return outputs |
| 162 | |
| 163 | def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, charsetType=None, firstChar=None, lastChar=None, dump=False): |
| 164 | """ |
no test coverage detected
searching dependent graphs…