Opened 7 years ago

Closed 5 years ago

#13 closed defect (fixed)

select mr==mr from mr not work

Reported by: j.yu@… Owned by: pbaumann
Priority: minor Milestone:
Component: manuals_and_examples Version: 8.0
Keywords: == Cc: dmisev
Complexity:

Description

select mr==mr from mr not work
also select 1==1 from mr not work

Change History (6)

comment:1 Changed 7 years ago by pbaumann

  • Component changed from qlparser to manuals_and_examples
  • Owner set to pbaumann
  • Priority changed from major to minor
  • Status changed from new to assigned
  • "1==1" is not supported by rasql
  • "mr==mr" needs to be written as "mr = mr" - maybe a documentation bug? -> check

comment:2 Changed 5 years ago by dmisev

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 Changed 5 years ago by dmisev

  • Cc dmisev added

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

comment:4 Changed 5 years ago by Marcus Sen

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 Changed 5 years ago by dmisev

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

comment:6 Changed 5 years ago by pbaumann

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Note: See TracTickets for help on using tickets.