We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5be00e commit c2d5ea5Copy full SHA for c2d5ea5
lib/myxql/protocol/types.ex
@@ -70,7 +70,7 @@ defmodule MyXQL.Protocol.Types do
70
71
def take_string_nul(""), do: {nil, ""}
72
73
- def take_string_nul(binary) when is_binary(binary) do
+ def take_string_nul(binary) do
74
[string, rest] = :binary.split(binary, <<0>>)
75
{string, rest}
76
end
0 commit comments