home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!think.com!cass.ma02.bull.com!catfish.az05.bull.com!elm!mmitchel
- From: mmitchel@elm.Berkeley.EDU (Michael Mitchel)
- Subject: Re: problem with "DESC" as column name in Windows4GL
- Message-ID: <1993Jan08.154254.24753@catfish.az05.bull.com>
- Sender: news@catfish.az05.bull.com (placeholder for future)
- Reply-To: mmitchel@elm.Berkeley.EDU (Michael Mitchel)
- Organization: Bull HN Information Systems Inc., Phoenix Product Division
- References: <FRANKS.93Jan8155235@ntrc27.ntrc.ntu.ac.sg>
- Distribution: comp
- Date: Fri, 08 Jan 93 15:42:54 GMT
- Lines: 59
-
- In article <FRANKS.93Jan8155235@ntrc27.ntrc.ntu.ac.sg>, franks@ntrc27.ntrc.ntu.ac.sg (Frank Siebenlist) writes:
- |>
- |> 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
- |> ---------------------------------------------------
-
- The keyword DESC is short for DESCending which is used in the ORDER BY
- clause. I would expect it to generate errors such as you have described
- above. Better use another name if you can. By the way, you can find a
- list of keywords in appendix A of the Ingres 6.4 SQL Reference Manual.
-
- Mike Mitchell
- Bull HN, Phoenix
-