Moves the code from Conn.language and Stmt.exec into one common function in Conn.genericResults, as both follow the same principles.
To catch DonePackages and its equivalents DoneInProcPackage and DoneProcPackage the types are defined using alias declarations rather than embedding DonePackage.
This means that for all intents and purposes Go won't differentiate between these three package types. As far as I can see these three types are mainly informational and don't affect the flow of TDS itself so it should be fine.
Description
Moves the code from
Conn.language
andStmt.exec
into one common function inConn.genericResults
, as both follow the same principles.To catch DonePackages and its equivalents DoneInProcPackage and DoneProcPackage the types are defined using alias declarations rather than embedding DonePackage. This means that for all intents and purposes Go won't differentiate between these three package types. As far as I can see these three types are mainly informational and don't affect the flow of TDS itself so it should be fine.
How was the patch tested?
make integration-go
.