SAP / go-ase

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

Consume all packages until DonePackage{Status: TDS_DONE_FINAL} if an error occcurs #136

Closed ntnn closed 4 years ago

ntnn commented 4 years ago

Description

Callers of Channel.NextPackageUntil had to include workarounds to consume all packages for their data stream. As a previous PR now ensures that a DonePackage{TDS_DONE_FINAL} finishes any given data stream the function itself can now guarantee that all packages are consumed if an error occurs. This made it possible to clean up and reuse the code.

Related issues

Link any related issues here.

Tests