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 2019/09/09 07:36:12 UTC
[GitHub] [incubator-shardingsphere] kalvan2019 opened a new issue #3006:
4.0.0-RC2 ResultSetMetaData data was lost
kalvan2019 opened a new issue #3006: 4.0.0-RC2 ResultSetMetaData data was lost
URL: https://github.com/apache/incubator-shardingsphere/issues/3006
### version 4.0.0-RC2
### question
***codes***
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.EncryptResultSetMetaData#getLogicColumn
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.ShardingResultSetMetaData#getLogicColumn
```
private String getLogicColumn(final String actualColumn) throws SQLException {
for (Entry<String, String> entry : logicAndActualColumns.entrySet()) {
if (entry.getValue().contains(actualColumn)) {
return entry.getKey();
}
}
throw new SQLException(String.format("Can not get logic column by %s.", actualColumn));
}
```
```
entry.getValue().contains(actualColumn)
```
***desc***
When there are two fields in a table, one field is the content of another field, such as
address
certificate_address
It is possible to match the columnName of certificate_address when looking up the columnName of the field address again, which results in the loss of the address field in the result set.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services