activerecord-libsql 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: 9a2e0290b309de0e7c29a936ede00a24b7aef1b6c79a648eb2ff5e593b5ee973
|
|
4
|
+
data.tar.gz: d4b0be5e49b7a3b52bee275016a9dd7145346404691d5918079193b5e44e4cd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7d1a814f4be1669eb69a31df52aa316f66e200ad014c7ced335b71cfddf377e782da639cfa709eac01cccaae9b8ff4366ee153394288476d28447920a977b06
|
|
7
|
+
data.tar.gz: bde5a707c097e7f35b71ab8a49d720402829b6f869812886d47dbd00912ca7407a7bcb833a4d635f564df8903699f3cce61460760db4dab7d2b69fc7426e9847
|
|
@@ -154,8 +154,9 @@ module ActiveRecord
|
|
|
154
154
|
build_result(rows)
|
|
155
155
|
else
|
|
156
156
|
affected = raw_connection.execute(expanded_sql)
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
@last_affected_rows = affected.to_i
|
|
158
|
+
notification_payload[:row_count] = @last_affected_rows if notification_payload
|
|
159
|
+
ActiveRecord::Result.empty
|
|
159
160
|
end
|
|
160
161
|
rescue RuntimeError => e
|
|
161
162
|
raise translate_exception(e, message: e.message, sql: expanded_sql, binds: [])
|
|
@@ -166,8 +167,8 @@ module ActiveRecord
|
|
|
166
167
|
raw_result
|
|
167
168
|
end
|
|
168
169
|
|
|
169
|
-
def affected_rows(
|
|
170
|
-
|
|
170
|
+
def affected_rows(_raw_result)
|
|
171
|
+
@last_affected_rows || 0
|
|
171
172
|
end
|
|
172
173
|
|
|
173
174
|
# -----------------------------------------------------------------------
|