Skip to content

Instantly share code, notes, and snippets.

@dayanand-sourcebits
Created August 13, 2012 13:04

Revisions

  1. dayanand-sourcebits created this gist Aug 13, 2012.
    29 changes: 29 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    SELECT 1 REGEXP ''
    Got error 'empty (sub)expression' from regexp

    SELECT 1 REGEXP '('
    Got error 'parentheses not balanced' from regexp

    SELECT 1 REGEXP '['
    Got error 'brackets ([ ]) not balanced' from regexp

    SELECT 1 REGEXP '\\'
    Got error 'trailing backslash (\)' from regexp

    SELECT 1 REGEXP '*'
    Got error 'repetition-operator operand invalid' from regexp

    SELECT 1 REGEXP 'a{1,1,1}'
    Got error 'invalid repetition count(s)' from regexp

    SELECT 1 REGEXP '[a-9]'
    Got error 'invalid character range' from regexp

    SELECT 1 REGEXP 'a{1,'
    Got error 'braces not balanced' from regexp

    SELECT 1 REGEXP '[[.ab.]]'
    Got error 'invalid collating element' from regexp

    SELECT 1 REGEXP '[[:ab:]]'
    Got error 'invalid character class' from regexp