Skip to content

Error in Statment.as3 #111

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions