Thank you Scott.

I didn't expect that expected behaviour.
Simply wrote a little program to check
my SQL DDL source for that condition
and found another occurrence, but
harmless one :)

Best Regards
Hans

-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Scott Morgan
Sent: Monday, April 15, 2013 8:24 AM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Firebird Parser Problem

On 15/04/13 15:06, Hans wrote:
> It may be present in other  versions too, I haven't tested that..
...code snipped...
> Returns:
 >
 > A = 1 and B = 11 instead of giving some error by the parser.
 > Can be difficult to find this coding error.

That's expected behaviour, comments can cover line-breaks, all it looks for
is the next occurrence of '*/'

Similarly, you can't nestle comments, e.g.

/* outer /* inner */ outer */

...fails; the "outer */" is passed on instead of skipped.

Using an editor that can highlight syntax is helpful for spotting this.

Scott




------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item on the main
(top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links



Reply via email to