Removed the table prefix integration

This commit is contained in:
mathias 2021-08-19 19:42:36 +02:00
parent 5efc36d1b0
commit 387f9d7b35
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A
2 changed files with 3 additions and 5 deletions

View File

@ -65,7 +65,7 @@ public class DataBaseSelection {
* @return this class
*/
public DataBaseSelection from(String tableName) {
this.tableName = connection.getTablePrefix().isEmpty() ? tableName : connection.getTablePrefix() + tableName;
this.tableName = tableName;
return this;
}

View File

@ -76,9 +76,7 @@ public class UpdateManager {
messageBuilder.append((added.get()) ? ", " : "").append(v);
added.set(true);
});
StackTraceElement[] st = Thread.currentThread().getStackTrace();
StackTraceElement stack = st[st.length - 1];
LOG.debug("DEBUG <" + stack.getFileName() + ":" + stack.getLineNumber() + "> Statement: " + messageBuilder);
LOG.debug("Statement: " + messageBuilder);
return this;
}
@ -109,7 +107,7 @@ public class UpdateManager {
* @return this class
*/
public UpdateManager toTable(String tableName) {
this.tableName = connection.getTablePrefix().isEmpty() ? tableName : connection.getTablePrefix() + tableName;
this.tableName = tableName;
return this;
}