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
This code works fine for me (2.1.0, FB 2.0):
using (FbConnection conn = new FbConnection(@"data source=localhost;initial catalog=ucime;user id=SYSDBA;password=masterkey"))
{
conn.Open();
using (FbCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from rdb$database";
using (FbDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection))
{
while (dr.Read())
{
Console.WriteLine(dr[0]);
}
}
}
}
It appears to be a false alarm. Yesterday, I was getting messages from Firebird (didn't write it down) that said message text not found but had the work "Cursor" in it. I *thought* I just removed the CloseConnection flag and it started to work OK. However, when I add that back in now, no error occurs.
I'd file this one away; if I can reproduce, I'll post again.
Submitted by: Chris Wilson (cwilson)
When opening a datareader with CloseConnection setting, get an error message (something about the cursor) when try to read first record.
Workaround: don't use that setting and make sure the dr is manually closed.
The text was updated successfully, but these errors were encountered: