Giter Site home page Giter Site logo

luvit-mysql's People

Contributors

kengonakajima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

luvit-mysql's Issues

Selecting when a field is null

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.

assert failure

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

Random Error

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?

not working with remote instance of mysql

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.

Connection pool feature.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.