Hi *,

I'm wondering why this code doesn't work. It simply returns no rows
(the Read method on the first call returns false). But the
ExecuteScalar gives me the first returned column right.

...
cmd.CommandText = "insert into sometable values (10, 'ten') returning id, name";
using (FbDataReader reader = cmd.ExecuteReader())
{
  while (reader.Read())
  {
     Console.WriteLine("ID: {0} \t Name: {1}", reader[0], reader[1]);
   }
}

I'm pretty sure, that it has been working, isn't it? Am I try to debug
and locate the problem or it's just as is?

-- 
Jiri {x2} Cincura (Microsoft Student Partner)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to