Project

General

Profile

« Previous | Next » 

Revision 2946

sql.py: run_query(): DuplicateException: Also match "column already exists" errors

View differences:

lib/sql.py
455 455
                col, type_ = match.groups()
456 456
                raise MissingCastException(type_, col, e)
457 457
            
458
            match = re.search(r'\b(\S+) "(.+?)" already exists', msg)
458
            match = re.search(r'\b(\S+) "(.+?)".*? already exists', msg)
459 459
            if match:
460 460
                type_, name = match.groups()
461 461
                raise DuplicateException(type_, name, e)

Also available in: Unified diff