Ticket #4712: regex-field-lookups-oracle-docfix.patch

File regex-field-lookups-oracle-docfix.patch, 1.0 KB (added by Tom Tobin <korpios@…>, 8 years ago)

docfix for Oracle support in regex field lookups

  • docs/db-api.txt

    diff -r f270d4f63583 docs/db-api.txt
    a b SQL equivalents:: 
    11891189
    11901190    SELECT ... WHERE title REGEXP BINARY '^(An?|The) +'; -- MySQL
    11911191
     1192    SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'c'); -- Oracle
     1193
    11921194    SELECT ... WHERE title ~ '^(An?|The) +'; -- PostgreSQL
    11931195
    11941196    SELECT ... WHERE title REGEXP '^(An?|The) +'; -- sqlite
    11951197
    11961198Using raw strings for passing in the regular expression syntax is recommended.
    11971199
    1198 Regular expression matching is not supported on the ``ado_mssql`` and
    1199 ``oracle`` backends; these will raise a ``NotImplementedError``.
     1200Regular expression matching is not supported on the ``ado_mssql`` backend; it
     1201will raise a ``NotImplementedError``.
    12001202
    12011203iregex
    12021204~~~~~~
    SQL equivalents:: 
    12101212SQL equivalents::
    12111213
    12121214    SELECT ... WHERE title REGEXP '^(an?|the) +'; -- MySQL
     1215
     1216    SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'i'); -- Oracle
    12131217
    12141218    SELECT ... WHERE title ~* '^(an?|the) +'; -- PostgreSQL
    12151219
Back to Top