If correct values are passed as arguments to tx.QueryRow, everything is ok and the query is committed correctly.
If for some reason the query fails (eg if invalid arguments are passed), tx.QueryRow returns an error - thats normal. But after if I try to rollback the transaction - it also fails with an error message "op_return:0". The more frustrating is that each next call to DB.Begin() returns the same transaction.
I tried x86,x64 versions of Firebird 2.5, different ways to execute the query - via stored procedure; just a tx.Execute() without a returning clause.
I have the following table created:
Respectively in go:
tx.QueryRow
, everything is ok and the query is committed correctly.tx.QueryRow
returns an error - thats normal. But after if I try to rollback the transaction - it also fails with an error message"op_return:0"
. The more frustrating is that each next call toDB.Begin()
returns the same transaction.I tried x86,x64 versions of Firebird 2.5, different ways to execute the query - via stored procedure; just a
tx.Execute()
without a returning clause.