sqlite is not mysql part 2: fix parameter expansion
This commit is contained in:
parent
1c253abfc0
commit
51dea2ea17
6
atom
6
atom
@ -261,7 +261,7 @@ Select() {
|
|||||||
",'SQL::Select:not found'" \
|
",'SQL::Select:not found'" \
|
||||||
");" >&3
|
");" >&3
|
||||||
read -u 4 results
|
read -u 4 results
|
||||||
results="${results# = }"
|
results="${results#* = }"
|
||||||
if ! [[ $results == "SQL::Select:not found" ]]
|
if ! [[ $results == "SQL::Select:not found" ]]
|
||||||
then
|
then
|
||||||
echo "$results"
|
echo "$results"
|
||||||
@ -298,7 +298,7 @@ Insert() {
|
|||||||
(( no_id )) || {
|
(( no_id )) || {
|
||||||
echo 'SELECT LAST_INSERT_ROWID();' >&3
|
echo 'SELECT LAST_INSERT_ROWID();' >&3
|
||||||
read -u 4 results
|
read -u 4 results
|
||||||
results="${results# = }"
|
results="${results#* = }"
|
||||||
echo "$results"
|
echo "$results"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -412,7 +412,7 @@ InsertOrUpdate() {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
results="${results# = }"
|
results="${results#* = }"
|
||||||
echo "$results"
|
echo "$results"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user