You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Masaki Yamakawa (Jira)" <ji...@apache.org> on 2020/08/11 00:16:00 UTC
[jira] [Created] (GEODE-8420) Throw AssertionError when
SQLException occurs in JdbcWriter
Masaki Yamakawa created GEODE-8420:
--------------------------------------
Summary: Throw AssertionError when SQLException occurs in JdbcWriter
Key: GEODE-8420
URL: https://issues.apache.org/jira/browse/GEODE-8420
Project: Geode
Issue Type: Improvement
Components: jdbc
Reporter: Masaki Yamakawa
When using JdbcWriter or JdbcAsyncWriter of Simple JDBC Connector, SQLException occurs if you set the character string exceeding 10 digits in the column defined as varchar(10) in RDB column.
However, JdbcWriter and JdbcAsyncWriter throws AssertionError.
This error is difficult to notice the problem, so I would like to change it to throw SQLException.
The cause is that the upsert of `org.apache.geode.connectors.jdbc.internal.SqlHandler#write` is considered.
There are cases in which SQLException is ignored during this consideration.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)