Opened 4 years ago

Closed 3 years ago

#520 closed defect (fixed)

'Type Invalid' exception when accessing an empty collection from c++

Reported by: vliaukevich Owned by: bthapaliya
Priority: major Milestone:
Component: undecided Version: development
Keywords: Cc:
Complexity: Medium

Description

Suppose I have an empty collection and try to access it from a c++ code with the following code:

r_Set< r_Ref< r_GMarray > > set;
r_OQL_Query query("select a from $1 as a");
query << collectionName.c_str();
r_oql_execute( query, set );

This gives me 'Type Invalid' exception. If a collection isn't empty or the set variable has type r_Set<r_Ref_Any>, everything goes as should.

Change History (3)

comment:1 Changed 3 years ago by dmisev

  • Owner changed from dmisev to bthapaliya
  • Status changed from new to assigned

Can be tested in source:manuals_and_examples/examples/c++

To test just create an empty collection with rasql first.

comment:2 Changed 3 years ago by bthapaliya

patch submitted.

comment:3 Changed 3 years ago by bthapaliya

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.