Wrong results with regular expressions

Bug #690083 reported by Marcus Eriksson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Medium
Andrew Hutchings
7.0
Fix Released
Medium
Andrew Hutchings

Bug Description

The following result is wrong, should return 0 (it does in mysql)

drizzle> SELECT "123" REGEXP "[a-z]+";
+------------------------+
| "123" REGEXP "[a-z]+" |
+------------------------+
| 1 |
+------------------------+
1 row in set (0 sec)

drizzle> select version();
+--------------+
| version() |
+--------------+
| 2010.12.1993 |
+--------------+
1 row in set (0 sec)

Related branches

Changed in drizzle:
assignee: nobody → Andrew Hutchings (linuxjedi)
Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

this is because regex.cc is using "123" for the pattern and the match.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.