Skip to content

Commit

Permalink
removing 'even number' logic as it's not tied with LoB type. Test sho…
Browse files Browse the repository at this point in the history
…uld probably be re-written as it doesn't make much sense.
  • Loading branch information
rene-ye committed Oct 25, 2018
1 parent 354735b commit 9cc7d4b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ private void testInvalidLobs(Class lobClass, boolean isResultSet) throws SQLExce
datasize = packetSize;
break;
case 1:
//NClobs are always 2 bytes per character, generate an even number only
datasize = packetSize + (ThreadLocalRandom.current().nextInt(packetSize/2) * 2);
datasize = packetSize + ThreadLocalRandom.current().nextInt(packetSize) + 1;
break;
default:
datasize = packetSize - ThreadLocalRandom.current().nextInt(packetSize);
Expand Down

0 comments on commit 9cc7d4b

Please sign in to comment.