Skip to content

Commit

Permalink
IGNITE-11463: Fixed backward compatibility of ODBC
Browse files Browse the repository at this point in the history
  • Loading branch information
isapego committed Mar 1, 2019
1 parent 96f71a4 commit 86da884
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ public OdbcConnectionContext(GridKernalContext ctx, GridNioSession ses, GridSpin
if (ver.compareTo(VER_2_5_0) >= 0) {
user = reader.readString();
passwd = reader.readString();
}

if (ver.compareTo(VER_2_7_0) >= 0) {
byte nestedTxModeVal = reader.readByte();

nestedTxMode = NestedTxMode.fromByte(nestedTxModeVal);
Expand Down
3 changes: 2 additions & 1 deletion modules/platforms/cpp/odbc/src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ namespace ignite
{
utility::WriteString(writer, config.GetUser());
utility::WriteString(writer, config.GetPassword());
}

if (version >= ProtocolVersion::VERSION_2_7_0)
writer.WriteInt8(config.GetNestedTxMode());
}
}

QueryExecuteRequest::QueryExecuteRequest(const std::string& schema, const std::string& sql,
Expand Down

0 comments on commit 86da884

Please sign in to comment.