diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 21:39:05 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 21:39:05 +0000 |
| commit | ea9cd5421382c047e2cc140bd6736b54ba660793 (patch) | |
| tree | a5706af41254e7faf9f305b7683c487796d4a8d8 /django/db/models/sql | |
| parent | d29c457ad108ddc52e990b582b36cacc5eb0bb68 (diff) | |
queryset-refactor: Merged to [6198]
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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: |
