[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::repository

Title:Oracle CDD/Repositorynce
Notice:Current versions are V7.0-01 and V6.1-03eld Test 3
Moderator:8292::PJACOBN
Created:Thu Jan 21 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1094
Total number of notes:4913

1065.0. "computed by fields/ex functs supported?" by M5::JAKUHN (jakuhn@us.oracle.com) Tue Mar 11 1997 22:40

    CDD 6.1
    
    I have a customer with a COMPUTED BY column that is computed by a
    external function. When you do a cobol pre-compile you get the
    %CDD-F-ATTNOTFND, attribute not found  
    error. Also, you get the BLRSYNINFO "entity not supported" message
    when you integrate the db into the dictionary. 
    
    Are COMPUTED BY fields that are computed by external functions
    supported by CDD? I tried to use CDD$DEBUG_FLAGS but there is no
    output.  
    
    thanks
    jay
T.RTitleUserPersonal
Name
DateLines
1065.1NOVA::SMITHIDon't understate or underestimate Rdb!Wed Mar 12 1997 14:143
CDD doesn't support functions calls.

Ian
1065.2thank youM5::JAKUHNjakuhn@us.oracle.comWed Mar 12 1997 15:331
    *thanks* again Ian.
1065.3will ex functions be supported ?M5::JAKUHNjakuhn@us.oracle.comMon Mar 17 1997 16:5814
    Does any one have a "rough guess" as to when/if CDD will ever support
    Rdb's external functions? I think it is perfectly reasonable for the
    customer to use an external function and expect CDD to support it.
    
    The reason he tried to use an external function is that he need to
    do an "integer" divide - in other words, throwing away the
    fraction  part. I don't think a  "computed by" column can do that
    kind  of divide (I'm trying to think of a workaround), will he just
    have to write code to do that?
    
    thanks.
    jay 
    
    
1065.4NOVA::SMITHIDon't understate or underestimate Rdb!Mon Mar 17 1997 19:1024
Yes CDD should support BLR$K_FUNCTION.  However, I doubt that resources exist
to make this happen soon.  Please send product requirements to Shirley Anne
Stern.

However, this might be acceptable..

SQL> create table T (a real,
cont>                b computed by cast(cast(a as bigint(1)) as varchar(20)),
cont>                c computed by cast(
cont>                                substring(b from 1
cont>                                            for position('.' in b))
cont>                                   as bigint));
SQL> insert into t (a) value (10.3);
1 row inserted
SQL> insert into t (a) value (11.7);
1 row inserted
SQL> select * from t
cont> ;
              A   B                                         C
  1.0300000E+01   10.3                                     10
  1.1700000E+01   11.7                                     11
2 rows selected

Ian
1065.5thanks...againM5::JAKUHNjakuhn@us.oracle.comMon Mar 17 1997 19:536
    /Yes CDD should support BLR$K_FUNCTION.  However, I doubt that resources
    /exist
    
    And I understand that of course. Thank you for the workaround Ian.
    
    jay
1065.6NOVA::SMITHIDon't understate or underestimate Rdb!Mon Mar 17 1997 20:007
To explain further, adding support for functions is a complex task.  It
requires that CDD know about the parameters (e.g. number and data type) as
well as the functions themselves.  Further, a SQL function my live in a
module, so this implies some support of modules too.  Such a large task is not
currently seen as a priority right now.

Ian
1065.7M5::LWILCOXHow about Fireworks?Mon Apr 07 1997 11:518
  <<< Note 1065.6 by NOVA::SMITHI "Don't understate or underestimate Rdb!" >>>

>>  Such a large task is not currently seen as a priority right now.

Jay, maybe a career path?  No, wait, we don't want you to leave support!!


:-).