Merge pull request #10 from Snipa22/full_group_by_fix
Adding a fix for full_group_by SQL servers
This commit is contained in:
commit
9ffbadd145
1 changed files with 2 additions and 2 deletions
|
|
@ -286,11 +286,11 @@ function updatePoolStats(poolType) {
|
|||
function (callback) {
|
||||
debug(threadName + "Checking MySQL for total miners paid");
|
||||
if (typeof(poolType) !== 'undefined') {
|
||||
global.mysql.query("SELECT id FROM payments WHERE pool_type = ? group by payment_address, payment_id", [poolType]).then(function (rows) {
|
||||
global.mysql.query("SELECT id FROM payments WHERE pool_type = ? group by payment_address, payment_id, id", [poolType]).then(function (rows) {
|
||||
return callback(null, rows.length);
|
||||
});
|
||||
} else {
|
||||
global.mysql.query("SELECT id FROM payments group by payment_address, payment_id").then(function (rows) {
|
||||
global.mysql.query("SELECT id FROM payments group by payment_address, payment_id, id").then(function (rows) {
|
||||
return callback(null, rows.length);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue