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
1 changed files with 1 additions and 1 deletions

View File

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