Skip to content

DB into() does not compile for more than 20 members in a tuple #3342

Closed
@stephb9959

Description

Compiling on OS/X Everything is fine. This project has been working for months.

Here is some code that will not compile:

std::string St1{"select * from users where email=?"};
typedef Poco::Tuple<    int, int , int, int , int , int, int , int , int , int , int , int ,
                    int, int , int, int , int , int, int , int , int , int , int , int > RInfo;
std::vector<RInfo> Records;
            
Statement << St1 ,
                Poco::Data::Keywords::into(Records),
                Poco::Data::Keywords::use(email);
 Statement.execute();

This code breaks as soon as you get to 21 entries in your tuple. It only breaks in into(). The rest of the code compiles where we use up to 29 entries in our tuple. I have not been able to find a limit in the documentation

If this is a limit, are there plans on removing it? Is there another way to achieve what we need to achieve?

Thanks

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions