Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-360

Unable to get data from tables with VarChar or Char as primary keys

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 3.1.15
    • None
    • General
    • None
    • MariaDB back-end; MS Access front-end; Windows 10; Office version: version 2205 (Build 15225.20092)

    Description

      Showed up this morning. Enterprise wide. Get "deleted" as field values. Verified data is still available through database editor. But, ODBC connector seems to be invalid now for any tables using Char or VarChar as primary keys. Confirmed combo primary keys still work as long as primary keys are any integers. Possible windows/office updates the cause, but still an issue between MS and MariaDB (seems to also affect Oracle db's: https://answers.microsoft.com/en-us/msoffice/forum/all/ms-access-displays-deleted-in-every-field-for/593e5f12-3cbd-414e-841c-9df612504d3c?page=2

      Attachments

        Issue Links

          Activity

            Dallas A Dallas Ailes added a comment -

            Microsoft has released a fixed build

            Dallas A Dallas Ailes added a comment - Microsoft has released a fixed build

            Dallas A But you didn't try with that new version, do you?

            I couldn't fix it so far in the driver. I've got to the point where I could not understand why doesn't it work. Maybe indeed there is/was some issue in the Access itself, but I don't really hope for that. MySQL driver has the same problem, though.

            Btw, I see the problem only when key field contains non-ascii caharacters. Otherwise works fine for me. Could you confirm you have it the same way?

            Lawrin Lawrin Novitsky added a comment - Dallas A But you didn't try with that new version, do you? I couldn't fix it so far in the driver. I've got to the point where I could not understand why doesn't it work. Maybe indeed there is/was some issue in the Access itself, but I don't really hope for that. MySQL driver has the same problem, though. Btw, I see the problem only when key field contains non-ascii caharacters. Otherwise works fine for me. Could you confirm you have it the same way?
            Dallas A Dallas Ailes added a comment -

            Yes, I confirm that it was any non-integer key. I'm using utf8mb4 charset. I needed to for some reason.

            Dallas A Dallas Ailes added a comment - Yes, I confirm that it was any non-integer key. I'm using utf8mb4 charset. I needed to for some reason.

            Dallas A Could you pleased check if your Access is 32b or 64b?

            Lawrin Lawrin Novitsky added a comment - Dallas A Could you pleased check if your Access is 32b or 64b?
            Dallas A Dallas Ailes added a comment -

            We have all switched to 64b in my company.

            Dallas A Dallas Ailes added a comment - We have all switched to 64b in my company.
            acostas@remolcanosa.com Álex Costas added a comment -

            In 32b is the same problem.

            acostas@remolcanosa.com Álex Costas added a comment - In 32b is the same problem.

            Unfortunately it won't make into the coming release, as we don't have the solution yet. As I said, but maybe was not very clear - I understand where the problem is. But fixing got me to the point, that situation with varchar keys got even worse, while everything in the odbc trace or while tracing the execution, looks to be correct.
            Since this issue in the connector was like since forever, and there is workaround - e.g. adding auto_increment primary key, and adding unique constraint on the varchar field instead of primary key, but that unique key name is greater than PRIMARY - then Access will pick PRIMARY key for use as row identifier, I've downgraded the bug to critical.

            Lawrin Lawrin Novitsky added a comment - Unfortunately it won't make into the coming release, as we don't have the solution yet. As I said, but maybe was not very clear - I understand where the problem is. But fixing got me to the point, that situation with varchar keys got even worse, while everything in the odbc trace or while tracing the execution, looks to be correct. Since this issue in the connector was like since forever, and there is workaround - e.g. adding auto_increment primary key, and adding unique constraint on the varchar field instead of primary key, but that unique key name is greater than PRIMARY - then Access will pick PRIMARY key for use as row identifier, I've downgraded the bug to critical.

            People

              Lawrin Lawrin Novitsky
              Dallas A Dallas Ailes
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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