ceylon-sdk icon indicating copy to clipboard operation
ceylon-sdk copied to clipboard

Sql.execute() does not provide a way to invoke resultSet, updateCount or moreResults on the statement

Open ncorai opened this issue 12 years ago • 2 comments

Returning the Boolean is a bit useless then

ncorai avatar Dec 07 '13 02:12 ncorai

I suggest taking a Boolean retrieveResults parameter, in case the caller doesn't care about return values and thus there's no need to fetch them, and having a return type of Integer[]|Map<String, Object>[], based on the Boolean PreparedStatement.execute's return value.

ncorai avatar Dec 07 '13 18:12 ncorai

I don't think that execute(), now Statement() is the thing that should offer this functionality.

  • Insert() does now have it, and
  • I guess Call() needs it.

gavinking avatar Jan 07 '14 23:01 gavinking