Comment 1 for bug 1011538

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

We could write:

def unify_cons_text(txt):
    return re.sub('(::\w+)|\s', '', cons).lower()

But one thing annoys me, if a sql constraint defines explicitly a cast like ::numeric and is changed later, the constraint won't be re-created.