{"action":"created","issue":{"url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql/issues/20","repository_url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql","labels_url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql/issues/20/comments","events_url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql/issues/20/events","html_url":"https://github.com/rbock/sqlpp11-connector-mysql/issues/20","id":154943059,"number":20,"title":"parameter buffer is NULL for MYSQL_TYPE_STRING parameters!","user":{"login":"juandent","id":5367573,"avatar_url":"https://avatars.githubusercontent.com/u/5367573?v=3","gravatar_id":"","url":"https://api.github.com/users/juandent","html_url":"https://github.com/juandent","followers_url":"https://api.github.com/users/juandent/followers","following_url":"https://api.github.com/users/juandent/following{/other_user}","gists_url":"https://api.github.com/users/juandent/gists{/gist_id}","starred_url":"https://api.github.com/users/juandent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juandent/subscriptions","organizations_url":"https://api.github.com/users/juandent/orgs","repos_url":"https://api.github.com/users/juandent/repos","events_url":"https://api.github.com/users/juandent/events{/privacy}","received_events_url":"https://api.github.com/users/juandent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-05-16T00:56:50Z","updated_at":"2016-09-09T18:16:19Z","closed_at":null,"body":"Hi Roland,\r\n\r\nBuilding with a debug build of MySQL I have found what I think is a bug. Looking at the following function you can verify that `meta_data.bound_text_buffer.size()` is 0. Or putting it another way, `meta_data.bound_text_buffer.data()` is NULL. This causes an assert violation inside `mysql-5.7.12\\mysql-5.7.12\\libmysql\\libmysql.c`, line 4078, `DBUG_ASSERT(param->buffer_length != 0);`. Please see if you can confirm this...\r\n\r\n```C++\r\nvoid bind_result_t::_bind_text_result(size_t index, const char** value, size_t* len)\r\n    {\r\n      if (_handle->debug)\r\n        std::cerr << \"MySQL debug: binding text result at index: \" << index << std::endl;\r\n\r\n      detail::result_meta_data_t& meta_data = _handle->result_param_meta_data[index];\r\n      meta_data.index = index;\r\n      meta_data.len = len;\r\n      meta_data.is_null = nullptr;\r\n      meta_data.text_buffer = value;\r\n\r\n      MYSQL_BIND& param = _handle->result_params[index];\r\n      param.buffer_type = MYSQL_TYPE_STRING;\r\n      param.buffer = meta_data.bound_text_buffer.data();\r\n      param.buffer_length = meta_data.bound_text_buffer.size();\r\n      param.length = &meta_data.bound_len;\r\n      param.is_null = &meta_data.bound_is_null;\r\n      param.is_unsigned = false;\r\n      param.error = &meta_data.bound_error;\r\n    }\r\n```\r\n\r\nRegards,\r\nJuan"},"comment":{"url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql/issues/comments/245995265","html_url":"https://github.com/rbock/sqlpp11-connector-mysql/issues/20#issuecomment-245995265","issue_url":"https://api.github.com/repos/rbock/sqlpp11-connector-mysql/issues/20","id":245995265,"user":{"login":"juandent","id":5367573,"avatar_url":"https://avatars.githubusercontent.com/u/5367573?v=3","gravatar_id":"","url":"https://api.github.com/users/juandent","html_url":"https://github.com/juandent","followers_url":"https://api.github.com/users/juandent/followers","following_url":"https://api.github.com/users/juandent/following{/other_user}","gists_url":"https://api.github.com/users/juandent/gists{/gist_id}","starred_url":"https://api.github.com/users/juandent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juandent/subscriptions","organizations_url":"https://api.github.com/users/juandent/orgs","repos_url":"https://api.github.com/users/juandent/repos","events_url":"https://api.github.com/users/juandent/events{/privacy}","received_events_url":"https://api.github.com/users/juandent/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T18:16:19Z","updated_at":"2016-09-09T18:16:19Z","body":"Hi Roland,\n\nWhere in Github.com will you refer to the GUI issue? This is SO important to me - and as you say, for many others!!\n\nBest regards,\nJuan\n\n> On Sep 8, 2016, at 11:03 PM, Roland Bock <notifications@github.com> wrote:\n> \n> Hi Juan,\n> \n> OK, so you mean you (and MSVC users in general) can take care of the NOMINMAX without changes in the library?\n> \n> As for the GUI, I'll answer in the chat, since I guess that topic might be interesting for more people.\n> \n> Best,\n> \n> Roland\n> \n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub <https://github.com/rbock/sqlpp11-connector-mysql/issues/20#issuecomment-245820182>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFHnFZQm0Yy0CBy6-xiMI1nhE1pYq1Bcks5qoOiPgaJpZM4Ie-B3>.\n> \n\n"}}
{"actor":{"display_login":"juandent"}}