Home » Database » MDB2 » Bug #8256
mapNativeDatatype incorrect regular expresions
Details
| Submitted | 2006-07-20 09:42 UTC |
|---|---|
| From | ioz at ionosfera dot com |
| Assigned | quipo |
| Status | Closed |
| Package | MDB2 |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-07-20 09:42 UTC] ioz at ionosfera dot com
Description:
------------
In the mapNativeDatatype functions of Datatype libraries of most of the drivers, there are incorrect regular expressions when checking for the existence of 'is' or 'has' on the field names.
This preg_match:
preg_match('/^[is|has]/', $field['name'])
must be:
preg_match('/^(is|has)/', $field['name'])
This causes returning boolean values when it isn't.