Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate sequencer record #11

Merged
merged 1 commit into from
Nov 5, 2015
Merged

Conversation

hirocaster
Copy link
Owner

  • Don't insert record if exist record in sequencer

insert_initial_record_sql = "INSERT INTO #{sequencer.table_name} VALUES (0)"
execute sequencer.connection_name.to_s, insert_initial_record_sql
else
p "Exist sequencer record in #{sequencer.table_name} table."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rails/Output: Do not write to stdout. Use Rails' logger if you want to log.

- Don't insert record if exist record in sequencer
@hirocaster hirocaster force-pushed the fix-duplicate-sequencer-record branch from 6f20d55 to 81d3083 Compare November 5, 2015 11:24
hirocaster added a commit that referenced this pull request Nov 5, 2015
@hirocaster hirocaster merged commit 08c748b into master Nov 5, 2015
@hirocaster hirocaster deleted the fix-duplicate-sequencer-record branch March 10, 2016 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants