> how to I retrieve the primary key of the table (an int serial(1)).
> This: "header_id = result.getLastSerial()" doesn't 
> unfortunately work (as was suggested on the different sapDB 
> dedicated sites)

This needs a SAP DB kernel 7.3.00.29 or 7.4.03.17.

> Also, how to I easily convert arbitrary date/time values into 
> a sapDB timestamp? Are there any utility functions for that? 
> I have something like 2003-03-18 11:24 (from an email header).

The python module rfc822 (http://www.python.org/doc/current/lib/module-rfc822.html)
has a method parsedate, although I don't know how many time formats are tried.

To convert the resulting tuple to a SAP DB timestamp, use sapdbapi.Timestamp (or 
sapdb.dbapi.Timestamp when using a 7.4 driver).

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org/
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to