igor-sadchenko / brig

Brig is a collection of cross-platform C++ 11 header only libraries that offers interaction with many databases and usability of the geometric data.
https://code.google.com/p/brig
1 stars 0 forks source link

Unable to do OR query operations on column #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Apologies if you can do this, I was unable to find it in the documentation.

What steps will reproduce the problem?
1. Create some data which is for multiple years, say 2013 and 2014
2. Try and query based on this

What is the expected output? What do you see instead?

To match data which is in both 2013 and 2014.  Instead I can only get data for 
one year.

What version of the product are you using? On what operating system?
brig 1306

Please provide any additional information below.

  tbl.query_columns.push_back("Year");
  tbl["Year"]->query_value = 2013;
  tbl["Year"]->query_value = 2014;

This just overwrites the query_value with the last one.  You almost want to 
have query_value as a vector which you push back into, with them all been ORs.

Original issue reported on code.google.com by david.mo...@gmail.com on 25 Sep 2013 at 1:58