FBScript thinks that a comment at the end of a script file is a valid command
-----------------------------------------------------------------------------

                 Key: DNET-688
                 URL: http://tracker.firebirdsql.org/browse/DNET-688
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 5.0.5.0
         Environment: Win8.1, VS2015, Net 4.5.1,  Firebird Provider build from 
source not taken from nuget
            Reporter: Ralf Jansen
            Assignee: Jiri Cincura


Example Script:

/* Pre comment */
UPDATE TABLE SET Field= 'HelloWorld' WHERE Id = 1;
/*Post comment */

In this case FbScript.Parse() will try to parse the post comment as command and 
throws a ""The type of the SQL statement could not be determined..." 
ArgumentException.

Workaround : Don't have a comment at the end of a script.




-- 
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

        

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to