Menu

#1745 General error in LOCATE when offset is set to NULL

version 2.5.x
open-fixed
None
5
2026-03-11
2026-03-11
No

How to reproduce

Run:

LOCATE('bar', 'foobar', NULL)

Expected

The result is NULL because one of the arguments is NULL

Actual

General error

Discussion

  • Fred Toussi

    Fred Toussi - 2026-03-11
    • status: open --> open-fixed
    • assigned_to: Fred Toussi
     
  • Fred Toussi

    Fred Toussi - 2026-03-11

    Thanks for reporting. Fixed and committed to SVN.

     

Log in to post a comment.

MongoDB Logo MongoDB