From 1b78db7be2da5b1948370e298cb0278621ab1d09 Mon Sep 17 00:00:00 2001 From: Michael Weigmann Date: Fri, 2 Sep 2022 06:18:27 +0200 Subject: [PATCH] Use getSchemaTableName also in the create table statement (#8006) When all other sql statements are built, this method is used for including the schema name in front of the table name (if specified). So to make it more consistent, it would be better to also create the table in the specified schema. PS: Please indulge me for not opening an issue, as i think this optimization is pretty trivial and need no big discussion. Signed-off-by: Michael Weigmann Signed-off-by: Michael Weigmann --- .../org/eclipse/jetty/server/session/JDBCSessionDataStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionDataStore.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionDataStore.java index 031dbee2376f..12ab960c3f00 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionDataStore.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionDataStore.java @@ -268,7 +268,7 @@ public String getCreateStatementAsString() String longType = _dbAdaptor.getLongType(); String stringType = _dbAdaptor.getStringType(); - return "create table " + _tableName + " (" + _idColumn + " " + stringType + "(120), " + + return "create table " + getSchemaTableName() + " (" + _idColumn + " " + stringType + "(120), " + _contextPathColumn + " " + stringType + "(60), " + _virtualHostColumn + " " + stringType + "(60), " + _lastNodeColumn + " " + stringType + "(60), " + _accessTimeColumn + " " + longType + ", " + _lastAccessTimeColumn + " " + longType + ", " + _createTimeColumn + " " + longType + ", " + _cookieTimeColumn + " " + longType + ", " + _lastSavedTimeColumn + " " + longType + ", " + _expiryTimeColumn + " " + longType + ", " + _maxIntervalColumn + " " + longType + ", " +