amberframework / granite

ORM Model with Adapters for mysql, pg, sqlite in the Crystal Language.
MIT License
297 stars 87 forks source link

Close result set at the end of test in passthrough_spec.cr #489

Closed stufro closed 1 year ago

stufro commented 1 year ago

This fixes an issue when running against postgres Expected PQ::Frame::ParseComplete but got PQ::Frame::ReadyForQuery

The offending spec was: spec/granite/querying/passthrough_spec.cr Anything that ran after this spec would throw the above error.

Simply closing the result set before moving on fixed the errors.

Co-authored-by: @jphaward jphaward@gmail.com