Skip to content

Commit

Permalink
update hasNewTypeDefinitions when setter type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyushawn committed Mar 29, 2017
1 parent bbb5e25 commit 277b50e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ final void doExecutePreparedStatement(PrepStmtExecCmd command) throws SQLServerE
if (!encryptionMetadataIsRetrieved) {
hasNewTypeDefinitions = buildPreparedStrings(inOutParam, false);
}

if ((Util.shouldHonorAEForParameters(stmtColumnEncriptionSetting, connection)) && (0 < inOutParam.length) && !isInternalEncryptionQuery) {

// retrieve paramater encryption metadata if they are not retrieved yet
Expand All @@ -435,10 +435,10 @@ final void doExecutePreparedStatement(PrepStmtExecCmd command) throws SQLServerE
// 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);
}

// fix an issue when inserting unicode into non-encrypted nchar column using setString() and AE is on on Connection
hasNewTypeDefinitions = buildPreparedStrings(inOutParam, true);
}

// Start the request and detach the response reader so that we can
Expand Down

0 comments on commit 277b50e

Please sign in to comment.