FbScript not loading and parsing the script file (Code missing)
---------------------------------------------------------------

                 Key: DNET-393
                 URL: http://tracker.firebirdsql.org/browse/DNET-393
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 2.6.5
         Environment: Platform Independant
            Reporter: Antony Mellor
            Assignee: Jiri Cincura
            Priority: Critical


The constructor for the FbScript class does not read the script file and 
therefore has nothing to parse.

// Constructor source code from 2.6.5 

                public FbScript(string script)
                {
                        this.results = new FbStatementCollection();
                        this.parser = new StringParser(RemoveComments(script), 
false);
                        this.parser.Token = ";";
                }

// Constructor source code from 2.5.1 (which does work)

        public FbScript(string sqlFilename)
        {
            string script = string.Empty;

            using (StreamReader reader = File.OpenText(sqlFilename))
            {
                script = reader.ReadToEnd();
            }

            this.results = new FbStatementCollection();
            this.parser = new StringParser(RemoveComments(script), false);
            this.parser.Token = ";";
        }

After I installed the version 2.6.0 binaries the FbScript also did not work 
although I haven't checked the sources. 

After compiling the 2.6.5 version with the StreamReader code in, it works again 
:-)

Enjoy you day!
 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to