The extra sync call previously added was only needed for prepared statements, and was being called in all cases instead, resulting in receiving two readyForQuery messages.
This PR also has the sync only sent for server errors now, and handles all internal driver errors by setting the readyForQuery flag instead.
The extra sync call previously added was only needed for prepared statements, and was being called in all cases instead, resulting in receiving two readyForQuery messages.
This PR also has the sync only sent for server errors now, and handles all internal driver errors by setting the readyForQuery flag instead.