mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-09-08 10:15:11 -05:00
Fix update query on PG-esque DBs
This commit is contained in:
@@ -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``}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user