Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored June 27, 2007

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  docs/db-api.txt
8  docs/db-api.txt
@@ -1189,14 +1189,16 @@ SQL equivalents::
1189 1189
 
1190 1190
     SELECT ... WHERE title REGEXP BINARY '^(An?|The) +'; -- MySQL
1191 1191
 
  1192
+    SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'c'); -- Oracle
  1193
+
1192 1194
     SELECT ... WHERE title ~ '^(An?|The) +'; -- PostgreSQL
1193 1195
 
1194 1196
     SELECT ... WHERE title REGEXP '^(An?|The) +'; -- sqlite
1195 1197
 
1196 1198
 Using raw strings for passing in the regular expression syntax is recommended.
1197 1199
 
1198  
-Regular expression matching is not supported on the ``ado_mssql`` and
1199  
-``oracle`` backends; these will raise a ``NotImplementedError``.
  1200
+Regular expression matching is not supported on the ``ado_mssql`` backend; it
  1201
+will raise a ``NotImplementedError``.
1200 1202
 
1201 1203
 iregex
1202 1204
 ~~~~~~
@@ -1211,6 +1213,8 @@ SQL equivalents::
1211 1213
 
1212 1214
     SELECT ... WHERE title REGEXP '^(an?|the) +'; -- MySQL
1213 1215
 
  1216
+    SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'i'); -- Oracle
  1217
+
1214 1218
     SELECT ... WHERE title ~* '^(an?|the) +'; -- PostgreSQL
1215 1219
 
1216 1220
     SELECT ... WHERE title REGEXP '(?i)^(an?|the) +'; -- sqlite

0 notes on commit a9807db

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