Closed justinwoo closed 9 years ago
Yes, we noticed this too. We prefer the implementation over the documentation on this matter by a large margin.
So I suggest that documentation is changed, not the implementation.
Actually the return value depends on the database/driver. PostgreSQL seems to return the whole record, MySQL something like {:generated_key 1}
and MSSQL {:generated_keys 1}
. But yes, the documentation needs to be updated.
I did an insertion and expected the result to be the id of the inserted record, but instead got the entire record back. This contradicts what the docs say about insertion on the homepage where it says:
This is my result from doing the insertion where it returns me the record: