mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-09 00:08:55 +01:00
fix: unable to delete rows with null values and no primary key
This commit is contained in:
parent
af91d96db6
commit
74c136f833
@ -247,7 +247,10 @@ export default (connections: {[key: string]: antares.Client}) => {
|
|||||||
if (typeof row[key] === 'string')
|
if (typeof row[key] === 'string')
|
||||||
row[key] = `'${row[key]}'`;
|
row[key] = `'${row[key]}'`;
|
||||||
|
|
||||||
row[key] = `= ${row[key]}`;
|
if (row[key] === null)
|
||||||
|
row[key] = 'IS NULL';
|
||||||
|
else
|
||||||
|
row[key] = `= ${row[key]}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
await connections[params.uid]
|
await connections[params.uid]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user