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'" \
|
||||
");" >&3
|
||||
read -u 4 results
|
||||
results="${results# = }"
|
||||
results="${results#* = }"
|
||||
if ! [[ $results == "SQL::Select:not found" ]]
|
||||
then
|
||||
echo "$results"
|
||||
@ -298,7 +298,7 @@ Insert() {
|
||||
(( no_id )) || {
|
||||
echo 'SELECT LAST_INSERT_ROWID();' >&3
|
||||
read -u 4 results
|
||||
results="${results# = }"
|
||||
results="${results#* = }"
|
||||
echo "$results"
|
||||
}
|
||||
}
|
||||
@ -412,7 +412,7 @@ InsertOrUpdate() {
|
||||
)
|
||||
)
|
||||
fi
|
||||
results="${results# = }"
|
||||
results="${results#* = }"
|
||||
echo "$results"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user