Commit a4d91a49 authored by Lachesis Chiang's avatar Lachesis Chiang

Add name data to prepareStatement in get ( ) method.

parent 8c94ff8b
...@@ -174,7 +174,8 @@ public class PrivateStorage extends BasicModule implements UserEventListener { ...@@ -174,7 +174,8 @@ public class PrivateStorage extends BasicModule implements UserEventListener {
con = DbConnectionManager.getConnection(); con = DbConnectionManager.getConnection();
pstmt = con.prepareStatement(LOAD_PRIVATE); pstmt = con.prepareStatement(LOAD_PRIVATE);
pstmt.setString(1, username); pstmt.setString(1, username);
pstmt.setString(2, data.getNamespaceURI()); pstmt.setString(2, data.getName());
pstmt.setString(3, data.getNamespaceURI());
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) { if (rs.next()) {
data.clearContent(); data.clearContent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment