update hasNewTypeDefinitions when setter type changes
@@ -435,10 +435,10 @@ public class SQLServerPreparedStatement extends SQLServerStatement implements IS
// maxRows is set to 0 when retreving encryption metadata,
// need to set it back
setMaxRowsAndMaxFieldSize();
+ }
// fix an issue when inserting unicode into non-encrypted nchar column using setString() and AE is on on Connection
- buildPreparedStrings(inOutParam, true);
- }
+ hasNewTypeDefinitions = buildPreparedStrings(inOutParam, true);
}
// Start the request and detach the response reader so that we can
