home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1414 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  3.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!paladin.american.edu!news.univie.ac.at!bmwf1f.bmwf.gv.at!hatzinger_m
  2. From: hatzinger_m@bmwf1f.bmwf.gv.at
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Problem on field of DEFAULT WHERE/ORDER BY on Form 3.0
  5. Message-ID: <1992Aug28.083408.43@bmwf1f.bmwf.gv.at>
  6. Date: 28 Aug 92 08:54:50 GMT
  7. References: <105@timer1.UUCP>
  8. Organization: (Klaus-Michael Hatzinger), BMWF, Vienna
  9. Lines: 64
  10.  
  11. In article <105@timer1.UUCP>, john@timer1.UUCP (john) writes:
  12. > Hi, world:
  13. > In our company, we implemented a "Task Manager" with SqlForm30 to 
  14. > keep track of our projects. When user run the form, we want him/her
  15. > see only the tasks he/she is allowed to see. So, we put some conditions
  16. > in DEFAULT WHERE/ORDER BY field of form30. Here is the piece from INP 
  17. > file:
  18. >       ORDERING = <<<
  19. >       where requestor in  (select access_name from DS_manager.user_access30
  20. >             where user_name = lower(USER))
  21. >          or request_for in (select dept_code from
  22. >             DS_manager.dept_access30 where user_name = lower(USER))
  23. >          or assigned = lower(USER)
  24. >       ORDER BY Date_completed desc,DATE_REQUIRED, PRIORITY, date_entered
  25. >       >>>
  26. > When I added in 4th OR condition in it then generate and execute it, it
  27. > had segment fault and core is dumped (on unix environment) but if I trimmed
  28. > that part, it goes fine. We guessed that the buffer mighted be too small 
  29. > to hold the whold conditions.
  30. > Does any one know any limit on the buffer size of DEFAULT WHERE/ORDER BY
  31. > field of block definition screen on Form 3.0. Or, it might be the limit
  32. > of the number of "OR" conditions 
  33. > Any info will be apprecaited.
  34. > John Chan (Rightime Econometrics, Inc)
  35.  
  36.   A few time ago, i had also a problem on a UNIX system. But the core was dumped
  37.   because I had different types of datatypes. I had a field (CHAR) with
  38.   numbers in it like '19920828' and a procedure with variables:
  39.   
  40.   Screen field CHAR
  41.                ^^^^
  42.   
  43.   POST-CHANGE on field
  44.   check_date(field);
  45.   
  46.   
  47.   and the procedure
  48.   
  49.   PROCEDURE CHECK_DATE (datum IN NUMBER) IS .....
  50.                                  ^^^^^^
  51.   
  52.   The form runs everytime out of control and a core was dumped. But the form
  53.   crashed not only in this field, it crashed anywhere. So I changed the 
  54.   type of the field to Integer (INT). Since that time it works.
  55.   
  56.   
  57.                                                               Mike
  58.   
  59.   ================================================================================
  60.                                                                             ^
  61.    Federal Ministry of Science and Research                               B | M
  62.   <-------------------------------------------------------------------------+---->
  63.    Computer Center                                                        W | F
  64.                                                                             |
  65.    Klaus-Michael Hatzinger            mail: hatzinger_m@bmwf1f.bmwf.gv.at   |
  66.    Bankgasse 1/209                   phone: 0043-222-53120/5188             |
  67.    1014 Vienna, Austria                fax: 0043-222-53120/5155             V
  68.   ================================================================================
  69.