Hi Matan,
This is not better, but I wanted to do an insert without having to set all the default values managed by MySQL.
Like auto inc, created and updated date, some empty fields.
I do not like to use a transaction for this as the query is much slower.
I was not aware that putting 0 for the auto inc works fine.
I use now 0 for the auto inc fields and null for the NOT NULL DEFAULT CURRENT_TIMESTAMP seems to make the trick.
You said the sql idom does not require transaction. How does it works?
015-04-01 11:12:22,754 DEBUG slick.compiler.QueryCompiler - After phase codeGen:
| ResultSetMapping : Vector[(Long')]
| from s9: CompiledStatement "insert into `card_pay_in` (`id`) values (?)" : (Long')
| map: CompiledMapping : Long'
| converter: BaseResultConverter$mcJ$sp idx=1, name=id : Long'
Preparing insert statement (returning: id): insert into `card_pay_in`
Thanks of lot for your feedback.
Arnaud.