lastId implementation for Postgres

lastId implementation for Postgres
This commit is contained in:
Javier Durante 2015-02-16 10:04:58 +13:00
parent 72de4aa303
commit 7f41e2ed43

View File

@ -1778,6 +1778,10 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri
return select(field).fetchOne(field);
}
case POSTGRES: {
Field<BigInteger> field = field("lastval()", BigInteger.class);
return select(field).fetchOne(field);
}
/* [pro] xx
xxxx xxxxxxxxx x
xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxx xxxxxxxxx xxxxx xxxxx x xxxx xxxxxxxxxxxxxxxxxx