Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-31 Thread le roy arnaud
> Ps: In the others providers the databind method set the property > datareader > property isclosed to true only if the CommandBehavior is to > CloseConnection; > So i think that all the problem is in the dispose implementation ! ^

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-30 Thread Carlos Guzmán Álvarez
Hello: > In fact when the second parameter of the dbenumerator constructor is > true the datareader is automatically close at the end of the iteration; > "MSDN said" : > > [DbEnumerator (IDataReader, Boolean) > > Initializes a new instance of the DbEnumerator class using the > specified DataRea

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-30 Thread Le roy Arnaud
> What about this one: > > return new DbEnumerator(this, = > > this.IsCommandBehavior(CommandBehavior.CloseConnection)); In fact when the second parameter of the dbenumerator constructor is true the datareader is automatically close at the end of the iteration; "MSDN said" : [DbEnumerator (IDa

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-30 Thread Le roy Arnaud
> Hello: >> I try the new dispose implemmentation but it doesn't work the properties >> have not changed and the connection still open :( >> >> I search also but for the moment i don't find witch method is called by t= >> he data binding method to close the datareader and the connection :( >> =

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-30 Thread Carlos Guzmán Álvarez
Hello: > OK i found the solution in fact when a control do a databind with a > datareader the overiden GetEnumerator is called and now it returns "New > Dbenumerator(this)" or it sould return "New > DbEnumerator(this,(CommandBehavior.Default != > (CommandBehavior.CloseConnection & this._behavior))

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Carlos Guzmán Álvarez
Hello: > I try the new dispose implemmentation but it doesn't work the properties > have not changed and the connection still open :( > > I search also but for the moment i don't find witch method is called by the > data binding method to close the datareader and the connection :( > And is the D

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-29 Thread le roy arnaud
> The problem is that the connection is not closed after the gridview > databind > and the property fbdatareader.isclosed is false or with other provider as > oracle or sql server the connection is closed > > > > It'is a bug or not ? OK i found the solution in fact when a control do a databind wit

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread le roy arnaud
> Hello: >> After a databind of course :) > Ok change committed into the CVS could you give a try to it when it's > ready for pserver connections ?? > I try the new dispose implemmentation but it doesn't work the properties have not changed and the connection still open :( I search also but for

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Le roy Arnaud
It maybe ... i will try to confirm it .. if possible Can you check in the case of sql server what is the state of the data reader immediatly after the instruction where you do the data binding ?? the data reader state after the data binding in the sql server provider is : PROPERTY : I

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Le roy Arnaud
It maybe ... i will try to confirm it .. if possible :P Can you check in the case of sql server what is the state of the data reader immediatly after the instruction where you do the data binding ?? the data reader state after the data binding in the sql server provider is : PROPERTY

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Carlos Guzmán Álvarez
Hello: After a databind of course :) Ok change committed into the CVS could you give a try to it when it's ready for pserver connections ?? -- Carlos Guzmán Álvarez Vigo-Spain http://carlosga.blogspot.com/ No hay un solo rey que no descienda de un esclavo, ni un esclavo que no haya tenido

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Carlos Guzmán Álvarez
Hello: i do some search and the isclosed property of sqldatareader is set to true after a databind only if the commandbehavior is set to closeconnection ! So i put a breakpoint in the fbdatareader close method and she is never called. More over the last fbdatareader method called by the databind

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Jiri Cincura
On 29.5.2006 14:13 +0200 le roy arnaud wrote: Do you have pooling swithced off? No pooling is on why ? I think, that the problem is, that the connection is in pool for next use, to save time for opening connection again. Try to switch it off. -- Jiri Cincura http://www.cincura.net/ --

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Le roy Arnaud
I put a breakpoint into the fbdatareader close method and this method is never called ! After a databind of course :) --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest numb

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Le roy Arnaud
Pooling is on by default. I think the difference agaisnt sqlclient maybe in the dispose implementation, i have it modified in my local tree but i want to wait first to see if you can answer my last question, before commit something I put a breakpoint into the fbdatareader close method and thi

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread Carlos Guzmán Álvarez
Hello: No pooling is on why ? Pooling is on by default. I think the difference agaisnt sqlclient maybe in the dispose implementation, i have it modified in my local tree but i want to wait first to see if you can answer my last question, before commit something -- Carlos Guzmán Álvarez Vi

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread le roy arnaud
> Do you have pooling swithced off? No pooling is on why ? --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem

2006-05-29 Thread le roy arnaud
i do some search and the isclosed property of sqldatareader is set to true after a databind only if the commandbehavior is set to closeconnection ! So i put a breakpoint in the fbdatareader close method and she is never called. More over the last fbdatareader method called by the databind is Read

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-28 Thread Carlos Guzmán Álvarez
Hello: The problem is that the connection is not closed after the gridview databind and the property fbdatareader.isclosed is false or with other provider as oracle or sql server the connection is closed If that happens is because the Close Method is not being called, can you try to build the p

Re: [Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-26 Thread Jiri Cincura
On 26.5.2006 11:07 +0200 le roy arnaud wrote: The problem is that the connection is not closed after the gridview databind and the property fbdatareader.isclosed is false or with other provider as oracle or sql server the connection is closed It'is a bug or not ? Do you have pooling swithc

[Firebird-net-provider] v 2.0 rc 4.0 CommandBehavior problem !

2006-05-26 Thread le roy arnaud
Hello, I have a problem with this code in an asp.net 2.0 applicattion: FbDataReader d; FbConnection fb = new FbConnection(ConfigurationManager.ConnectionStrings["Template"].ConnectionString); fb.Open(); FbCommand fc = new FbCommand("select * from categories", fb); d = fc.ExecuteReader(CommandBeha