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 drag and drop to GDB results in columns shifted by one #51634

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

nyalldawson
Copy link
Collaborator

Fixes #51435

@rouault I'd love your thoughts here . While it works, I don't like this proposed fix and don't think this logic really should be in a place like this.

@nyalldawson nyalldawson added the NOT FOR MERGE Don't merge! label Jan 30, 2023
@github-actions github-actions bot added this to the 3.30.0 milestone Jan 30, 2023
@rouault
Copy link
Contributor

rouault commented Jan 30, 2023

@nyalldawson I've an additional tuning to your pull request as a pull request on yours at nyalldawson#36

I've also done a fix in the OpenFileGDB driver in OSGeo/gdal#7147. This is the same as what GeoPackage does when creating a field with the name of the FID column.
I'm not fully satisfied with having to put such hacks in drivers. Ideally QGIS should detect that it tries to create an attribute column with the same name as the FID column, and deal with that by moving the content of that attribute column to the FID special attribute. I've looked a bit at changing that but that looked more intimating than doing the fix/workaround in the OpenFileGDB driver

@rouault rouault removed the NOT FOR MERGE Don't merge! label Jan 31, 2023
@github-actions
Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 15, 2023
@rouault
Copy link
Contributor

rouault commented Feb 15, 2023

looks good to me to be merged

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 15, 2023
@nyalldawson nyalldawson reopened this Feb 21, 2023
@nyalldawson nyalldawson merged commit 2bf1385 into qgis:master Feb 22, 2023
@nyalldawson nyalldawson deleted the fix_51435 branch February 22, 2023 04:21
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Mar 6, 2023

@nyalldawson @rouault it seems the issue is not yet completely fixed: see #52017 (comment)

@agiudiceandrea
Copy link
Contributor

Hi @nyalldawson, any news about the complete fix of the issue, since it seems it is not yet completely fixed as reported in #52017 (comment)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Importing Data into a QGIS Created File Based Geodatabase
3 participants