

def testBindInOutDateArrayByVar(self):
    'test binding in/out a date array (with arrayvar)'
    array = self.cursor.arrayvar(cx_Oracle.DATETIME, 10, 100)
    originalData = [r[1] for r in self.rawData]
    array.setvalue(0, originalData)
    self.cursor.execute('\n                begin\n                  pkg_TestDateArrays.TestInOutArrays(:p_NumElems, :p_Array);\n                end;', p_NumElems=5, p_Array=array)
    self.failUnlessEqual(originalData.getvalue(), ([cx_Oracle.Timestamp(2002, 12, 17, 2, 24, 0), cx_Oracle.Timestamp(2002, 12, 18, 4, 48, 0), cx_Oracle.Timestamp(2002, 12, 19, 7, 12, 0), cx_Oracle.Timestamp(2002, 12, 20, 9, 36, 0), cx_Oracle.Timestamp(2002, 12, 21, 12, 0, 0)] + originalData[5:]))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py TestDateTimeVar.testBindInOutDateArrayByVar/VarMisuse@74/155 `array`->`originalData`