mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-15 16:27:57 +02:00
Nest query since MySQL can not select and update:
More information https://stackoverflow.com/a/9843719 Attempts to fix: 'You can't specify target table 'plan_extension_user_values' for update in FROM clause'
This commit is contained in:
parent
c1a6fdd6fc
commit
40075f697c
@ -92,7 +92,7 @@ public class RemoveUnsatisfiedConditionalResultsTransaction extends Transaction
|
|||||||
AND + ExtensionProviderTable.CONDITION + " IS NOT NULL"; // Ignore values that don't need condition
|
AND + ExtensionProviderTable.CONDITION + " IS NOT NULL"; // Ignore values that don't need condition
|
||||||
|
|
||||||
String sql = "DELETE FROM " + playerValueTable +
|
String sql = "DELETE FROM " + playerValueTable +
|
||||||
WHERE + ExtensionPlayerValueTable.ID + " IN (" + selectUnsatisfiedValueIDs + ')';
|
WHERE + ExtensionPlayerValueTable.ID + " IN (" + SELECT + ExtensionPlayerValueTable.ID + FROM + '(' + selectUnsatisfiedValueIDs + "))";
|
||||||
|
|
||||||
return new ExecStatement(sql) {
|
return new ExecStatement(sql) {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user