Skip to content

Commit

Permalink
Use getSchemaTableName also in the create table statement (#8006)
Browse files Browse the repository at this point in the history
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 <michael.weigmann@hsh-berlin.com>

Signed-off-by: Michael Weigmann <michael.weigmann@hsh-berlin.com>
  • Loading branch information
mwgmnn committed Sep 2, 2022
1 parent 7caeb3b commit 1b78db7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ", " +
Expand Down

0 comments on commit 1b78db7

Please sign in to comment.