kengonakajima / luvit-mysql Goto Github PK
View Code? Open in Web Editor NEWLuvit port of node-mysql
License: Apache License 2.0
Luvit port of node-mysql
License: Apache License 2.0
I seem to hit a strange bug, when I do a select on a table where a datetime field is set to 0 (0000-00-00 00:00:00) I get a strange error, which can be seen there: http://pastebin.com/QewNVuVQ
There seems to be an issue with selecting rows when a field is null, even though I'm not mentioning the field in the query at all.
Here's an example:
SELECT * FROM accounts WHERE username='JohnDoe'
This won't return any rows if the field verified
on the table (or any other) is set to null, if I set it to any other value apart from null, it returns the row normally.
Hi Kengo,
thanks for this great project ...
I just set an app with luvit-mysql and got stuck in error :
"state:9 i:33 c:2 recvd:29 len:78 index:0 lcl:nil lcsl:nil"
"state:9 i:34 c:0 recvd:30 len:78 index:1 lcl:nil lcsl:nil"
"state:10 i:35 c:15 recvd:31 len:78 index:0 lcl:nil lcsl:nil"
/opt/foo/modules/luvit-mysql/parser.lua:275: nil
stack traceback:
[C]: in function 'assert'
/opt/foo/modules/luvit-mysql/parser.lua:275: in function 'receive'
/opt/foo/modules/luvit-mysql/client.lua:125: in function 'callback'
/usr/local/lib/luvit/core.lua:213: in function 'emit'
/usr/local/lib/luvit/net.lua:156: in function 'callback'
then I commented the line and the error is gone, I guess it is some incompatibility with the new version of mysql or with Percona ...
details:
(MySQL Percona-Server-5.5.28-rel29.2)
mysql --version
mysql Ver 14.14 Distrib 5.5.28, for Linux (x86_64) using readline 5.1
luvit --version
0.6.0-16-g0f2bc30
Uncaught Error: C:/Users/Ben/justauserbot/mysql/client.lua:98: attempt to index local 'task' (a nil value) stack traceback: C:/Users/Ben/justauserbot/mysql/client.lua:98: in function 'f' C:/Users/Ben/justauserbot/mysql/client.lua:124: in function 'handler' [string "bundle:deps/core.lua"]:248: in function 'emit' [string "bundle:deps/stream/stream_readable.lua"]:992: in function <[str ing "bundle:deps/stream/stream_readable.lua"]:985> [string "bundle:deps/timer.lua"]:123: in function <[string "bundle:deps/ timer.lua"]:119> [C]: in function 'run' [string "bundle:init.lua"]:52: in function <[string "bundle:init.lua"]:4 7> [C]: in function 'xpcall' [string "bundle:init.lua"]:47: in function 'fn' [string "bundle:deps/require.lua"]:310: in function <[string "bundle:dep s/require.lua"]:266>
I appear to be getting this error randomly without even querying anything, have you seen something simular before?
query.lua:77: attempt to index field 'field' (a nil value)
After some time, it produces the above error when running with remote instance of mysql.
But it works well with local instance of mysql.
It would be quite useful to have a connection pooling mechanism.
I'm not sure if we should perhaps look at porting node-pool or something similar.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.