sqlite is not mysql
This commit is contained in:
parent
66f816c5d4
commit
2dbe51bd29
5
atom
5
atom
@ -261,6 +261,7 @@ Select() {
|
|||||||
",'SQL::Select:not found'" \
|
",'SQL::Select:not found'" \
|
||||||
");" >&3
|
");" >&3
|
||||||
read -u 4 results
|
read -u 4 results
|
||||||
|
results="${results# = }"
|
||||||
if ! [[ $results == "SQL::Select:not found" ]]
|
if ! [[ $results == "SQL::Select:not found" ]]
|
||||||
then
|
then
|
||||||
echo "$results"
|
echo "$results"
|
||||||
@ -295,8 +296,9 @@ Insert() {
|
|||||||
"VALUES" \
|
"VALUES" \
|
||||||
"( $insert_values );" >&3
|
"( $insert_values );" >&3
|
||||||
(( no_id )) || {
|
(( no_id )) || {
|
||||||
echo 'SELECT LAST_INSERT_ID();' >&3
|
echo 'SELECT LAST_INSERT_ROWID();' >&3
|
||||||
read -u 4 results
|
read -u 4 results
|
||||||
|
results="${results# = }"
|
||||||
echo "$results"
|
echo "$results"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -410,6 +412,7 @@ InsertOrUpdate() {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
results="${results# = }"
|
||||||
echo "$results"
|
echo "$results"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user