[Npgsql-devel] About Seek operation problem in Npgsql
Francisco Figueiredo Jr.
francisco at npgsql.org
Wed Mar 18 22:56:53 UTC 2009
Hi all!
I could get what was left in the buffer of the stream when the problem arise.
I know this isn't the more elegant way of doing it, but it showed me
some very nice information :)
In NpgsqlQuery, method WriteToStream, just change this line:
outputStream.WriteByte((byte)FrontEndMessageCode.Query);
to that:
try
{
outputStream.WriteByte((byte)FrontEndMessageCode.Query);
}
catch (Exception e)
{
for (int i=0; i<100; i++)
Console.WriteLine((char)outputStream.ReadByte());
}
And see what appears in the console.
Somehow the flow in Npgsql about error handling isn't being followed well.
I'll investigate that with more attention.
--
Regards,
Francisco Figueiredo Jr.
Npgsql Lead Developer
http://www.npgsql.org
http://fxjr.blogspot.com
http://twitter.com/franciscojunior
Sent from: Brasilia DF Brazil.
More information about the Npgsql-devel
mailing list