Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion relate/src/main/scala/com/lucidchart/relate/SqlQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ trait Sql extends CollectionsSql {
override def toString = parsedQuery

/**
* Calls [[PreparedStatement#toString]], which for many JDBC implementations is the SQL query after parameter
* Calls `toString` on [PreparedStatement][1], which for many JDBC implementations is the SQL query after parameter
* substitution. This is intended primarily for ad-hoc debugging.
*
* For more routine logging, consider other solutions, such as [[https://code.google.com/p/log4jdbc/ log4jdbc]].
*
* [1]: https://docs.oracle.com/en/java/javase/21/docs/api/java.sql/java/sql/PreparedStatement.html
*/
def statementString(implicit connection: Connection) = {
val stmt = normalStatement.stmt
Expand Down