{"action":"opened","issue":{"url":"https://api.github.com/repos/rbock/sqlpp11/issues/116","repository_url":"https://api.github.com/repos/rbock/sqlpp11","labels_url":"https://api.github.com/repos/rbock/sqlpp11/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/rbock/sqlpp11/issues/116/comments","events_url":"https://api.github.com/repos/rbock/sqlpp11/issues/116/events","html_url":"https://github.com/rbock/sqlpp11/issues/116","id":175247995,"number":116,"title":"unexpected compile error with dynamic_select","user":{"login":"matthijs","id":36565,"avatar_url":"https://avatars.githubusercontent.com/u/36565?v=3","gravatar_id":"","url":"https://api.github.com/users/matthijs","html_url":"https://github.com/matthijs","followers_url":"https://api.github.com/users/matthijs/followers","following_url":"https://api.github.com/users/matthijs/following{/other_user}","gists_url":"https://api.github.com/users/matthijs/gists{/gist_id}","starred_url":"https://api.github.com/users/matthijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthijs/subscriptions","organizations_url":"https://api.github.com/users/matthijs/orgs","repos_url":"https://api.github.com/users/matthijs/repos","events_url":"https://api.github.com/users/matthijs/events{/privacy}","received_events_url":"https://api.github.com/users/matthijs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-06T13:33:06Z","updated_at":"2016-09-06T13:33:06Z","closed_at":null,"body":"Hello Roland,\r\n\r\nWhen I construct the query as follows and trying to get the results:\r\n```c++\r\n    auto qry = sqlpp::dynamic_select(db)\r\n        .from(m_table)\r\n        .dynamic_columns()\r\n        .dynamic_where()\r\n        .dynamic_offset()\r\n        .dynamic_limit();\r\n\r\n    qry.selected_columns.add(m_table.id);\r\n    qry.offset.set(static_cast<int64_t>(offset));\r\n    qry.limit.set(static_cast<int64_t>(limit));\r\n    try {\r\n        for(const auto &row: db(qry)) {\r\n            std::cout << \"row.id: \" << row.id << std::endl;\r\n        }\r\n    } catch(const sqlpp::exception &e) {\r\n        std::cerr << e.what() << std::endl;\r\n        return 1;\r\n    }\r\n```\r\n\r\nI'll get a compile error:\r\n[ 12%] Building CXX object CMakeFiles/management.dir/main.cpp.o\r\n/home/matthijs/Projects/test/main.cpp:40:35: error: no member named 'id' in\r\n      'sqlpp::dynamic_result_row_t<sqlpp::postgresql::connection>'\r\n                        std::cout << \"row.id: \" << row.id << std::endl;\r\n                                                   ~~~ ^\r\n1 error generated.\r\nCMakeFiles/management.dir/build.make:62: recipe for target 'CMakeFiles/management.dir/main.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/management.dir/main.cpp.o] Error 1\r\n\r\nI didn't expect this compile error.\r\n\r\nRegards, Matthijs"}}
{"actor":{"display_login":"matthijs"}}