Yes, and most DBMS's are full of historical mistakes.
In a sane world, statements outside `BEGIN` would be an unconditional error.
In a sane world, statements outside `BEGIN` would be an unconditional error.
In any case, that's a subjective opinion on database design, not a bug. Anyway it's fairly tangential to the client library bug described up-thread.