home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / ingres / 2186 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.9 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!darwin.sura.net!jvnc.net!newsserver.jvnc.net!newsserver.technet.sg!ntuix!ntuix!franks
  2. From: franks@ntrc27.ntrc.ntu.ac.sg (Frank Siebenlist)
  3. Newsgroups: comp.databases.ingres
  4. Subject: problem with "DESC" as column name in Windows4GL
  5. Message-ID: <FRANKS.93Jan8155235@ntrc27.ntrc.ntu.ac.sg>
  6. Date: 8 Jan 93 07:52:35 GMT
  7. Sender: news@ntuix.ntu.ac.sg (USENET News System)
  8. Distribution: comp
  9. Organization: /home/franks/.organization
  10. Lines: 50
  11. Nntp-Posting-Host: ntrc27.ntrc.ntu.ac.sg
  12.  
  13.  
  14. If a column name of "DESC" is used,
  15. then it seems "difficult" to access that column within Windows4GL.
  16.  
  17. For example a script containing:
  18.  
  19.     select :my_field = desc
  20.     from my_table;
  21.  
  22. yields compilation errors like:
  23.  
  24. E_W40118 The symbol 'desc' is undefined.
  25.  
  26. E_PW0005 Can't create variable for desc.
  27.     A variable couldn't be declared for the ENTRYFIELD desc.  A subsequent
  28.     error should give more information about why it couldn't be created.
  29.  
  30. E_SY0010 Reserved word used as name.
  31.     A variable (or other kind of object) was given the name `desc' which is
  32.     a reserved word.  You can not use a reserved word to name an object.
  33.  
  34. This is too bad, but it becomes worse if:
  35.  
  36.         :my_field = my_table.desc
  37.  
  38. yields the same error.
  39.  
  40. As far as I know, DESC is not a reserved word for column names.
  41. Also, other ingres programs like isql have no problem with: 
  42.     select desc from my_table;
  43.  
  44. Is Windows4GL too restrictive? Is this a feature or bug?
  45.  
  46. Is there a workaround?
  47.  
  48. Please don't tell me to rename my column names!
  49. (They are predefined by other existing applications.)
  50.  
  51. Regards, Frank.
  52.  
  53. --
  54. ---------------------------------------------------
  55. Frank Siebenlist                 <franks@ntu.ac.sg>
  56. Senior Research Fellow
  57. GINTIC Institute of Manufacturing Technology (GIMT)
  58. Nanyang Technological University (NTU)
  59. Nanyang Avenue
  60. Singapore 2263
  61. Tel: (65) 799-1356               Fax: (65) 791-2927
  62. ---------------------------------------------------
  63.