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

clear_all removes initial message #41

Closed
imbolc opened this issue Jul 12, 2022 · 3 comments
Closed

clear_all removes initial message #41

imbolc opened this issue Jul 12, 2022 · 3 comments

Comments

@imbolc
Copy link
Contributor

imbolc commented Jul 12, 2022

After SELECT mq_clear_all() a couple of tests fail with
Some("Key ( after_message_id)=(00000000-0000-0000-0000-000000000000) is not present in table \"mq_msgs\".")

@Diggsey
Copy link
Owner

Diggsey commented Jul 12, 2022

Ah that;s a clear bug. We should leave the "nil" message untouched.

@imbolc
Copy link
Contributor Author

imbolc commented Jul 12, 2022

Would it make sense to move it to Rust as we discussed? With sql functions users have to remember to run migrations when they upgrade.

@Diggsey
Copy link
Owner

Diggsey commented Jul 12, 2022

I think this is a special case as it's convenient to be able to reset the database directly in postgres.

imbolc added a commit to imbolc/sqlxmq that referenced this issue Jul 13, 2022
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

No branches or pull requests

2 participants