Allow disabling workaround for since-fixed MongoDB bug (#5617)
* Allow disabling workaround for fixed MongoDB bug * skipMongoDBServer13732Workaround description fix * flip test boolean * Remove CLI flag, use databaseVersion & engine * Revert "Remove CLI flag, use databaseVersion & engine" This reverts commit 042d1ba19f636fe0da06074168c6fd5db37ea048. * clean up
This commit is contained in:
committed by
Diamond Lewis
parent
fcdf2d7947
commit
559096f1c2
@@ -1396,9 +1396,7 @@ export class PostgresStorageAdapter implements StorageAdapter {
|
||||
if (Object.keys(query).length === 0) {
|
||||
where.pattern = 'TRUE';
|
||||
}
|
||||
const qs = `WITH deleted AS (DELETE FROM $1:name WHERE ${
|
||||
where.pattern
|
||||
} RETURNING *) SELECT count(*) FROM deleted`;
|
||||
const qs = `WITH deleted AS (DELETE FROM $1:name WHERE ${where.pattern} RETURNING *) SELECT count(*) FROM deleted`;
|
||||
debug(qs, values);
|
||||
return this._client
|
||||
.one(qs, values, a => +a.count)
|
||||
|
||||
Reference in New Issue
Block a user