I have a small problem. I'm using a hsqldb, and
use a table with an autoincrement PK. I need to pass null for the PK for the autoincrement to be done on the DB side. In SQL, it looks like :
insert into table values (null,"name"...)
Pride enforces the use of a non null pk (or set it
to 0 by default).
How can I do that ?
Thanks.
Olivier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, found the solution.
I switch the type used for the PK, from int to Integer. Now, when inserting without setting
the value for the PK, it defaults corectly to null.
Thanks anyway.
Olivier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
First of all, thank you for this great library!
I have a small problem. I'm using a hsqldb, and
use a table with an autoincrement PK. I need to pass null for the PK for the autoincrement to be done on the DB side. In SQL, it looks like :
insert into table values (null,"name"...)
Pride enforces the use of a non null pk (or set it
to 0 by default).
How can I do that ?
Thanks.
Olivier
OK, found the solution.
I switch the type used for the PK, from int to Integer. Now, when inserting without setting
the value for the PK, it defaults corectly to null.
Thanks anyway.
Olivier