Skip to content

Commit

Permalink
Add note that SQL and PL/SQL statements are handled differently when …
Browse files Browse the repository at this point in the history
…binding by

position and that binding by name is generally recommended.
  • Loading branch information
anthony-tuininga committed May 24, 2017
1 parent 18145b8 commit d85e90a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/src/cursor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ Cursor Object
dictionary, the values will be bound by name and if the arguments are a
sequence the values will be bound by position. Note that if the values are
bound by position, the order of the variables is from left to right as they
are encountered in the statement.
are encountered in the statement and SQL statements are processed
differently than PL/SQL statements. For this reason, it is generally
recommended to bind parameters by name instead of by position.

A reference to the statement will be retained by the cursor. If None or the
same string object is passed in again, the cursor will execute that
Expand Down

0 comments on commit d85e90a

Please sign in to comment.