Skip to content

Commit

Permalink
Add EXEC StatementType #390 #1249
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapac committed Jun 4, 2021
1 parent 3bbd27c commit e796b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ open class Transaction(private val transactionImpl: TransactionInterface) : User
return exec(object : Statement<T>(type, emptyList()) {
override fun PreparedStatementApi.executeInternal(transaction: Transaction): T? {
val result = when (type) {
StatementType.SELECT -> executeQuery()
StatementType.SELECT, StatementType.EXEC -> executeQuery()
else -> {
executeUpdate()
resultSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ enum class StatementGroup {
enum class StatementType(val group: StatementGroup) {
INSERT(StatementGroup.DML), UPDATE(StatementGroup.DML), DELETE(StatementGroup.DML), SELECT(StatementGroup.DML),
CREATE(StatementGroup.DDL), ALTER(StatementGroup.DDL), TRUNCATE(StatementGroup.DDL), DROP(StatementGroup.DDL),
GRANT(StatementGroup.DDL), OTHER(StatementGroup.DDL)
GRANT(StatementGroup.DDL), EXEC(StatementGroup.DML), OTHER(StatementGroup.DDL)
}

0 comments on commit e796b24

Please sign in to comment.