Merge pull request #4064 from javfindly/patch-1

Add PostgreSQL support for DSLContext.lastId()
This commit is contained in:
Lukas Eder 2015-02-17 08:58:16 +01:00
commit 0c10d02ede

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