

def testBindInOutVarDirectSet(self):
    'test binding in/out with cursor.var() method'
    var = self.cursor.var(cx_Oracle.DATETIME)
    var.setvalue(0, cx_Oracle.Timestamp(2002, 12, 9, 6, 0, 0))
    self.cursor.execute('\n                begin\n                  :p_Value := :p_Value + 5.25;\n                end;', p_Value=var)
    self.failUnlessEqual(var.getvalue(), cx_Oracle.Timestamp(2002, 12, 14, 12, 0, 0))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py TestDateTimeVar.testBindInOutVarDirectSet/original