Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

parseInt in limit and offset to ensure not fail in mysql.query #17

Closed

Conversation

jarvisaoieong
Copy link
Contributor

Excellent api syntax in the new version.

because of the node-mysql bug, we cant use string in limit and offset.

mysql.query "select * from users limit ?", "1", handler
#  it will fail because the limit and offset only support integer type in node-mysql

so it is convenient for mohair to fix this problem by adding parseInt

@snd
Copy link
Owner

snd commented Oct 8, 2012

solved in version 0.8.2

@snd snd closed this Oct 8, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants