Skip to content

Commit

Permalink
feat: EXPOSED-220 Support multiple statements returning a result in e…
Browse files Browse the repository at this point in the history
…xec()

Fix Detekt issue.

Add to KDocs about unsupported databases.
  • Loading branch information
bog-walk committed Nov 22, 2023
1 parent d581da2 commit 93549c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ open class Transaction(
*
* **Note** `StatementType.MULTI` can be set to enable execution of multiple concatenated statements.
* However, if more than one [ResultSet] is generated, only the first will be used in the [transform] block.
* Multiple statements in a single execute is not supported by all databases and some may require setting
* a JDBC driver flag, like MySQL with `allowMultiQueries`. Please check the specific database documentation.
*
* @return The result of [transform] on the [ResultSet] generated by the statement execution,
* or `null` if no [ResultSet] was returned by the database.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import java.io.InputStream
import java.sql.PreparedStatement
import java.sql.ResultSet

@Suppress("TooManyFunctions")
interface PreparedStatementApi {

var fetchSize: Int?
Expand Down

0 comments on commit 93549c0

Please sign in to comment.