InsertOrUpdate: id column may not exist, use first column from WHERE clause
This commit is contained in:
parent
f79464d867
commit
d744b3057a
2
atom
2
atom
@ -472,7 +472,7 @@ InsertOrUpdate() {
|
|||||||
values+=( "$value" )
|
values+=( "$value" )
|
||||||
done
|
done
|
||||||
if results=$(
|
if results=$(
|
||||||
Select "$table" id < <(
|
Select "$table" ${keys[0]} < <(
|
||||||
for key in ${!keys[@]}
|
for key in ${!keys[@]}
|
||||||
do
|
do
|
||||||
echo "${keys[$key]}" = "${values[$key]}"
|
echo "${keys[$key]}" = "${values[$key]}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user