Opened 15 years ago
Closed 13 years ago
#13 closed defect (fixed)
select mr==mr from mr not work
Reported by: | Owned by: | Peter Baumann | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | manuals_and_examples | Version: | 8.0 |
Keywords: | == | Cc: | Dimitar Misev |
Complexity: | Medium |
Description
select mr==mr from mr not work
also select 1==1 from mr not work
Change History (6)
comment:1 by , 15 years ago
Component: | qlparser → manuals_and_examples |
---|---|
Owner: | set to |
Priority: | major → minor |
Status: | new → assigned |
- "1==1" is not supported by rasql
- "mr==mr" needs to be written as "mr = mr" - maybe a documentation bug? → check
comment:2 by , 13 years ago
Yes indeed, the ql guide says:
==, <, >, <=; >=, != For two MDD values (or evaluated MDD expressions), compare for each coordinate the corresponding cells to obtain the Boolean result indicated by the operation. Note that comparison works on all atomic cell types. On composite types, only == and != make sense with the meaning that, for two cells with identical structure, all components undergo a pairwise comparison.
Should be fixed in the documentation.
comment:3 by , 13 years ago
Cc: | added |
---|
Additionally, select mr = mr from mr
doesn't print t/f, this should also be fixed.
comment:4 by , 13 years ago
This documentation error caught me out as well (March 2012). I'm not sure what the comment about only == and != making sense for composite types means. Do we have to use a different equality comparison operator depending on the type we are comparing?
comment:5 by , 13 years ago
It means the <, >, … on composite types are not supported, but only = and !=
comment:6 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
adjusted documentation: no "==", but "=" to be used.