From 4f5c04f50c0f473a42711f1547119186d5304cd8 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Sat, 31 Mar 2018 14:51:08 -0600 Subject: [PATCH] Added documentation stating that batch errors and array DML row counts are only supported when executing insert, update, delete and merge statements and that in all other cases an exception will be raised (https://github.com/oracle/python-cx_Oracle/issues/31). --- doc/src/cursor.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst index a91bfa8..a5c124b 100644 --- a/doc/src/cursor.rst +++ b/doc/src/cursor.rst @@ -191,6 +191,10 @@ Cursor Object retrieved from Oracle after the method has completed. The row counts can then be retrieved using :meth:`~Cursor.getarraydmlrowcounts()`. + Both the batcherrors parameter and the arraydmlrowcounts parameter can only + be true when executing an insert, update, delete or merge statement; in all + other cases an error will be raised. + For maximum efficiency, it is best to use the :meth:`~Cursor.setinputsizes()` method to specify the parameter types and sizes ahead of time; in particular, None is assumed to be a string of