home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / informix / 2782 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.2 KB

  1. Path: sparky!uunet!gatech!emory!emory!not-for-mail
  2. From: rridley@sin-pss.DHL.COM (Richard Ridley)
  3. Newsgroups: comp.databases.informix
  4. Subject: Tripping Server II
  5. Date: 23 Dec 1992 07:43:05 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 76
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1h9mspINN6i1@emory.mathcs.emory.edu>
  11. Reply-To: rridley@sin-pss.DHL.COM (Richard Ridley)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1735>
  14.  
  15.  
  16. %UNIPLEX
  17. %TO            informix-list@rmy.emory.edu
  18. %FROM          rridley
  19. %SYSTEM        DHLNET
  20. %SUBJECT       Tripping Server II
  21. %VERIFY        y
  22. %DATE          23/12/92 20:10
  23. %REFERENCE     9933
  24.  
  25. Hi there informixer's :
  26.  
  27. A while back I sent a mail asking if anyone had experienced problems
  28. with Online 4.1 sending out error :
  29.  
  30. SQL statement error number -211
  31. Cannot read system catalog (systables).
  32. System error number -101.
  33. ISAM error: file is not open.
  34.  
  35. We can now duplicate this with the following piece of code :
  36.  
  37. <========================================================>
  38.  
  39. DATABASE tst
  40. DEFINE   query2            char(1500)
  41.  
  42. main
  43.  
  44.         CALL first_function()
  45.         CALL second_function()
  46.         CALL first_function()
  47.         CALL second_function()
  48.  
  49. end main
  50.  
  51. FUNCTION first_function()
  52.  
  53.         WHENEVER error continue
  54.         DROP table 1st_temp_tab
  55.         WHENEVER error stop
  56.  
  57.         PREPARE query2 from "SELECT rowid from any_table where
  58.                              rowid = 1 into temp 1st_temp_tab"
  59.         EXECUTE query2
  60.  
  61. END function
  62.  
  63. FUNCTION second_function()
  64.  
  65.         WHENEVER error continue
  66.         DROP table 2nd_temp_tab
  67.         WHENEVER error stop
  68.  
  69.         SELECT unique col1,col2
  70.                 FROM db2:table1
  71.                 WHERE col1 = 8000089
  72.                 and col2 = 35 into temp 2nd_temp_tab
  73.  
  74. END FUNCTION
  75.  
  76. <========================================================>
  77.  
  78. The program fails with the above error during the second instance of
  79. 'second_function', at the select statement.
  80.  
  81. We have noticed that, if we place 'FREE query2' (after removing the
  82. DEFINE query2 statement ) after the 'EXECUTE query2' in the first
  83. function, the program runs fine.
  84.  
  85. Has anyone experienced this problem with Online 4.1 before ?
  86.  
  87. Cheers,
  88.  
  89. Richard Ridley
  90. %UEND
  91.