We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49aa8c9 commit b44e22fCopy full SHA for b44e22f
tests/test_3700_var.py
@@ -400,5 +400,13 @@ def test_3725_DB_TYPE_UROWID(self):
400
self._test_negative_set_and_get(oracledb.DB_TYPE_UROWID, 12345)
401
self._test_negative_set_and_get(oracledb.DB_TYPE_UROWID, "523lkhlf")
402
403
+ def test_3726_getvalue_with_index(self):
404
+ "3726 - getting value with an specific index"
405
+ var = self.cursor.var(oracledb.DB_TYPE_NUMBER, 1000, 2)
406
+ var.setvalue(0, 10)
407
+ self.assertEqual(var.getvalue(0), 10)
408
+ self.assertEqual(var.getvalue(1), None)
409
+ self.assertRaises(IndexError, var.getvalue, 4)
410
+
411
if __name__ == "__main__":
412
test_env.run_test_cases()
0 commit comments