> This needs a SAP DB kernel 7.3.00.29 or 7.4.03.17.

I've update to 7.4.03.17 now without any problems. Unfortunately now I get a seg fault 
(Python 2.2/ Linux) with the following code (sorry for being a newbie on this....):

C = sapdb.connect(....)
        
query     = "INSERT INTO maildata (data) VALUES ('%s')" % msg['Header']
result    = C.sql(query)
header_id = result.getLastSerial()      

debug_message("Mail inserted 1")
        
# insert the text body  
query       = "INSERT INTO maildata (data) VALUES ('%s')" % msg['Body']
result      = C.sql(query)
textbody_id = result.getLastSerial()

The first insert works fine, the second crashes. Am I doing anything wrong with this?

regs,

Stephan

P.S.: Could you give some additional examples on the python interface in your docs and 
mention the getLastSerial()?

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to