Open dzhibas opened 11 years ago
import re
tests = ['`demo`.`test1`', 'demo.test1']
regz = ["`?(\w+)`?(?:\.`?(\w+)`?)?", "(\w+)(?:\.(\w+))?"]
for reg in regz:
print reg
for test in tests:
print test
parts = re.match(reg, test)
if parts:
print parts.groups()
else:
print (None, None)
_parse_object_name(qualified_name) in utilities/common/table.py does not expect quilified_name in quotes like
db
.name
.consequence is that mysqldbexport generates:
regexp:
fixes it for both cases with and without quotes
want a pull request with test?