Bug #32088 array offset in tutorial-inject.lua
Submitted: 4 Nov 2007 15:44 Modified: 24 Jul 2008 7:37
Reporter: Scott Noyes Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Proxy: Scripts Severity:S3 (Non-critical)
Version:0.6.0 OS:Windows
Assigned to: Jan Kneschke CPU Architecture:Any

[4 Nov 2007 15:44] Scott Noyes
Description:
Line 68 of examples\tutorial-inject.lua references array offset 0. It should be 1. This causes an error attempting to concatenate nil.

(read_query_result) examples\tutorial-inject.lua:68: attempt to concatenate field '?' (a nil value)

How to repeat:
Run Proxy with mysql-proxy-0.6.0-win32-x86\examples/tutorial-inject.lua

Suggested fix:
print("injected query returned: " .. row[0])
should be
print("injected query returned: " .. row[1])
[13 Nov 2007 10:33] Jan Kneschke
fixed in [311]

Will be part of 0.7.0
[3 Apr 2008 5:26] Sveta Smirnova
Bug #35782 was marked as duplicate of this one.
[24 Jul 2008 7:37] MC Brown
No documentation needed