Open willruggiano opened 5 months ago
Hey, the issue is that the transaction creates multiple result sets - and we currently only support a single one (e.g. the last one), which you guessed is from update - and it produces "no results" result
Hey, the issue is that the transaction creates multiple result sets - and we currently only support a single one (e.g. the last one), which you guessed is from update - and it produces "no results" result
So... the example is a single UPDATE statement within a transaction. Does that still produce multiple result sets? Which would imply that you should never seen output from transaction blocks. Maybe I'm misunderstanding?
Oh, looks like I misunderstood. Well, then it looks like it's a bug.
It would be helpful to look at other database clients and see how they handle this.
Running just the UPDATE statement yields the expected output, e.g.
however when run within the transaction block (regardless whether you finish it off with a ROLLBACK or a COMMIT) yields:
It seems that SELECT statements still produce output when run within a transaction block, but UPDATE, INSERT and DELETE statements do not (they all produce the "No Results" output above).
I haven't tested SAVEPOINTs.