Bug on TZSQLScriptParser.ParseText procedure
Posted: 14.09.2009, 18:07
Hello!
I founded a bug on ParseText method of TZSQLScriptParser class:
I founded a error where the lenght of delimiter of statement is less then the last token of the statement.
Example:
The method concat the delimiter ("//") with the token "1", because the lenght of token "1" is less then lenght of the delimiter "//".
Quick solutions:
Solution 1:
Separate the delimiter of the last token.
Solution 2:
Concating the last token ("1") with equals symbol ("="), making that the last token equals or greater then lenght of the delimiter ("//").
Solution 3:
Use a delimiter with size 1:
How can I fix this bug ? There's any prevision of any release of zeos with this bug fix?
Thanks.
I founded a bug on ParseText method of TZSQLScriptParser class:
I founded a error where the lenght of delimiter of statement is less then the last token of the statement.
Example:
Code: Select all
SET GLOBAL log_bin_trust_function_creators = 1//
Quick solutions:
Solution 1:
Separate the delimiter of the last token.
Code: Select all
SET GLOBAL log_bin_trust_function_creators = 1 //
Concating the last token ("1") with equals symbol ("="), making that the last token equals or greater then lenght of the delimiter ("//").
Code: Select all
SET GLOBAL log_bin_trust_function_creators =1 //
Use a delimiter with size 1:
Code: Select all
SET GLOBAL log_bin_trust_function_creators = 1&
Thanks.