Groups | Search | Server Info | Login | Register


Groups > comp.databases > #104

Re: OS-SQL-Grammar?

From Nessi <nessi@nefkom.info>
Newsgroups de.comp.datenbanken.misc, comp.databases, comp.databases.theory
Subject Re: OS-SQL-Grammar?
Date 2011-07-07 09:54 +0200
Organization albasani.net
Message-ID <iv3on0$faf$1@news.albasani.net> (permalink)
References <iv3nf4$jbv$2@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


=== original message ===
from: Norbert_Paul
date: 2011-07-07 09:32

> Hi,
>
> is there a handy (and parseable) Open Source SQL-grammar around,
> that can be fed into a parser generator without major problems?
> I consider ISO 9075:2003 useless for this purpose and don't get
> the point of this "standard".
>
> I have (many) problems with the ISO grammar.
> Here is one I spotted yesterday: Is the following string
>
> "/* this is */ a strange comment */"
>
> a valid SQL-Comment (according to SQL 2003)?

I'd say no. According to the grammer, "/* this is */" is the <bracket 
comment> and what's following is not valid.
As soon as a token is found (in this case the first <bracket comment 
terminator>) it is processed. Therefore the first "*/" ends the bracket 
comment and the following characters are not part of the comment anymore.

Cheers,
Udo

Back to comp.databases | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

OS-SQL-Grammar? Norbert_Paul <norbertpauls_spambin@yahoo.com> - 2011-07-07 09:32 +0200
  Re: OS-SQL-Grammar? Nessi <nessi@nefkom.info> - 2011-07-07 09:54 +0200
  Re: OS-SQL-Grammar? Dieter Nöth <dnoeth@gmx.de> - 2011-07-07 10:04 +0200

csiph-web