[Zope-DB] Problem selecting Oracle LOB's
Jorge O. Martinez
jmartinez@emediamillworks.com
Tue, 19 Mar 2002 16:34:49 -0500
Hi Matt:
You are right. I am probably confusing terms. I'll try using your hints.
Thanks a lot for you help, I wasn't sure what was going on, and your
telling to look for the LobLocator helped a lot.
Regards,
Jorge M.
Matthew T. Kromer wrote:
> Jorge O. Martinez wrote:
>
>> Matt:
>>
>> You are absolutely right. I looked at the source, and this is coming
>> back as well:
>>
>> <tr>
>> <td>44</td> <--- THIS IS WHAT I SAW
>> <td><Products.DCOracle2.db.LobLocator instance at 996494></td>
>> (DIDN'T SEE THIS)
>> </tr>
>>
>> I'll try what you suggest. One question though. How do I call the
>> 'select' method? Does this look correct to you:
>>
>> <dtml-in select>
>> <dtml-var Products.DCOracle2.db.LobLocator>
>> </dtml-in>
>>
>> Thanks for your quick and accurate response,
>>
>> Jorge M.
>>
>
> Hmm -- the select method?
>
> There's the select statment in your SQL method -- I think that's what
> you mean; so if you have a SQL method "myquery" from a Python script you
>
> results = context.myquery(parm1=value1, parm2=value2, parm3=value3) # etc
>
> for result in results:
> print result['column1']
> print result['column2']
>
> lob = result['lobcolumn']
> lobvalue = lob.read()
>
>
> etc...
>
>
--
Jorge O. Martinez
MIS Senior Associate
eMediaMillWorks
1100 Mercantile Lane, Suite 119
Largo, MD 20774
E-mail => jmartinez@eMediaMillWorks.com
Phone => (301)883-2482 ext. 105
Fax => (301)883-9754