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

fetch() on mysql returns expected output with trailing random characters #18

Closed
GoogleCodeExporter opened this issue Dec 23, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. local userSelect = assert(Server.db:prepare('SELECT user_id, password, 
username FROM user WHERE username = ?'))
2. userSelect:execute(currentusername);
3. local row = userSelect:fetch();

What is the expected output? What do you see instead?
The expected output is the md5hash for the user's password.
This hash is received successfully, but there often are (about half the time) 
trailing characters out of nowhere - this is most likely a allocation issue? 
The added strings are e.g.
</)
tion)
bin")
6g="b)

What version of the product are you using? On what operating system?
Lua 5.1.4, luadbi 0.5-1, luadbi-mysql 0.5-1, luasql-mysql 2.3.0-1


Please provide any additional information below.
If you need any further information please let me know!

Original issue reported on code.google.com by alexande...@gmail.com on 6 Mar 2013 at 9:24

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Sorry I forgot the OS:
Linux ubuntu 3.5.0-25-generic #39~precise1-Ubuntu SMP Tue Feb 26 00:11:13 UTC 
2013 i686 i686 i386 GNU/Linux
Ubuntu 12.04.2 LTS

Original comment by alexande...@gmail.com on 6 Mar 2013 at 9:42

@GoogleCodeExporter
Copy link
Author

Hi, thanks for the report!

I believe this may be fixed in the latest commits, but I'll keep the issue open 
until I've confirmed that.

Original comment by MWild1 on 26 Apr 2013 at 12:21

  • Added labels: Milestone-0.6

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I believe this is fixed as of rev 3c7b93e27f43.

Original comment by MWild1 on 29 Jul 2014 at 1:11

  • Changed state: Fixed

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

No branches or pull requests

1 participant