rubydb-activerecord 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f847d51451d08f816663e0a89bba24ae799218703f97ac2cc87f433148d2989
|
|
4
|
+
data.tar.gz: 75477ea1015dec780e069e0835a221d718f39c3126605b6c1a65da7119ba8825
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fe49d3b1b24296ffc67df1266cbb0acaf9a6e0ec747c684f2fab777a107c0e0eb31d5eed29a35d3cd1051a4cc75e965a7edf265a52e5dc69ef676f30e287ecc
|
|
7
|
+
data.tar.gz: 41b717bac47ade8260f6376b1b175652b9e48c74ba3dec071770641f6b4f0b691449131123a4365acf5ed1979869ffd0b62f989e3df2023ef5c31fb908d06ea4
|
|
@@ -249,7 +249,10 @@ module ActiveRecord
|
|
|
249
249
|
log(sql, name) do
|
|
250
250
|
params = bind_values(binds)
|
|
251
251
|
result = @connection.execute(sql, params)
|
|
252
|
-
id
|
|
252
|
+
# RubyDB keeps a physical row id for storage operations and a
|
|
253
|
+
# logical primary-key value for SQL/ActiveRecord. They can differ
|
|
254
|
+
# after deletes, so ActiveRecord must receive the logical id.
|
|
255
|
+
id = result.inserted_id || result.row_id
|
|
253
256
|
ActiveRecord::Result.new([pk || "id"], id.nil? ? [] : [[id]])
|
|
254
257
|
end
|
|
255
258
|
end
|
data/rubydb-activerecord.gemspec
CHANGED