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

SELECT: no such binary operator 'sql_add(boolean,boolean)' #3289

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

SELECT: no such binary operator 'sql_add(boolean,boolean)' #3289

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

Comments

@monetdb-team
Copy link

Date: 2013-05-24 19:43:01 +0200
From: Peter <<Peter.DeRijk>>
To: SQL devs <>
Version: 11.15.7 (Feb2013-SP2)
CC: @njnes

Last updated: 2013-07-03 08:48:02 +0200

Comment 18748

Date: 2013-05-24 19:43:01 +0200
From: Peter <<Peter.DeRijk>>

The example code below gives the following error in the final select:
SELECT: no such binary operator 'sql_add(boolean,boolean)'
The query is supported by other databases and is (afaik) valid sql.

mclient -d monetdbtest -s 'drop table t' || true
mclient -d monetdbtest -s 'create table t ("v1" int,"v2" int, "v3" int)'
mclient -d monetdbtest -s 'insert into t ("v1","v2","v3") values (1,1,1)'
mclient -d monetdbtest -s 'insert into t ("v1","v2","v3") values (1,2,1)'
mclient -d monetdbtest -s 'insert into t ("v1","v2","v3") values (1,2,3)'
mclient -d monetdbtest -s 'insert into t ("v1","v2","v3") values (4,4,4)'
mclient -d monetdbtest -s 'select * from t where (("v1" > 1)+("v2" > 1)+("v3" > 1)) > 1'

Comment 18759

Date: 2013-05-31 19:32:20 +0200
From: MonetDB Mercurial Repository <>

Changeset c7531a9567d0 made by Niels Nes niels@cwi.nl in the MonetDB repo, refers to this bug.

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

Changeset description:

fixed bug #3289 and added test

Comment 18760

Date: 2013-05-31 19:33:35 +0200
From: @njnes

fixed bug by handling boolean add/sub

@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 Nov 9, 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