trilogy-libraries / trilogy

Trilogy is a client library for MySQL-compatible database servers, designed for performance, flexibility, and ease of embedding.
MIT License
697 stars 68 forks source link

Don't hardcode sequence number #164

Closed eileencodes closed 5 months ago

eileencodes commented 5 months ago

When we want to reset the sequence number we pass 0, otherwise we can get the sequence number off the packet parser rather than checking if ssl is enabled and then hardcoding sequences.

Prerequisite for https://github.com/trilogy-libraries/trilogy/issues/26 since we don't want to hardcode values for caching sha2 password.