You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error happens for example when a statement is broken into more lines, like this:
CREATE DATABASE 'DATABASENAME'
USER 'SYSDBA' PASSWORD 'masterkey'
PAGE_SIZE 8192
DEFAULT CHARACTER SET ISO8859_1;
After parsing the script, it remains one statement. The problem happens in FbBatchExecution.CreateDatabase: the database name becomes
"DATABASENAME\n\rUSER", because this method uses StringParser to break the statement to parts at spaces.
Nor StringParser, nor FbScript.Parse() converts whitespaces other than space characters, and/or multiple whitespace characters into single space characters, but every function I checked assumes that tokens are separated by single space characters.
The text was updated successfully, but these errors were encountered:
Submitted by: Gábor Török (gabor.torok)
The error happens for example when a statement is broken into more lines, like this:
CREATE DATABASE 'DATABASENAME'
USER 'SYSDBA' PASSWORD 'masterkey'
PAGE_SIZE 8192
DEFAULT CHARACTER SET ISO8859_1;
After parsing the script, it remains one statement. The problem happens in FbBatchExecution.CreateDatabase: the database name becomes
"DATABASENAME\n\rUSER", because this method uses StringParser to break the statement to parts at spaces.
Nor StringParser, nor FbScript.Parse() converts whitespaces other than space characters, and/or multiple whitespace characters into single space characters, but every function I checked assumes that tokens are separated by single space characters.
The text was updated successfully, but these errors were encountered: