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