I am using slick 3.2.1
I need to insert "0" into a column which is auto-increment (MySQL).
I wrote this code
val foo = Foo(0, "FOO")
val fooQuery = Tables.FooTable forceInsert foo
Await.result(db.run(fooQuery), Duration.Inf)
My hope was that forceinsert
will put the exact value of 0 in the column rather than using the database provided incremented value.
The code above executes fine. but when I go into DB I see that the ID is 1. So its not forcing the id to 0. it is still using the database provided value.