Closed ghost closed 10 years ago
Sorry LastInsertID() always return -1 (modified from return 0) beause Firebird can't return rowid
RowAffected() now return correct value (fixed)
Thanks. Firebird not returning the last insert id, is that a problem with protocol itself? Because this seems like it could potentially be a pretty big issue.
OTH "insert .. returning ... "statement can get optional row value like select
https://github.com/nakagami/firebirdsql/blob/master/driver_test.go#L126
Regards
Aah. excellent. Thanks!
It seems that
Statement.Exec
returns an emptyResult
instance with theLastInsertId
andRowsAffected
set explicitly to 0. Is there any chance to make this work with theRETURNING
statement? E.g.: