SAP / go-ase

SAP ASE Database Client for Go
Apache License 2.0
25 stars 14 forks source link

Unify reading results for TDS_LANGUAGE and TDS_DYNAMIC{,2} #108

Closed ntnn closed 4 years ago

ntnn commented 4 years ago

Description

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.

How was the patch tested?

make integration-go.