amphp / mysql

An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.
Other
358 stars 63 forks source link

Fix selecting empty string #58

Closed brstgt closed 6 years ago

brstgt commented 6 years ago

57

brstgt commented 6 years ago

I am not 100% sure if this complies with MySQL protocol but it worked for me. In a resultset, 0x00 seems to stand for empty string, not as a packet status

bwoebi commented 6 years ago

I've fixed #57 with a slightly different fix (there shall not be false when decodeStringOff() decodes zero length strings - instead of special casing that here).

Cherry-picked the other commit though.

Thanks :-)

brstgt commented 6 years ago

Awesome, thanks!