From: olegmad <ol...@ya...> - 2003-10-21 14:27:43
|
> Fixed in CVS, you can use it without start a transaction and > it will work ok or get latest CVS sources, i ahave added a > nunit test case too. I get lastest CVS sources, but problem not fixed. That code work fine, but if I uncomment one line - exception will throw. using System; using System.Data; using System.Data.Common; using FirebirdSql.Data.Firebird; namespace ConsoleApplication { class MainClass { static private readonly string ConnectionString = @"Server=80.80.104.12;Database=c:\temp\carlos.gdb;Charset=UNICODE_FSS;Connec tion Lifetime=15;Dialect=3;User=carlos;Password=carlos;"; static void Main(string[] args) { FbConnection connection = new FbConnection(ConnectionString); connection.Open(); FbCommand command = new FbCommand("MYPROC", connection); //command.Transaction = connection.BeginTransaction(); // if uncomment THIS line - generate exception :( command.CommandType = CommandType.StoredProcedure; FbCommandBuilder.DeriveParameters(command); connection.Close(); } } } |