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
If preloadreader is false, then the result is right.
If preloadreader is true, then the result is not right. The return value of HasRows has been always False.
I am troubled by these two bugs.
When is this bug fixed?
When is other bug(SSPI authentication#162) fixed?
Sorry. This bug is fixed in master branch. Are you able to try it?
As for a HasRows problem, my application has to connect the preloadread option by true.It is because multiple DataReaders are opened.
I hope Npgsql to support MARS.
There's a good chance we'll be removing the preloader support in version 3.0, in which case this issue will no longer be relevant. Keeping open to wait on final decision in #312...
Activity
franciscojunior commentedon May 3, 2014
I've marked this issue as a bug. We will check that.
Thanks for your feedback!
t-oka commentedon May 21, 2014
Hello,
I have a question still. (2013-12-02)
http://pgfoundry.org/forum/forum.php?thread_id=15708&forum_id=519&group_id=1000140
The value of HasRows changes by a row position. (Npgsql 2.0.12)
Is it Npgsql's specification or bug?
create table chkhasrows
(
linenum int
);
insert into chkhasrows values(1);
insert into chkhasrows values(2);
insert into chkhasrows values(3);
NpgsqlCommand command = conn.CreateCommand();
command.CommandText = "select * from chkhasrows";
NpgsqlDataReader reader;
reader = command.ExecuteReader();
while (reader.Read())
{
Debug.WriteLine(reader.HasRows);
}
reader.Close();
Result of PostgreSQL:
True
True
False
Result of SQL Server and Oracle:
True
True
True
franciscojunior commentedon May 21, 2014
Can you try latest version of Npgsql 2.1.3? We have some fixes for the HasRows property.
#181
t-oka commentedon May 22, 2014
Thank you for your reply.
I'm trying Npgsql 2.1.3.
If preloadreader is false, then the result is right.
If preloadreader is true, then the result is not right. The return value of HasRows has been always False.
I am troubled by these two bugs.
When is this bug fixed?
When is other bug(SSPI authentication#162) fixed?
franciscojunior commentedon May 22, 2014
#162 should already have been fixed by #170 . Can you give it a try and let us know if it works ok for you?
t-oka commentedon May 23, 2014
I'm trying SSPI on Npgsql 2.1.3. again.
It is the same procedure as before.
http://pgfoundry.org/forum/forum.php?thread_id=15711&forum_id=519&group_id=1000140
The result was the same.
FATAL: could not accept SSPI security context
Detail:The token supplied to the function is invalid
(80090308)
As for a HasRows problem, my application has to connect the preloadread option by true.It is because multiple DataReaders are opened.
I hope Npgsql to support MARS.
I am troubled by the bug of SSPI and HasRows.
franciscojunior commentedon May 25, 2014
Sorry. This bug is fixed in master branch. Are you able to try it?
I see. I'll have a look at this HasRows problem.
t-oka commentedon Jun 6, 2014
I tried the master branch.
It has connected by SSPI authentication.
I appreciate it.
[-]HasRows property's bug[/-][+]HasRows doesn't work with preload reader[/+]roji commentedon Aug 8, 2014
It seems I closed this by mistake. I can confirm that when the preloader is in use HasRows returns false.
roji commentedon Aug 14, 2014
There's a good chance we'll be removing the preloader support in version 3.0, in which case this issue will no longer be relevant. Keeping open to wait on final decision in #312...
roji commentedon Sep 3, 2014
We've voted to drop the preload reader in version 3.0 (see #312), closing this issue as no longer relevant.