

def testBindDateArrayBySizes(self):
    'test binding in a date array (with setinputsizes)'
    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    self.cursor.setinputsizes(p_Array=[cx_Oracle.DATETIME, 10])
    array = [r[1] for r in self.rawData]
    self.cursor.execute('\n                begin\n                  :p_ReturnValue := pkg_TestDateArrays.TestInArrays(\n                      :p_StartValue, :p_BaseDate, :p_Array);\n                end;', p_ReturnValue=r, p_StartValue=6, p_BaseDate=cx_Oracle.Date(2002, 12, 13), p_Array=array)
    self.failUnlessEqual(returnValue.getvalue(), 26.5)

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py TestDateTimeVar.testBindDateArrayBySizes/VarMisuse@67/167 `returnValue`->`r`