lecosson / assql

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

Error in Statment.as3 #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.When I exec SQL "select table1.name as 'Имя' from table1" where 'Имя' 
is in Russian utf8 or other language not English    
2.
3.

What is the expected output? What do you see instead?

returns only boxes not symbols

Please use labels and text to provide additional information.
Error in this code Statement.as3
....
 public function executeQuery(sqlString:String=null):MySqlToken

        {
.....................
                //parameters 
                if ( this.sql.indexOf("?") != -1 || this.sql.indexOf(":") ) {                   
                        Logger.info(this, "executing a statement with parameters"); 
                        var binq:BinaryQuery = addParametersToSql(); 
                        con.executeBinaryQuery(this, token, binq);
                } 
                else {
                        Logger.info(this, "executing a regular statement");

                        con.executeQuery(this, token, sql);
                }
                return token;

        }
 Must be :
 if ( this.sql.indexOf("?") != -1 || this.sql.indexOf(":") !=-1)

Original issue reported on code.google.com by igor2...@gmail.com on 3 Feb 2014 at 6:26