mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Fix Extension SQL Syntax errors related to id selection
This commit is contained in:
parent
da33ec0b9e
commit
f31dbe8a9a
@ -50,9 +50,9 @@ public class ExtensionProviderTable {
|
||||
public static final String FORMAT_TYPE = "format_type"; // Can be null
|
||||
public static final String IS_PLAYER_NAME = "player_name"; // default false
|
||||
|
||||
public static final String STATEMENT_SELECT_PROVIDER_ID = SELECT + ID + FROM + TABLE_NAME +
|
||||
public static final String STATEMENT_SELECT_PROVIDER_ID = "(" + SELECT + ID + FROM + TABLE_NAME +
|
||||
WHERE + PROVIDER_NAME + "=?" +
|
||||
AND + PLUGIN_ID + "=" + ExtensionPluginTable.STATEMENT_SELECT_PLUGIN_ID;
|
||||
AND + PLUGIN_ID + "=" + ExtensionPluginTable.STATEMENT_SELECT_PLUGIN_ID + ")";
|
||||
|
||||
public static void set3PluginValuesToStatement(PreparedStatement statement, int parameterIndex, String providerName, String pluginName, UUID serverUUID) throws SQLException {
|
||||
statement.setString(parameterIndex, providerName);
|
||||
|
@ -43,10 +43,10 @@ public class ExtensionTabTable {
|
||||
public static final String PLUGIN_ID = "plugin_id";
|
||||
public static final String ICON_ID = "icon_id";
|
||||
|
||||
public static final String STATEMENT_SELECT_TAB_ID = SELECT + ID +
|
||||
public static final String STATEMENT_SELECT_TAB_ID = "(" + SELECT + ID +
|
||||
FROM + TABLE_NAME +
|
||||
WHERE + TAB_NAME + "=?" +
|
||||
AND + PLUGIN_ID + "=" + ExtensionPluginTable.STATEMENT_SELECT_PLUGIN_ID;
|
||||
AND + PLUGIN_ID + "=" + ExtensionPluginTable.STATEMENT_SELECT_PLUGIN_ID + ")";
|
||||
|
||||
public static void set3TabValuesToStatement(PreparedStatement statement, int parameterIndex, String tabName, String pluginName, UUID serverUUID) throws SQLException {
|
||||
statement.setString(parameterIndex, tabName);
|
||||
|
Loading…
Reference in New Issue
Block a user