ClickHouse / ClickHouse/clickhouse-java
[JDBC-V2] Make `DatabaseMetaDataImpl` use `PreparedStatement`.
Open
area:jdbc-metadata
jdbc-v2
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 636
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 28
Description
## Description
There are many places in `DatabaseMetaDataImpl` that construct a dynamic query. It is wrong because leads to a security issue.
- All queries should use `PreparedStatement`
- Where is it no possible - should be reviewed and needed escaping should be added
Contributor guide
Assessment
This issue has not been assessed yet.