-
Notifications
You must be signed in to change notification settings - Fork 42
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
[bug?] target table field order changed, not like original table #61
Comments
@roytan883 this is not a bug. The DDL is correct. You can claim it is a new feature. |
@eulerto I think at least if the source table is totally new, should keep the original fields order.
I think it is another case. |
The problem is that:pgquarrel works great, but it can't handle POLICY. So after use diff.sql, I must manually |
I added POLICY support a few days ago (commit ec06f49). This is a different issue. |
@eulerto So it is a bug?I git clone the latest code, and set |
@roytan883 open another issue. It is a totally different problem. Please provide a small test case. |
ALTER commands have to deal with role names that have uppercase letters. Those identifiers should be quoted if there is a upppercase letter. It was pointed out by @rafaelsagastume at PR #61 although I don't use his patch. I add a small test to exercise this code (indeed, I have to overhaul tests to exercise more cases than it does nowadays; let's say it is just a reminder to not forgot uppercase identifier case).
There isn't a way to preserve the original order of attributes in a CREATE TABLE. This is a feature asked in #61. Let's use alphabetical order for attributes so tests won't fail.
My source DB has table like this:
after run pgquarrel, I got diff.sql for target DB, but the table fields order has changed to :
this will lead some code has bug like:
The text was updated successfully, but these errors were encountered: