Article View: borland.public.interbase.sql
Article #765Re: is "NAME" a reserved word in Interbase ?
From: Paul
Date: Wed, 27 Jun 2007 08:44
Date: Wed, 27 Jun 2007 08:44
55 lines
2010 bytes
2010 bytes
Appologies, found (dumb) mistake I was making. Please ignore this post. Thanks. On Wed, 27 Jun 2007 09:35:52 +0100, Paul <nospam@sdiespammersdie.com> wrote: >I did a quick check online and it does not appear as a reseved word >for IB6 abyway AFAIK. However, I often find problems when fields are >just called "name". > >For example, the following procedure parses ok in IBConsole but >generates an error when executed... >//======================================= >CREATE PROCEDURE GET_CUSTOMER >( > .... >) >RETURNS >( > ..... >) >AS >BEGIN >FOR SELECT NAME ,ADDRESS_1,ADDRESS_2,ADDRESS_3,ADDRESS_4,ADDRESS_5 >FROM CUSTOMERS WHERE UPPER(ACCOUNT_REF) =:CUSTREF INTO >:CNAME,:CADDR1,:CADDR2,:CADDR3,CADDR4,CADDR5 >DO SUSPEND; >END >.. etc. > >//======================================= > >However, if I change it from .. > >...FOR SELECT NAME .. > To >...FOR SELECT NAME AS ANAME .. > >All is ok. No errors. > >Strange ? > >Thanks. > >OS : Windows XP Service Pack 2 >Delphi : 2005 Service Pack 3 Installed >CPU : AMD 3500+ OS : Windows XP Service Pack 2 Delphi : 2005 Service Pack 3 Installed CPU : AMD 3500+
Technical Details
Message-ID:
<in8483tubt4o86a18625cpdpvaa4aughj1@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<es6483trama462emaa22ajtn38q7eh1mp1@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,5365f1f67bc33110 X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul <nospam@sdiespammersdie.com> Newsgroups: borland.public.interbase.sql Subject: Re: is "NAME" a reserved word in Interbase ? Date: Wed, 27 Jun 2007 09:44:49 +0100 Organization: None Message-ID: <in8483tubt4o86a18625cpdpvaa4aughj1@4ax.com> References: <es6483trama462emaa22ajtn38q7eh1mp1@4ax.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 86.150.143.163 X-Trace: newsgroups.borland.com 1182933889 86.150.143.163 (27 Jun 2007 01:44:49 -0700) Lines: 55 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail