Duplicate entry for auto increment column when execute insert statement
Default value is being inserted into the MySQL Auto Increment Column for insert statement.
Below is the code to reproduce the issue.
dependencies as below
"better-sqlite3": "^11.0.0",
"drizzle-orm": "^0.30.10",
"mysql2": "^3.10.0"
The output on the console is as follows.
Why insert statement set
default
for ai column id
?
Anyone else encountered this issue or mysql schema defination was wrong?
Any comments will be gratefully appreciated, thanks in advance.1 Reply
ddl for mysql