diff options
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/where.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py index 527ce833fc..c2215105c3 100644 --- a/django/db/models/sql/where.py +++ b/django/db/models/sql/where.py @@ -131,6 +131,8 @@ class WhereNode(tree.Node): elif lookup_type in ('regex', 'iregex'): # FIXME: Factor this out in to conn.ops if settings.DATABASE_ENGINE == 'oracle': + if connection.oracle_version and connection.oracle_version <= 9: + raise NotImplementedError("Regexes are not supported in Oracle before version 10g.") if lookup_type == 'regex': match_option = 'c' else: |
