[jOOQ/jOOQ#18917] KotlinGenerator generates invalid code for Oracle sequences with BigInteger MINVALUE or MAXVALUE flags
This commit is contained in:
parent
30c7bf8bcf
commit
eaae21f47e
@ -9341,7 +9341,10 @@ public class JavaGenerator extends AbstractGenerator {
|
||||
BigInteger bi = (BigInteger) n;
|
||||
int bitLength = ((BigInteger) n).bitLength();
|
||||
if (bitLength > Long.SIZE - 1)
|
||||
return "new java.math.BigInteger(\"" + bi.toString() + "\")";
|
||||
if (kotlin)
|
||||
return "java.math.BigInteger(\"" + bi.toString() + "\")";
|
||||
else
|
||||
return "new java.math.BigInteger(\"" + bi.toString() + "\")";
|
||||
else if (bitLength > Integer.SIZE - 1)
|
||||
return longLiteral(n.longValue());
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user