Skip to content

[Nightly] Renaming table fails with error copying data #1725

Closed

Description

@chrisjlocke

Details for the issue

What did you do?

Modified a table by renaming it

What did you expect to see?

No error

What did you see instead?

image

The table 'currentUsage' is the original name. Originally I tried renaming it to something else, but for the purpose of this issue, I appended a 'u' to the end, as shown in the screenshot.
So simply, the copying code is looking at the old name, not the new name,

Useful extra information

@MKleusberg attacked this code recently following a couple of other issues, and I thought I'd tested this, but the 'error copying data' is a new issue...

The info below often helps, please fill it out if you're able to. :)

What operating system are you using?

  • Windows: ( version: 10___ )

What is your DB4S version?

  • Version 3.11.99 (Jan 24 2019)

Did you also

Activity

  1. added
    bugConfirmed bugs or reports that are very likely to be bugs.
    on Jan 31, 2019
  2. changed the title [-]Renaming table fails with error copying data[/-] [+][Nightly] Renaming table fails with error copying data[/+] on Feb 7, 2019
  3. MKleusberg commented on Feb 9, 2019

    @MKleusberg
    Member

    Works fine for me 😕 Can you paste the full table schema here? And did you change anything besides the table name?

  4. chrisjlocke commented on Feb 10, 2019

    @chrisjlocke
    MemberAuthor

    When you're testing, does your table have a primary key? Tables with no primary keys set seem to rename OK. Tables with the first field as a primary key (specifically an INTEGER) seem to fail.

    (had to experiment a lot to work that out...!)

    https://screencast-o-matic.com/watch/cqn66c3KZ6 (apologies for the cheesy music - it wanted to do that, not me!)

  5. added a commit that references this issue on Feb 15, 2019
  6. MKleusberg commented on Feb 15, 2019

    @MKleusberg
    Member

    You are right - I didn't check with a primary key. But I believe I know what was causing the problem and I already committed a fix. This one will need some good testing though 😄

  7. justinclift commented on Feb 15, 2019

    @justinclift
    Member

    The other test builds are finished, so I'll rerun todays standard nightly build script for Win64. That'll give something for testing sooner, in case it's useful. 😄

  8. MKleusberg commented on Feb 15, 2019

    @MKleusberg
    Member

    Awesome 👍 Lots of building and lots of cherry-picking for today then 😉

  9. justinclift commented on Feb 15, 2019

    @justinclift
    Member

    Yep. 😉

  10. chrisjlocke commented on Feb 15, 2019

    @chrisjlocke
    MemberAuthor

    🍒🍒🍒 🌸 💥

  11. justinclift commented on Feb 15, 2019

    @justinclift
    Member

    Just watched the screencast (above). That was done well, really clear, etc.

    Music wasn't tooooooooooo cheesy either. 😄

  12. chrisjlocke commented on Feb 15, 2019

    @chrisjlocke
    MemberAuthor

    I got quite used to the music and liked it after a while! 😆 🙉

  13. justinclift commented on Feb 15, 2019

    @justinclift
    Member
  14. chrisjlocke commented on Feb 15, 2019

    @chrisjlocke
    MemberAuthor

    Thanks @justinclift for creating the builds.

    Renaming a table now works, but a few 'issues' if that table belongs to a view. Have reported that in that thread.
    Added a field, and removed a field, and that all worked too.

    Thanks @MKleusberg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions