[Zope] DCOracle2 and Clob object problem

Mateusz mateuszp@magellan.net.pl
Thu, 12 Sep 2002 11:16:16 +0200


Hi!
I have problem with dcoracle 2 and clob object. I'm working under:
Zope Version  (Zope 2.5.1 (binary release, python 2.1, linux2-x86), 
python 2.1.3, linux2)  
Python Version  2.1.3 (#1, Apr 15 2002, 11:13:45) [GCC 2.7.2.3]  
System Platform  linux2  (RedHat 7.1)

 When i'm testing function (which is below) under win 2000 it works 
properly, but under RedHat7.2 it prints "None" as a data object, but 
when i print object ala, i see :
[[<LobLocator object at 0x8b59ab8>]]
so i'm sure that there is an clob object. This is my test function. I 
think method "read()" does't work properly under linux?
Do you have any suggestions?

==========
def test1():
       db = DCOracle2.connect("p_engine/qwerty@neodev")
       c = db.cursor()
       c.execute("select html_clob from tags_tokens where id='37'")
       ala =  c.fetchone()
       lob = ala[0]
       data = lob.read()
       print data
       c.close()
       return data
==========

Best regards,
   Mateusz