Initializing when Oracle record does not exist

DAN H LAMBSHEAD danhl at rogers.com
Mon Apr 19 15:12:31 CDT 2010


Hello,

  When linking to an Oracle table where the record does not exist, Quiz and QTP seem to handle it differently. Quiz regards the items in the missing record to be null while QTP initializes them to  " " or 0 (for char or num type) - ie. the old, familiar, non relational db case.

eg. 

Access file_a link to Oracle_file_b optional

define d_b char*5 = "Null" if b of Oracle_file_b is null
                       else    b of Oracle_file_b         

 (I want d_b to be null if b is null, or if the record does not esist)

In Quiz if the record Oracle_file_b does not exist, d_b  will be "Null" 

In QTP it will be " "

Does anyone know why ? I would prefer both Quiz and QTP to act the same way and for Oracle files not existing, initialize to null.

Because of this, I must add a separate condition in QTP either:

  ... or record Oracle_file_b does not exist ...         or
  ... or b of Oracle_file_b = " "

Thanks

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20100419/e4ea22fc/attachment.htm 


More information about the powerh-l mailing list