dbTalk Databases Forums  

Silly ESQL syntax quirk

comp.databases.ingres comp.databases.ingres


Discuss Silly ESQL syntax quirk in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default Silly ESQL syntax quirk - 01-25-2012 , 10:51 AM






I just noticed that ESQLC insists that the (normally optional) keyword
TABLE is mandatory in COPY TABLE foo ( ...) FROM ....

i.e: E_EQ0070 Missing word 'TABLE' in COPY statement.

Has it always been like that? My mind is going.

(Version II 10.1.0 (int.w32/121))

--
Roy

UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012.
The latest information is available from www.uk-iua.org.uk.

Reply With Quote
  #2  
Old   
Roy Hann
 
Posts: n/a

Default Re: Silly ESQL syntax quirk - 01-25-2012 , 11:03 AM






Roy Hann wrote:

Quote:
I just noticed that ESQLC insists that the (normally optional) keyword
TABLE is mandatory in COPY TABLE foo ( ...) FROM ....

i.e: E_EQ0070 Missing word 'TABLE' in COPY statement.

Has it always been like that? My mind is going.

(Version II 10.1.0 (int.w32/121))
Following up on my own post, I've just noticed it objects to
another perfectly valid statement, e.g.:

exec sql insert into foo
select 1, 'Dave'
union
select 2, 'Zebedee'
union
select 3, 'Yolanda';

E_EQ0244 Syntax error on 'union'.

Is esqlc usable in the community release of 10.1?

--
Roy

UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012.
The latest information is available from www.uk-iua.org.uk.

Reply With Quote
  #3  
Old   
Karl Schendel
 
Posts: n/a

Default Re: [Info-Ingres] Silly ESQL syntax quirk - 01-25-2012 , 11:32 AM



On Jan 25, 2012, at 11:51 AM, Roy Hann wrote:

Quote:
I just noticed that ESQLC insists that the (normally optional) keyword
TABLE is mandatory in COPY TABLE foo ( ...) FROM ....

i.e: E_EQ0070 Missing word 'TABLE' in COPY statement.

Has it always been like that?
Yes, it's always been like that. It's silly indeed. I don't know if
it would be hard or easy to fix the ESQL grammar to make the
TABLE keyword optional.

Karl

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.