You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently affected_row_count method is available for direct query (Allocated/Executed) and Prepared with HasResult but not for prepared query with NoResult.
If you run INSERT via prepared query you can't get the number of affected rows.
This looks all wrong to me though... Executed is an alias Allocated so you can't distinguish based on this on type system level. Also Prepared has no concept of Executed so you can only work with HasResult/NoResult on type system level. Ideally you could add another type parameter and have two pairs Direct/Prepared and Allocated/Executed so that you can implement affected_row_count to any type that is Executed and change Executed to Allocated with close_cursor method.
The text was updated successfully, but these errors were encountered:
Currently
affected_row_count
method is available for direct query (Allocated
/Executed
) andPrepared
withHasResult
but not for prepared query withNoResult
.If you run INSERT via prepared query you can't get the number of affected rows.
This looks all wrong to me though...
Executed
is an aliasAllocated
so you can't distinguish based on this on type system level. AlsoPrepared
has no concept ofExecuted
so you can only work withHasResult
/NoResult
on type system level. Ideally you could add another type parameter and have two pairsDirect
/Prepared
andAllocated
/Executed
so that you can implementaffected_row_count
to any type that isExecuted
and changeExecuted
toAllocated
withclose_cursor
method.The text was updated successfully, but these errors were encountered: