From ef0869e37658633b3854ba386b931198807b5593 Mon Sep 17 00:00:00 2001 From: Terry Chow <32403408+tkyc@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:31:28 -0800 Subject: [PATCH] Update src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java Co-authored-by: David Engel --- .../com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java b/src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java index b49465b2e..af6b1afc1 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java @@ -613,8 +613,11 @@ public interface ISQLServerDataSource extends javax.sql.CommonDataSource { * Sets whether or not sp_sproc_columns will be used for parameter name lookup. * * @param useFlexibleCallableStatements - * When set to true, sp_sproc_columns is not used for parameter name lookup - * in callable statements. + * When set to false, sp_sproc_columns is not used for parameter name lookup + * in callable statements. This eliminates a round trip to the server but imposes limitations + * on how parameters are set. When set to false, applications must either reference + * parameters by name or by index, not both. Parameters must also be set in the same + * order as the stored procedure definition. */ void setUseFlexibleCallableStatements(boolean useFlexibleCallableStatements);