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

FbScript and/or StringParser incorrect whitespace handling (FirebirdSql.Data.Isql namespace) [DNET310] #322

Closed
firebird-automations opened this issue Apr 13, 2010 · 1 comment

Comments

@firebird-automations
Copy link

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.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.7.0.0 [ 10704 ]

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

2 participants