Moved those error throws to CompileError/InvalidRequestError.
[self.process(x) for x in insert_stmt._prefixes])
if not colparams and not self.dialect.supports_default_values and not self.dialect.supports_empty_insert:
- raise exc.NotSupportedError(
+ raise exc.CompileError(
"The version of %s you are using does not support empty inserts." % self.dialect.name)
elif not colparams and self.dialect.supports_default_values:
return (insert + " INTO %s DEFAULT VALUES" % (
def bind_processor(self, dialect):
def process(value):
- raise exc.NotSupportedError("Data type not supported", [value])
+ raise exc.InvalidRequestError("Data type not supported", [value])
return process
def get_col_spec(self):
- raise exc.NotSupportedError("Data type not supported")
+ raise exc.CompileError("Data type not supported")
class SybaseNumeric(sqltypes.Numeric):
def get_col_spec(self):
[self.process(x) for x in insert_stmt._prefixes])
if not colparams and not self.dialect.supports_default_values and not self.dialect.supports_empty_insert:
- raise exc.NotSupportedError(
+ raise exc.CompileError(
"The version of %s you are using does not support empty inserts." % self.dialect.name)
elif not colparams and self.dialect.supports_default_values:
return (insert + " INTO %s DEFAULT VALUES" % (