{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/1401","repository_url":"https://api.github.com/repos/npgsql/npgsql","labels_url":"https://api.github.com/repos/npgsql/npgsql/issues/1401/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/npgsql/issues/1401/comments","events_url":"https://api.github.com/repos/npgsql/npgsql/issues/1401/events","html_url":"https://github.com/npgsql/npgsql/issues/1401","id":201238556,"number":1401,"title":"Query parameters logged in wrong order","user":{"login":"omatrot","id":4366356,"avatar_url":"https://avatars.githubusercontent.com/u/4366356?v=3","gravatar_id":"","url":"https://api.github.com/users/omatrot","html_url":"https://github.com/omatrot","followers_url":"https://api.github.com/users/omatrot/followers","following_url":"https://api.github.com/users/omatrot/following{/other_user}","gists_url":"https://api.github.com/users/omatrot/gists{/gist_id}","starred_url":"https://api.github.com/users/omatrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omatrot/subscriptions","organizations_url":"https://api.github.com/users/omatrot/orgs","repos_url":"https://api.github.com/users/omatrot/repos","events_url":"https://api.github.com/users/omatrot/events{/privacy}","received_events_url":"https://api.github.com/users/omatrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-17T10:39:16Z","updated_at":"2017-01-17T14:04:57Z","closed_at":null,"body":"I have the following PostgreSQL function declared as the following:\r\n>CREATE OR REPLACE FUNCTION public.test(param1 integer, param2 character varying, param3 character varying)\r\n\r\nI'm using Dapper to call this function like this:\r\n>cnx.QueryAsync($@\"SELECT * FROM public.test(@Param1, @Param2, @Param3);\",\r\nnew { Param1 = 12, Param2 = mylongstring1, Param3 = mylongstring2});\r\n\r\nAs you can see the first parameter is of type integer, the 2 remaining are of type character vayring. Following is the ouput in the log:\r\n\r\n>Executing statement(s):\r\n>\tselect * from public.test($1, $2, $3)\r\n>Parameters:\r\n>\t$1: mylongstring1\t$2: mylongstring2\t$3: 51\r\n\r\nFor the last part, it shoud be:\r\n>\t$1: 51\t$2: mylongstring1\t$3: mylongstring2\r\ninstead.\r\n"},"comment":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/comments/273169354","html_url":"https://github.com/npgsql/npgsql/issues/1401#issuecomment-273169354","issue_url":"https://api.github.com/repos/npgsql/npgsql/issues/1401","id":273169354,"user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T14:04:57Z","updated_at":"2017-01-17T14:04:57Z","body":"@omatrot have deleted the previous comments and will take a look."}}
{"actor":{"display_login":"roji"}}