Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Statment.as3 #111

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 0 comments
Open

Error in Statment.as3 #111

GoogleCodeExporter opened this issue Aug 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 3 Feb 2014 at 6:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant