Project

General

Profile

« Previous | Next » 

Revision 2995

sql_gen.py: concat(): Also preserve cast suffix

View differences:

lib/sql_gen.py
22 22
    '''Preserves version so that it won't be truncated off the string, leading
23 23
    to collisions.'''
24 24
    # Preserve version
25
    match = re.match(r'^(.*?)((?:(?:#\d+)?\)?)*(?:\.\w+)?)$', str_)
25
    match = re.match(r'^(.*?)((?:(?:#\d+)?\)?)*(?:\.\w+)?(?:::[\w ]+)*)$', str_)
26 26
    if match:
27 27
        str_, old_suffix = match.groups()
28 28
        suffix = old_suffix+suffix

Also available in: Unified diff