Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.34.0
Description
This program
SELECT SUBSTRING('string' FROM 2 FOR 2147483646)
returns "" instead of "tring".
This happens because of an overflow in the SqlFunctions substring function:
public static String substring(String c, int s, int l) { int lc = c.length(); int e = s + l; // <<<< OVERFLOW here
Attachments
Issue Links
- links to