Issue Details (XML | Word | Printable)

Key: DNET-310
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Jiri Cincura
Reporter: Gábor Török
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

FbScript and/or StringParser incorrect whitespace handling (FirebirdSql.Data.Isql namespace)

Created: 13/Apr/10 03:34 PM   Updated: 25/Aug/15 12:12 PM
Component/s: ADO.NET Provider
Affects Version/s: None
Fix Version/s: 4.7.0.0

Environment: Windows XP Professional SP3 (Hungarian), Microsoft.NET Framework 3.5 SP1


 Description  « Hide
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.


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.