Opened 11 years ago

Closed 10 years ago

#520 closed defect (fixed)

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

Reported by: Veranika Liaukevich Owned by: Bidesh Thapaliya
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 by Dimitar Misev, 10 years ago

Owner: changed from Dimitar Misev to Bidesh Thapaliya
Status: newassigned

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

To test just create an empty collection with rasql first.

comment:2 by Bidesh Thapaliya, 10 years ago

patch submitted.

comment:3 by Bidesh Thapaliya, 10 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.