lecosson / assql

Automatically exported from code.google.com/p/assql
0 stars 0 forks source link

Missing assignment to variable #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a parametrized sql and add a string parameter with '\\'.
2. Throws SQL error

What is the expected output? What do you see instead?
Escaping the string correctly.

Please provide any additional information below.
File: asSQL_PureAS3/ src/ com/ maclema/ mysql/ Mysql.as     
Line: 110:   str.replace("\\", "\\"+"\\");

should be:   str = str.replace("\\", "\\"+"\\");
as the resst of the replaces!

Original issue reported on code.google.com by rossi...@gmail.com on 23 Nov 2013 at 5:46

GoogleCodeExporter commented 9 years ago
Even more, String.replace only replaces the FIST occurence!!! That's why we use 
String.split('replace from').join('replace to');
To replace all occurences!

Original comment by rossi...@gmail.com on 23 Nov 2013 at 5:49