JETTY-1263 changed column rowId to srowId as rowId is a reserved word on oracle
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2262 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
3c4a816760
commit
a701c372cf
|
@ -34,6 +34,7 @@ jetty-7.2-SNAPSHOT
|
|||
+ JETTY-1250 Parallel start of HandlerCollection
|
||||
+ JETTY-1256 annotation jars from Orbit
|
||||
+ JETTY-1261 errant listener usage in StandardDescriptorProcessor
|
||||
+ JETTY-1263 JDBCSessionIdManager table creation fails on Oracle
|
||||
+ JETTY-1269 Improve log multithreadedness
|
||||
+ JETTY-1271 handled unavailable exception
|
||||
+ Fix jetty-plus.xml for new configuration names
|
||||
|
|
|
@ -498,10 +498,10 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
|||
{
|
||||
//table does not exist, so create it
|
||||
String blobType = _dbAdaptor.getBlobType();
|
||||
_createSessionTable = "create table "+_sessionTable+" (rowId varchar(120), sessionId varchar(120), "+
|
||||
_createSessionTable = "create table "+_sessionTable+" (srowId varchar(120), sessionId varchar(120), "+
|
||||
" contextPath varchar(60), virtualHost varchar(60), lastNode varchar(60), accessTime bigint, "+
|
||||
" lastAccessTime bigint, createTime bigint, cookieTime bigint, "+
|
||||
" lastSavedTime bigint, expiryTime bigint, map "+blobType+", primary key(rowId))";
|
||||
" lastSavedTime bigint, expiryTime bigint, map "+blobType+", primary key(srowId))";
|
||||
connection.createStatement().executeUpdate(_createSessionTable);
|
||||
}
|
||||
|
||||
|
|
|
@ -807,23 +807,23 @@ public class JDBCSessionManager extends AbstractSessionManager
|
|||
protected void prepareTables ()
|
||||
{
|
||||
__insertSession = "insert into "+((JDBCSessionIdManager)_sessionIdManager)._sessionTable+
|
||||
" (rowId, sessionId, contextPath, virtualHost, lastNode, accessTime, lastAccessTime, createTime, cookieTime, lastSavedTime, expiryTime, map) "+
|
||||
" (srowId, sessionId, contextPath, virtualHost, lastNode, accessTime, lastAccessTime, createTime, cookieTime, lastSavedTime, expiryTime, map) "+
|
||||
" values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||
|
||||
__deleteSession = "delete from "+((JDBCSessionIdManager)_sessionIdManager)._sessionTable+
|
||||
" where rowId = ?";
|
||||
" where srowId = ?";
|
||||
|
||||
__selectSession = "select * from "+((JDBCSessionIdManager)_sessionIdManager)._sessionTable+
|
||||
" where sessionId = ? and contextPath = ? and virtualHost = ?";
|
||||
|
||||
__updateSession = "update "+((JDBCSessionIdManager)_sessionIdManager)._sessionTable+
|
||||
" set lastNode = ?, accessTime = ?, lastAccessTime = ?, lastSavedTime = ?, expiryTime = ?, map = ? where rowId = ?";
|
||||
" set lastNode = ?, accessTime = ?, lastAccessTime = ?, lastSavedTime = ?, expiryTime = ?, map = ? where srowId = ?";
|
||||
|
||||
__updateSessionNode = "update "+((JDBCSessionIdManager)_sessionIdManager)._sessionTable+
|
||||
" set lastNode = ? where rowId = ?";
|
||||
" set lastNode = ? where srowId = ?";
|
||||
|
||||
__updateSessionAccessTime = "update "+((JDBCSessionIdManager)_sessionIdManager)._sessionTable+
|
||||
" set lastNode = ?, accessTime = ?, lastAccessTime = ?, lastSavedTime = ?, expiryTime = ? where rowId = ?";
|
||||
" set lastNode = ?, accessTime = ?, lastAccessTime = ?, lastSavedTime = ?, expiryTime = ? where srowId = ?";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -848,7 +848,7 @@ public class JDBCSessionManager extends AbstractSessionManager
|
|||
if (result.next())
|
||||
{
|
||||
data = new SessionData(id);
|
||||
data.setRowId(result.getString("rowId"));
|
||||
data.setRowId(result.getString("srowId"));
|
||||
data.setCookieSet(result.getLong("cookieTime"));
|
||||
data.setLastAccessed(result.getLong("lastAccessTime"));
|
||||
data.setAccessed (result.getLong("accessTime"));
|
||||
|
|
Loading…
Reference in New Issue