mwild1 / luadbi

Multi-backend SQL database library for Lua
MIT License
38 stars 14 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I believe this is fixed as of rev 3c7b93e27f43.

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