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.
Note:
See TracTickets
for help on using tickets.
Can be tested in source:manuals_and_examples/examples/c++
To test just create an empty collection with rasql first.