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

Error with Many-to-Many when primary keys are VARCHAR #1951

Closed
dlaprade opened this issue Nov 13, 2017 · 2 comments
Closed

Error with Many-to-Many when primary keys are VARCHAR #1951

dlaprade opened this issue Nov 13, 2017 · 2 comments

Comments

@dlaprade
Copy link

Version Info

  • Directus version and branch: 6.4.3
  • PHP version: 7.1.11
  • MySQL version: MariaDB 10.1
  • Web server: Apache
  • OS name and version: Debian Jessie Linux

Expected Behavior

I created a many-to-many relationship between two tables with a join table that have primary keys of type VARCHAR. The data_type of the many-to-many shows up as "ALIAS". When I am creating a new many-to-many, I expect that when I choose from a list of items, I can select a few of them, then confirm successful save.

Actual Behavior

When I am creating a new many-to-many, when I click choose existing, it comes up with a list of items, I can select a few of them, but when confirming (blue checkbox) it fails with the error show below.

Steps to Reproduce

  1. Create TABLE_A with VARCHAR primary key
  2. Create TABLE_B with VARCHAR primary key
  3. Create JOIN_TABLE_A_B with VARCHAR primary key
  4. In TABLE_A, create a many-to-many relationship, by choosing the junction table JOIN_TABLE_A_B and related table TABLE_B
  5. Save
  6. Select TABLE_A
  7. Click CHOOSE EXISTING buttom in GUI
  8. Select items from TABLE_B
  9. Click choose to save

Schema Dump, Logs, or Screenshots

screen shot 2017-11-10 at 4 14 00 pm

@wellingguzman
Copy link

Hey @dlaprade thanks for reporting this, we are going to take a look at this bug some time this week.

wellingguzman added a commit that referenced this issue Nov 17, 2017
@wellingguzman
Copy link

Closed by 2488d23

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants