Version 7.2
SELECT INSTR('1+2+3','+',-1,2);
Result (correct): 2
SELECT INSTR('1++3','+',-1,2);
Result (incorrect): 0
FWIW, INSTRB is not affected by this bug and serves as a viable workaround for (rare) cases that this arises.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.