mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-03-21 17:34:38 -05:00
Fix update query on PG-esque DBs
This commit is contained in:
parent
079523cc32
commit
b9efc2d1b0
|
|
@ -294,7 +294,7 @@ export class DatabaseTable<Row, DB extends Database> {
|
|||
// cockroach/pg do not support limit in update queries so we have to case this
|
||||
return this.updateAll(data)`
|
||||
WHERE "${this.primaryKeyName}" = ${primaryKey}
|
||||
${this.db.type === 'mysql' ? SQL` LIMIT 1` : ''}
|
||||
${this.db.type === 'mysql' ? SQL` LIMIT 1` : SQL``}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user