You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@omatrot I wrote this up as a test but couldn't reproduce, everything seems to be fine. Could you please try to reproduce this in a minimal code sample and submit it?
Here's my test:
[Test]publicasyncTaskDapperOrdering(){using(varconn=OpenConnection()){using(varcmd=newNpgsqlCommand("CREATE FUNCTION pg_temp.test(param1 integer, param2 character varying, param3 character varying) RETURNS int AS $$ SELECT param1 $$ language 'sql'",conn)){cmd.ExecuteNonQuery();}varresults=awaitconn.QueryAsync<int>($@"SELECT * FROM pg_temp.test(@Param1, @Param2, @Param3);",new{Param1=12,Param2="mylongstring1",Param3="mylongstring2"});Assert.That(results.Single(),Is.EqualTo(12));}}
You have to set up logging and look at the traces.
The function call itself is OK, it is just the log output that is not in the correct order. This is confusing.
I'm also using 3.2 and had the same problem in 3.1. This is not always wrong, it would be too simple. May be it is tied to the number and size of the parameters. Let me check.
Activity
roji commentedon Jan 17, 2017
@omatrot have deleted the previous comments and will take a look.
roji commentedon Jan 17, 2017
@omatrot I wrote this up as a test but couldn't reproduce, everything seems to be fine. Could you please try to reproduce this in a minimal code sample and submit it?
Here's my test:
omatrot commentedon Jan 17, 2017
You have to set up logging and look at the traces.
The function call itself is OK, it is just the log output that is not in the correct order. This is confusing.
roji commentedon Jan 17, 2017
SO: http://stackoverflow.com/questions/41697209/dapper-npgsql-dbstring-character-vayring-parameters
roji commentedon Jan 17, 2017
Which logging are you using, Npgsql's? I turned on Npgsql logging and it looks good (I admit I'm using 3.2, this could be a 3.1 issue):
omatrot commentedon Jan 17, 2017
I'm also using 3.2 and had the same problem in 3.1. This is not always wrong, it would be too simple. May be it is tied to the number and size of the parameters. Let me check.
omatrot commentedon Jan 17, 2017
Well, I switched from using Dapper-Async to Dapper and the problem is gone. Bad day.