Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #4712: added mention of Oracle in docs from [5555]. Thanks, Tom.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a9807db5528637c86f3912b919d13223b6346bf2 1 parent 24512a7
@jacobian jacobian authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 docs/db-api.txt
View
8 docs/db-api.txt
@@ -1189,14 +1189,16 @@ SQL equivalents::
SELECT ... WHERE title REGEXP BINARY '^(An?|The) +'; -- MySQL
+ SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'c'); -- Oracle
+
SELECT ... WHERE title ~ '^(An?|The) +'; -- PostgreSQL
SELECT ... WHERE title REGEXP '^(An?|The) +'; -- sqlite
Using raw strings for passing in the regular expression syntax is recommended.
-Regular expression matching is not supported on the ``ado_mssql`` and
-``oracle`` backends; these will raise a ``NotImplementedError``.
+Regular expression matching is not supported on the ``ado_mssql`` backend; it
+will raise a ``NotImplementedError``.
iregex
~~~~~~
@@ -1211,6 +1213,8 @@ SQL equivalents::
SELECT ... WHERE title REGEXP '^(an?|the) +'; -- MySQL
+ SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'i'); -- Oracle
+
SELECT ... WHERE title ~* '^(an?|the) +'; -- PostgreSQL
SELECT ... WHERE title REGEXP '(?i)^(an?|the) +'; -- sqlite

0 comments on commit a9807db

Please sign in to comment.
Something went wrong with that request. Please try again.