StatementInvalid takes WrappedDatabaseException's place
Merge pull request #10372 from jeremy/statement-invalid-wraps-underlying-exception

StatementInvalid takes WrappedDatabaseException's place