r'\s*(?:UPDATE|INSERT|CREATE|DELETE|DROP|ALTER|LOAD +DATA|REPLACE)',
re.I | re.UNICODE)
SELECT_RE = re.compile(
- r'\s*(?:SELECT|SHOW|DESCRIBE|XA RECOVER)',
+ r'\s*(?:SELECT|SHOW|DESCRIBE|XA RECOVER|CALL)',
re.I | re.UNICODE)
SET_RE = re.compile(
r'\s*SET\s+(?:(?:GLOBAL|SESSION)\s+)?\w',
"When compiling mapper %s, expression %r failed to locate a name (%r). "
"If this is a class name, consider adding this relation() to the %r "
"class after both dependent classes have been defined." % (
- prop.parent, arg, n.message, cls))
+ prop.parent, arg, n.args[0], cls))
return return_cls
if isinstance(prop, PropertyLoader):