add connection.object_id to savepoint names.

s/crystal/cr/ to shorten a bit the name.
This commit is contained in:
Brian J. Cardiff 2016-12-14 11:07:17 -03:00
parent 882253bf4a
commit c6b6517145

View file

@ -59,7 +59,7 @@ module DB
previous_savepoint.succ
else
# random prefix to avoid determinism
"crystal_#{Random.rand(10_000)}_00001"
"cr_#{@connection.object_id}_#{Random.rand(10_000)}_00001"
end
@savepoint_name = savepoint_name