Skip to content

Conversation

@vnayar
Copy link
Contributor

@vnayar vnayar commented Nov 1, 2024

If one attempts to run the following, a "not implemeneted" exception will be thrown:

auto statement = Connection.preparedStatement("Any SQL");
foreach (result; statement.executeQuery()) {
  ...
}

To avoid this, the unimplemented method "first()", which makes sure that the ResultSet is pointing at the first row, needs to be implemented. This is needed because foreach invokes ResultSetImpl.opApply(), which in turn invokes first().

@SingingBush SingingBush merged commit bb32951 into buggins:master Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants