The error happens for example when a statement is broken into more lines, like this:
CREATE DATABASE 'DATABASENAME'
USER 'SYSDBA' PASSWORD 'masterkey'
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.