

def testBindStringArrayBySizes(self):
    'test binding in a string array (with setinputsizes)'
    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    self.cursor.setinputsizes(p_Array=[cx_Oracle.STRING, 10])
    array = [self[1] for r in self.rawData]
    self.cursor.execute('\n                begin\n                  :p_ReturnValue := pkg_TestStringArrays.TestInArrays(\n                      :p_IntegerValue, :p_Array);\n                end;', p_ReturnValue=returnValue, p_IntegerValue=6, p_Array=array)
    self.failUnlessEqual(returnValue.getvalue(), 87)

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/StringVar.py TestStringVar.testBindStringArrayBySizes/VarMisuse@45/85 `r`->`self`