You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "JiriOndrusek (via GitHub)" <gi...@apache.org> on 2023/10/06 11:17:04 UTC

[I] Sql: Test SqlTest#testDefaultErrorCode fails with mssql [camel-quarkus]

JiriOndrusek opened a new issue, #5411:
URL: https://github.com/apache/camel-quarkus/issues/5411

   ### Bug description
   
   When using mssql, the exception `com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'NOT_EXIST` is not translated by `SQLExceptionSubclassTranslator.doTranslate` (part of spring-jdbc dependency)
   
   For default h2 db, the exception `org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "NOT_EXIST" not found; SQL statement:
   select * from NOT_EXIST [42102-220] ...` is translated via `SQLExceptionSubclassTranslator.doTranslate` into `BadSqlGrammarException`
   
   The test is asserting that the exception starts with `org.springframework.jdbc.BadSqlGrammarException`, so the test fails for mssql. The assertion has to be fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Sql: Test SqlTest#testDefaultErrorCode fails with mssql [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton closed issue #5411: Sql: Test SqlTest#testDefaultErrorCode fails with mssql
URL: https://github.com/apache/camel-quarkus/issues/5411


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org