File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -709,18 +709,18 @@ def execute(
709
709
Execute a query and wait for execution to complete.
710
710
711
711
The parameterisation behaviour of this method depends on which parameter approach is used:
712
- - With INLINE mode (default) , parameters are rendered inline with the query text
713
- - With NATIVE mode, parameters are sent to the server separately for binding
712
+ - With INLINE mode, parameters are rendered inline with the query text
713
+ - With NATIVE mode (default) , parameters are sent to the server separately for binding
714
714
715
715
This behaviour is controlled by the `use_inline_params` argument passed when building a connection.
716
716
717
717
The paramstyle for these approaches is different:
718
718
719
- If the connection was instantiated with use_inline_params=False, then parameters
719
+ If the connection was instantiated with use_inline_params=False (default) , then parameters
720
720
should be given in PEP-249 `named` paramstyle like :param_name. Parameters passed by positionally
721
721
are indicated using a `?` in the query text.
722
722
723
- If the connection was instantiated with use_inline_params=True (default) , then parameters
723
+ If the connection was instantiated with use_inline_params=True, then parameters
724
724
should be given in PEP-249 `pyformat` paramstyle like %(param_name)s. Parameters passed by positionally
725
725
are indicated using a `%s` marker in the query. Note: this approach is not recommended as it can break
726
726
your SQL query syntax and will be removed in a future release.
You can’t perform that action at this time.
0 commit comments