|Subject:||column_info broken for set values that contain parentheses|
I ran across a case where I was calling column_info on a table where set values had parentheses. The column_info code was not returning the expected set values. It appeared to have ignored everything in the list of set values after the first closing parenthesis it found. After some digging I found this regex is the culprit: $type =~ m/^(\w+)(?:\((.*?)\))?\s*(.*)/; I've not tested thoroughly, but I suspect something like this would work better: $type = substr($type, 0, rindex($type, ')')+1); $type =~ m/^(\w+)(?:\((.*)\))/; I found this bug in version 4.005 but 4.013 also appears to have the same regex.