Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4501

table data is lost after disconnect from db following truncate and repopulate

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 5.5.30
    • None
    • None
    • None
    • gentoo 64-bit, python with MySQLdb module

    Description

      If you truncate a table, then repopulate that table and disconnect from db, the data in this table is lost.

      I've attached a python script which demonstrates this behavior. The steps involved in the script:

      1. drop existing test_mariadb table
      2. create test_mariadb table and populate with zeros in each field
      3. truncate test_mariadb table
      4. repopulate test_mariadb table with ones
      5. close connection
      6. reopen connection
      7. select and print table data, which shows an empty set

      This same script run on a mysql server ultimately returns a populated set as expected.

      Attachments

        Activity

          People

            elenst Elena Stepanova
            nomadicme John Lips
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.