Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SELECT does not return?

See original GitHub issue

Current master 13d68525e75e287e083e77dc4b4ae36279ae4acb does not return data from SELECTs.

Running FXServer with ONLY the mysql-async resource started and with example.lua enabled yields this failure.

[] [C: 0ms, Q: 0ms, R: 1ms] SELECT "hello1" as world {=}
Error running system event handling function for resource mysql-async: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: example.lua:59: attempt to index a nil value (field '?')
stack traceback:
        example.lua:59: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:124: in function <citizen:/scripting/lua/scheduler.lua:123>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:39: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:123: in function <citizen:/scripting/lua/scheduler.lua:92>
        [C]: in function 'coroutine.resume'
        citizen:/scripting/lua/scheduler.lua:33: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:123: in function <citizen:/scripting/lua/scheduler.lua:92>
hitch warning: frame time of 438 milliseconds

This can be replicated using EssentialMode 4 + esplugin_mysql, and fully-custom code, where character selection tends to explode.

Downgrading to does not exhibit this problem.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

justcfx2ucommented, Aug 18, 2017

He is. Use beta6 until this is resolved.

Herb4t-commented, Aug 19, 2017

Yup, tell you if something wrong 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is select() not returning in my code? - Stack Overflow
I want to connect those multiple clients to the server using the select and FD_Set functions. Once the client connects to the server,...
Read more >
SQL SELECT does not return all values - NI Community
i try to select values from my database. My problem is, i do not get all values from a few tables. i've seen...
Read more >
Select statement does not return records even data exists
Select statement does not return records even data exists. Suggested Answer. Hi ,. I want to fetch the results below query. select sum(SalesBalance) ......
Read more >
Why does my SELECT query not return null values? [duplicate]
This happens because col IN (1,null) returns TRUE if col=1 , and NULL otherwise (i.e. it can never return FALSE ). Since NOT...
Read more >
does not return the expected value in a select query.
The wildcards (% and _) for the SELECT statement on strings do not appear to work. A SELECT * from tablename where name='ja%'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found