UUID are not sequenced, so pk comes back empty when the pk is a uuid. S... #12039

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@Altonymous

...hould check both fields if pk wasn't found in the first one.

UUID are not sequenced, so pk comes back empty when the pk is a uuid.…
… Should check both fields if pk wasn't found in the first one.
@@ -101,7 +101,8 @@ def table(table, stream)
# first dump primary key column
if @connection.respond_to?(:pk_and_sequence_for)
pk, _ = @connection.pk_and_sequence_for(table)
- elsif @connection.respond_to?(:primary_key)
+ end

This comment has been minimized.

@magikid

magikid Dec 2, 2014

Why did you end the if statement instead of adding another elsif? I think this may be why your PR breaks the build.

@magikid

magikid Dec 2, 2014

Why did you end the if statement instead of adding another elsif? I think this may be why your PR breaks the build.

This comment has been minimized.

@Altonymous

Altonymous Dec 3, 2014

Honestly, I don't remember submitted this over a year ago and even deleted the fork.

@Altonymous

Altonymous Dec 3, 2014

Honestly, I don't remember submitted this over a year ago and even deleted the fork.

@Altonymous Altonymous closed this Dec 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment