Opened 15 years ago

Closed 13 years ago

#13 closed defect (fixed)

select mr==mr from mr not work

Reported by: j.yu@… 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 Peter Baumann, 15 years ago

Component: qlparsermanuals_and_examples
Owner: set to Peter Baumann
Priority: majorminor
Status: newassigned
  • "1==1" is not supported by rasql
  • "mr==mr" needs to be written as "mr = mr" - maybe a documentation bug? → check

comment:2 by Dimitar Misev, 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 Dimitar Misev, 13 years ago

Cc: Dimitar Misev added

Additionally, select mr = mr from mr doesn't print t/f, this should also be fixed.

comment:4 by Marcus Sen, 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 Dimitar Misev, 13 years ago

It means the <, >, … on composite types are not supported, but only = and !=

comment:6 by Peter Baumann, 13 years ago

Resolution: fixed
Status: assignedclosed

adjusted documentation: no "==", but "=" to be used.

Note: See TracTickets for help on using tickets.