Closed GoogleCodeExporter closed 9 years ago
I did a test of this with HSQL and didn't find a problem.
Using key property won't work because what is coming back from the database is
the column name - not the property name and they may not necessarily be the
same. MyBatis assumes that the driver will only return generated columns in
the returned ResultSet from the getGeneratedKeys() call.
Is the PostgreSql driver returning, basically, a result set with each column
from the insert and null values for the non generated columns?
Original comment by jeffgbut...@gmail.com
on 30 Dec 2010 at 12:21
This is fixed in SVN. It is fixed by adding a new attribute "keyColumn" to the
@Options annotation and the <insert> tag. This attribute can be used to
specify a key column name in cases like PostgreSQL where the problem is as
described above.
Original comment by jeffgbut...@gmail.com
on 5 Jan 2011 at 2:02
Original comment by eduardo.macarron
on 3 Mar 2012 at 9:11
Original issue reported on code.google.com by
aye...@gmail.com
on 17 Aug 2010 at 5:02