adodbapi return value

Nikolai Kirsebom nikolai.kirsebom.NOJUNK at siemens.no
Mon Apr 4 10:58:40 EDT 2005


Found out what's wrong.  The "Output Parameter Availablity" property
of the connection has the value DBPROPVAL_OA_ATROWRELEASE.  By closing
the record set (reading out the result set first) the output
parameters were correct.  Made the modification directly in the
executeHelper method of the Cursor object.  Changed at the end of the
method;

        if isStoredProcedureCall and parameters != None:
            return self._returnADOCommandParameters(self.cmd)

to

        if isStoredProcedureCall and parameters != None:
            x = self.fetchall()
            rs.Close()
            return self._returnADOCommandParameters(self.cmd), x

Guess this is not the right way.  Any comments appreciated.
Nikolai Kirsebom




More information about the Python-list mailing list