bharos opened a new pull request, #15037:
URL: https://github.com/apache/gravitino/pull/15037

   ### What changes were proposed in this pull request?
   
   Run the database existence query in `JdbcDatabaseOperations#exist` as a 
`PreparedStatement` with the database name bound as a parameter. The 
PostgreSQL, Hologres and ClickHouse overrides now return parameterized queries 
too.
   
   ### Why are the changes needed?
   
   Bind the name instead of formatting it into the SQL string, and drop the 
per-dialect quoting code.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added a unit test in `TestJdbcDatabaseOperations` and updated the ClickHouse 
and PostgreSQL SQL-generation tests.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to