You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/22 14:25:36 UTC
[GitHub] [shardingsphere] TeslaCN commented on issue #22345: Testing grafana + shardingsphere + openGauss, grafana setup successfully, but execute ParseInt Error when logging in.
TeslaCN commented on issue #22345:
URL: https://github.com/apache/shardingsphere/issues/22345#issuecomment-1323759687
This could be reproduced by JDBC.
```sql
create table t (id serial primary key, val varchar not null);
```
```java
try (Connection connection = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:55432/postgres?prepareThreshold=1", "postgres", "postgres")) {
try (PreparedStatement preparedStatement = connection.prepareStatement("insert into t (val) values (?) returning id")) {
ResultSetMetaData metaData = preparedStatement.getMetaData();
metaData.getColumnName(1);
}
}
```
```
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.sql.ResultSetMetaData.getColumnLabel(int)" because "metaData" is null
```
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org