Commit 27ee0113 authored by Ivan A. Shmakov's avatar Ivan A. Shmakov

Update JdbcPersistenceManager.java

parent a8e5bf5c
...@@ -242,9 +242,7 @@ public class JdbcPersistenceManager implements PersistenceManager { ...@@ -242,9 +242,7 @@ public class JdbcPersistenceManager implements PersistenceManager {
if (whereSB.length() != 0) { if (whereSB.length() != 0) {
querySB.append(" WHERE ").append(whereSB); querySB.append(" WHERE ").append(whereSB);
} }
querySB.append(SELECT_CONVERSATIONS_GROUP_BY); querySB.append(SELECT_CONVERSATIONS_GROUP_BY);
if (DbConnectionManager.getDatabaseType() == DbConnectionManager.DatabaseType.sqlserver) { if (DbConnectionManager.getDatabaseType() == DbConnectionManager.DatabaseType.sqlserver) {
querySB.insert(0,"SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY "+CONVERSATION_ID+") AS RowNum FROM ( "); querySB.insert(0,"SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY "+CONVERSATION_ID+") AS RowNum FROM ( ");
querySB.append(") ofConversation ) t2 WHERE RowNum"); querySB.append(") ofConversation ) t2 WHERE RowNum");
...@@ -687,7 +685,6 @@ public class JdbcPersistenceManager implements PersistenceManager { ...@@ -687,7 +685,6 @@ public class JdbcPersistenceManager implements PersistenceManager {
querySB.append(CONVERSATION_START_TIME).append(" = ? "); querySB.append(CONVERSATION_START_TIME).append(" = ? ");
} }
} }
querySB.append(SELECT_CONVERSATIONS_GROUP_BY); querySB.append(SELECT_CONVERSATIONS_GROUP_BY);
try { try {
......
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