Ticket #4712: regex-field-lookups-oracle-docfix.patch
| File regex-field-lookups-oracle-docfix.patch, 1.0 kB (added by Tom Tobin <korpios@korpios.com>, 1 year ago) |
|---|
-
a/docs/db-api.txt
old new 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`` and1199 ``oracle`` backends; thesewill 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 ~~~~~~ … … 1210 1212 SQL equivalents:: 1211 1213 1212 1214 SELECT ... WHERE title REGEXP '^(an?|the) +'; -- MySQL 1215 1216 SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'i'); -- Oracle 1213 1217 1214 1218 SELECT ... WHERE title ~* '^(an?|the) +'; -- PostgreSQL 1215 1219
