Closed nikicat closed 11 years ago
Hi, @gleu! Would you review this request?
It seems you're right. I'm currently working on it. Will commit ASAP.
OK, so it seems this issue was rather common inside pgAdmin source code. I rewrote your patch to take care of all the other faulty checks. See my last commit for more informations.
Anyway, thanks for your patch, and your message. It helped us fix a quite awful and widespread bug.
Thanks a lot, @gleu My co-worker accidentally truncated important tables in production database several times because of this bug. I think he will be happy after next upgrade of his distro's pgAdmin package.
You're welcome. That sort of things should never happened.
Thanks for your Pull Request! :smile: This repo on GitHub is just a mirror of our real git repositories though, and can't really handle PRs. :frowning: Hopefully you can redo the PR, and direct it to the git.postgresql.org repos? We have a developer guide, if that helps: https://wiki.postgresql.org/wiki/So,_you_want_to_be_a_developer%3F. If this was a PR for pgAdmin, please visit https://www.pgadmin.org/docs/pgadmin4/dev/submitting_patches.html.
'truncate table' dialog type changed to OK|CANCEL to avoid table truncate when pressing keyboard Esc button. See https://groups.google.com/forum/?fromgroups#!topic/wx-users/eNG0k5ajlEQ