You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MySQL doesn't return data in mutations so Hasura creates temporary tables so Hasura can retain and select the data after a mutation. These tables don't have a primary key which is causing the following error on the MySQL server.
Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key'
Describe the solution you'd like
Hasura to use primary keys in temporary tables
Describe alternatives you've considered
The following variable can be set in MySQL
SET sql_require_primary_key = 0;
The text was updated successfully, but these errors were encountered:
pari-m
changed the title
Mutations in My_SQL fail when sql_require_primary_key = 1 in the DB
Mutations in My SQL fail when sql_require_primary_key = 1 in the DB
May 13, 2024
pari-m
changed the title
Mutations in My SQL fail when sql_require_primary_key = 1 in the DB
Mutations in My SQL fail when sql_require_primary_key = 1 in set in the DB
May 13, 2024
Is your proposal related to a problem?
MySQL doesn't return data in mutations so Hasura creates temporary tables so Hasura can retain and select the data after a mutation. These tables don't have a primary key which is causing the following error on the MySQL server.
Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key'
Describe the solution you'd like
Hasura to use primary keys in temporary tables
Describe alternatives you've considered
The following variable can be set in MySQL
SET sql_require_primary_key = 0;
The text was updated successfully, but these errors were encountered: