Skip to content

Conversation

@sanpwc
Copy link

@sanpwc sanpwc commented Apr 16, 2019

PR for review

sanpwc added 16 commits March 29, 2019 12:29
 into ignite-11309

# Conflicts:
#	modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java
public boolean isAffinityAwareness();

/**
* @param affinityAwareness {@code True} if jdbc thin affinity awareness is enabled
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems 'True' should be in lowercase

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

*
* @throws Exception If failed.
*/
@org.junit.Test
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls use import for org.junit.Test

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

ps = conn.prepareStatement("select * from Person where _key = ? or _key = ?");
ps.setInt(1, 1);
ps.setInt(2, 2);
checkNodesUsage(ps, null, 2, 2, false);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code style - need to add line to separate statements. The same for the whole class.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ufff, fixed


/** URL with best effort affinity flag. */
private String urlWithBestEffortAffinityFlag = url +
(affinityAwareness ?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be simplified to "?affinityAwareness=" + affinityAwareness;

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants