Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOT x LIKE triggers "too many nested operators" #3871

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

NOT x LIKE triggers "too many nested operators" #3871

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
bug Something isn't working normal SQL

Comments

@monetdb-team
Copy link

Date: 2015-11-18 12:57:04 +0100
From: @yzchang
To: SQL devs <>
Version: 11.21.11 (Jul2015-SP1)
CC: @yzchang

Last updated: 2016-01-15 11:37:35 +0100

Comment 21550

Date: 2015-11-18 12:57:04 +0100
From: @yzchang

The following query triggers a "too many nested operators" error:

CREATE TABLE foo (col CHAR(8));
INSERT INTO foo VALUES ('bee');
SELECT * FROM foo WHERE NOT col LIKE 'b%';

Comment 21551

Date: 2015-11-18 13:04:26 +0100
From: MonetDB Mercurial Repository <>

Changeset 2995f557a12f made by Jennie Zhang y.zhang@cwi.nl in the MonetDB repo, refers to this bug.

For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=2995f557a12f

Changeset description:

Added test for Bug #3871

Comment 21552

Date: 2015-11-18 13:12:14 +0100
From: @yzchang

There are two ways of combining NOT and LIKE: NOT x LIKE y and x NOT LIKE y. The first case was not properly dealt with, which results in an infinite recursion when processing logical value expressions. The recursion ends in a "Too many nested operators" error.

This bug is fixed by Changeset: 9d0956084854 Also, the combination: NOT x NOT LIKE y should work now.

@monetdb-team monetdb-team added bug Something isn't working normal SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working normal SQL
Projects
None yet
Development

No branches or pull requests

2 participants