Skip to content

Commit

Permalink
Mark return value of execute prepared statement as discardable (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetodream authored Oct 21, 2024
1 parent ad98697 commit 9c65ded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/OracleNIO/Connection/OracleConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ extension OracleConnection {
/// - file: The file, the statement was started in. Used for better error reporting.
/// - line: The line, the statement was started in. Used for better error reporting.
/// - Returns: An async sequence of `Row`s. The result sequence can be discarded if the statement has no result.
@discardableResult
public func execute<Statement: OraclePreparedStatement, Row>(
_ statement: Statement,
options: StatementOptions = .init(),
Expand Down

0 comments on commit 9c65ded

Please sign in to comment.