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

INSERT to ENUM column with NOT NULL errors #8617

Open
jennifersp opened this issue Dec 2, 2024 · 0 comments
Open

INSERT to ENUM column with NOT NULL errors #8617

jennifersp opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working correctness We don't return the same result as MySQL

Comments

@jennifersp
Copy link
Contributor

MySQL:

mysql> create table mytbl (i int primary key, e enum('hi', 'hello') not null);
Query OK, 0 rows affected (0.01 sec)

mysql> insert into mytbl(i) values (1);
Query OK, 1 row affected (0.00 sec)

mysql> select * from mytbl;
+---+----+
| i | e  |
+---+----+
| 1 | hi |
+---+----+
1 row in set (0.00 sec)

Dolt returns error: Field 'v1' doesn't have a default value

@jennifersp jennifersp added bug Something isn't working correctness We don't return the same result as MySQL labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctness We don't return the same result as MySQL
Projects
None yet
Development

No branches or pull requests

1 participant