> You mentioned that it would be possible to add a > numbergenerator-interface to the sapdbmodule in form of > a callable object which would receive NUMBERASSTRING,SCALE,PRECISION. > > So I want to ask, if this feature is already in development.
Parts exist, namely a hook to register the callable objects. What's missing: - getting the refcounts right - passing exceptions in the callbacks to the client - a similar hook for input parameters > a callable object which would receive NUMBERASSTRING,SCALE,PRECISION. The idea was to have a limited choice of parameter types for the callback. cursor.setConversion (0, "s", callback) would register callback to take a string parameter. cursor.setConversion (0, "if", callback) would register callback to take two integers (integer part, fractional part) cursor.setConversion (0, "me", callback) would register callback to take two integers (mantisse, exponent) Other possible conversions: VARCHAR: " " (don't strip trailing blanks) LONG: "s" (return string instead of stream) DATE "Ymd" (three integer: year, month, date) ... Actually, the callback will be optional. cursor.setConversion (0, "s") will simply return strings. > - are the driversources for python included in the server-sources? Yes. Run 'imf.pl sapdbpy.mac' (after installing the dev tools and sources). The important source is vin77.c. > - where can you get it? ftp://ftp.sap.com/pub/sapdb/7.3/sapdb-source-7.3.00.21.tgz for the stable version > - are there already compiled binary drivers for other systems than > win32 and linux? (especially for sun) The version compiled for Python 1.5.2 is part of the server distribution, so it's available for all our supported platforms. I'll add a Python 1.5.2 - 2.2 package for Sun real soon now. (It is simply a bit of work to build all the Pythons on a platform, so I put this off until it is actually requested). 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
