Skip to content

Commit

Permalink
fix node security update sql
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 20, 2007
1 parent 2577981 commit ac819e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -175,11 +175,11 @@ public List<Node> findTargetNodesFor(DataEventAction eventAction) {
}

public boolean updateNodeSecurity(NodeSecurity security) {
return jdbcTemplate.update(updateNodeSecuritySql, new Object[] { security.getNodeId(),
security.getPassword(), security.isRegistrationEnabled() ? 1 : 0,
security.getRegistrationTime(), security.isInitialLoadEnabled() ? 1 : 0,
security.getInitialLoadTime() }, new int[] { Types.VARCHAR, Types.VARCHAR, Types.INTEGER,
Types.TIMESTAMP, Types.INTEGER, Types.TIMESTAMP }) == 1;
return jdbcTemplate.update(updateNodeSecuritySql,
new Object[] { security.getPassword(), security.isRegistrationEnabled() ? 1 : 0,
security.getRegistrationTime(), security.isInitialLoadEnabled() ? 1 : 0,
security.getInitialLoadTime(), security.getNodeId() }, new int[] { Types.VARCHAR,
Types.INTEGER, Types.TIMESTAMP, Types.INTEGER, Types.TIMESTAMP, Types.VARCHAR, }) == 1;
}

public boolean setInitialLoadEnabled(String nodeId, boolean initialLoadEnabled) {
Expand Down
2 changes: 1 addition & 1 deletion symmetric/src/main/resources/symmetric-services.xml
Expand Up @@ -445,7 +445,7 @@
<property name="updateNodeSecuritySql">
<value>
update ${sync.table.prefix}_node_security
set node_id = ?, password = ?, registration_enabled = ?, registration_time = ?,
set password = ?, registration_enabled = ?, registration_time = ?,
initial_load_enabled = ?, initial_load_time = ? where node_id = ?
</value>
</property>
Expand Down

0 comments on commit ac819e8

Please sign in to comment.