sqlite is not mysql

This commit is contained in:
Vincent Riquer 2013-02-25 17:07:53 +01:00
parent 66f816c5d4
commit 2dbe51bd29

5
atom
View File

@ -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"
}