Eonblast / Emysql

Erlang MySQL driver
http://eonblast.github.com/Emysql
Other
434 stars 208 forks source link

fix - 'asciiz/1' function of 'emysql_auth' module was fixed #193

Open Shpaky opened 3 years ago

Shpaky commented 3 years ago

'asciiz/1' function of 'emysql_auth' module was fixed.

https://github.com/Eonblast/Emysql/blob/c7e2103f8b737667f0128802e8de2f0d5ed2fa5c/src/emysql_auth.erl#L91 here <<>> expects as second returning value, but it will be never received since binary:split/2 function doesn`t complement returning value.

Example:

1> binary:split(<<1,2,3,4,5,6,7,8,9,10,11,12,13>>,<<0>>). [<<1,2,3,4,5,6,7,8,9,10,11,12,13>>]