home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!cs.utexas.edu!torn!csd.unb.ca!adminteam.cs.upei.ca!leath
- From: leath@UPEI.CA (Steve Leath)
- Subject: Re: problem with "DESC" as column name in Windows4GL
- Message-ID: <leath.16.726515454@UPEI.CA>
- Sender: news@jupiter.sun.csd.unb.ca
- Organization: University of Prince Edward Island, CANADA
- References: <FRANKS.93Jan8155235@ntrc27.ntrc.ntu.ac.sg>
- Distribution: comp
- Date: Fri, 8 Jan 1993 17:50:54 GMT
- Lines: 60
-
- In article <FRANKS.93Jan8155235@ntrc27.ntrc.ntu.ac.sg> franks@ntrc27.ntrc.ntu.ac.sg (Frank Siebenlist) writes:
- >From: franks@ntrc27.ntrc.ntu.ac.sg (Frank Siebenlist)
- >Subject: problem with "DESC" as column name in Windows4GL
- >Date: Fri, 8 Jan 1993 07:52:35 GMT
- >
- >If a column name of "DESC" is used,
- >then it seems "difficult" to access that column within Windows4GL.
- >
- >For example a script containing:
- >
- > select :my_field = desc
- > from my_table;
- >
- >yields compilation errors like:
- >
- >E_W40118 The symbol 'desc' is undefined.
- >
- >E_PW0005 Can't create variable for desc.
- > A variable couldn't be declared for the ENTRYFIELD desc. A subsequent
- > error should give more information about why it couldn't be created.
- >
- >E_SY0010 Reserved word used as name.
- > A variable (or other kind of object) was given the name `desc' which is
- > a reserved word. You can not use a reserved word to name an object.
- >
- >This is too bad, but it becomes worse if:
- >
- > :my_field = my_table.desc
- >
- >yields the same error.
- >
- >As far as I know, DESC is not a reserved word for column names.
- >Also, other ingres programs like isql have no problem with:
- > select desc from my_table;
- >
- >Is Windows4GL too restrictive? Is this a feature or bug?
- >
- >Is there a workaround?
- >
- >Please don't tell me to rename my column names!
- >(They are predefined by other existing applications.)
- >
- >Regards, Frank.
- >
- >--
- >---------------------------------------------------
- >Frank Siebenlist <franks@ntu.ac.sg>
- >Senior Research Fellow
- >GINTIC Institute of Manufacturing Technology (GIMT)
- >Nanyang Technological University (NTU)
- >Nanyang Avenue
- >Singapore 2263
- >Tel: (65) 799-1356 Fax: (65) 791-2927
- >---------------------------------------------------
-
- We had this problem when the base language changed from quel to sql. We had
- a lot of instances of "desc". we had to change them all, both in the
- database and applications.
-
- steve
-