(self, name)
| 389 | return value.read() |
| 390 | |
| 391 | def quote_name(self, name): |
| 392 | # SQL92 requires delimited (quoted) names to be case-sensitive. When |
| 393 | # not quoted, Oracle has case-insensitive behavior for identifiers, but |
| 394 | # always defaults to uppercase. |
| 395 | # We simplify things by making Oracle identifiers always uppercase. |
| 396 | if not name.startswith('"') and not name.endswith('"'): |
| 397 | name = '"%s"' % truncate_name(name, self.max_name_length()) |
| 398 | # Oracle puts the query text into a (query % args) construct, so % |
| 399 | # signs in names need to be escaped. The '%%' will be collapsed back to |
| 400 | # '%' at that stage so we aren't really making the name longer here. |
| 401 | name = name.replace("%", "%%") |
| 402 | return name.upper() |
| 403 | |
| 404 | def regex_lookup(self, lookup_type): |
| 405 | if lookup_type == "regex": |
no test coverage detected