Merge pull request #4064 from javfindly/patch-1
Add PostgreSQL support for DSLContext.lastId()
This commit is contained in:
commit
0c10d02ede
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user