Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STATE_FIELD_DEFAULT implementation #8

Open
Be1zebub opened this issue Oct 19, 2023 · 0 comments
Open

STATE_FIELD_DEFAULT implementation #8

Be1zebub opened this issue Oct 19, 2023 · 0 comments

Comments

@Be1zebub
Copy link

Be1zebub commented Oct 19, 2023

i got this error

Uncaught Error: /home/app/deps/mysql/parser.lua:510: Parser.STATE_FIELD_DEFAULT                = 43,  TODO: only occurs for mysql_list_fields()
stack traceback:
        [C]: in function 'error'
        /home/app/deps/mysql/parser.lua:510: in function 'receive'
        /home/app/deps/mysql/client.lua:417: in function 'handler'
        [string "bundle:/deps/core.lua"]:248: in function 'emit'
        [string "bundle:/deps/stream/stream_readable.lua"]:172: in function 'push'
        [string "bundle:/deps/net.lua"]:122: in function <[string "bundle:/deps/net.lua"]:117>
        [C]: in function 'run'
        [string "bundle:/init.lua"]:55: in function <[string "bundle:/init.lua"]:47>
        [C]: in function 'xpcall'
        [string "bundle:/init.lua"]:47: in function 'fn'
        [string "bundle:deps/require.lua"]:310: in function <[string "bundle:deps/require.lua"]:266>

is there any chance to get update with implementation of this? (i see the latest commit is 11 years old, so you probably don't want to waste time on an dead project)
or at least please help me figure out how to solve it on my own and i will push a PR.

i didnt used mysql_list_fields() btw, seems like this state can happens in other cases

# grep -rn mysql_list_fields
deps/mysql/parser.lua:510:        error("Parser.STATE_FIELD_DEFAULT                = 43,  TODO: only occurs for mysql_list_fields()")

maybe its related to client:ping() - i just added client:ping() call in 60 seconds delay infinity timer (to make connection keep alive) & got this error i next day.
i got this error after it twice, rn replaced with client:query("SELECT 1;", function() end) - ill let you know if it gives a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant