You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Daniel John Debrunner <dj...@apache.org> on 2008/02/05 23:33:56 UTC
Re: svn commit: r618788 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql:
conn/GenericLanguageConnectionContext.java execute/BaseActivation.java
mamta@apache.org wrote:
> Author: mamta
> Date: Tue Feb 5 13:50:16 2008
> New Revision: 618788
> + a.clearHeapConglomerateController();
> + if (!a.isSingleExecution())
> + a.clearWarnings();
These lines seem to be new, not moved from reset().
Could you explain why they are needed now and not before (or if I missed
them being deleted from a another part of the diff).
Thanks,
Dan.
Re: svn commit: r618788 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql: conn/GenericLanguageConnectionContext.java execute/BaseActivation.java
Posted by Mamta Satoor <ms...@gmail.com>.
Thanks, Andrew.
On 2/5/08, Andrew McIntyre <mc...@gmail.com> wrote:
> On Feb 5, 2008 10:22 PM, Mamta Satoor <ms...@gmail.com> wrote:
> > I am trying to change the commit comments using
> > svn propedit --revprop -r 618788 svn:log
> > But i keep getting
> > svn: Inconsistent line-endings in source stream
> >
> > Can someone try to do this for me or tell me what i am doing wrong.
>
> You were doing the right thing, not sure why it wouldn't let you
> submit the log change. It worked for me, so no worries, the comment is
> now changed.
>
> cheers,
> andrew
>
Re: svn commit: r618788 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql: conn/GenericLanguageConnectionContext.java execute/BaseActivation.java
Posted by Andrew McIntyre <mc...@gmail.com>.
On Feb 5, 2008 10:22 PM, Mamta Satoor <ms...@gmail.com> wrote:
> I am trying to change the commit comments using
> svn propedit --revprop -r 618788 svn:log
> But i keep getting
> svn: Inconsistent line-endings in source stream
>
> Can someone try to do this for me or tell me what i am doing wrong.
You were doing the right thing, not sure why it wouldn't let you
submit the log change. It worked for me, so no worries, the comment is
now changed.
cheers,
andrew
Re: svn commit: r618788 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql: conn/GenericLanguageConnectionContext.java execute/BaseActivation.java
Posted by Mamta Satoor <ms...@gmail.com>.
I am trying to change the commit comments using
svn propedit --revprop -r 618788 svn:log
But i keep getting
svn: Inconsistent line-endings in source stream
Can someone try to do this for me or tell me what i am doing wrong.
I would like the new commit comments to be
DERBY-3304
This commit addresses two issues.
First of all, it cleanups up reset method in BaseActivation which was
doing more than just bringing the Activation back
to pre-execution state. The method had to make itself aware of
holdability and what
kind of resultset it was dealing with
before closing or clearing the row of the resultset. The reason for
this behavior
is commit code path was relying on
Activation.reset to do more than just bringing the activation to
pre-execution state.
I fixed this by moving this code
from BaseActivation.reset to GenericLanguageConnectionContext.resetActivations.
Additionally, in the new code in
GenericLanguageConnectionContext.resetActivations, I added the code to
not close the
language result sets associated with activations that do not return
rows even if activation may have holdability set to
false. This will ensure that a commit inside a java procedure will not
inadvertantly close the resultset associated with
the java procedure call.
Additionally, I copied some of the cleanup work(as shown below) from
BaseActivation.reset into
new code in GenericLanguageConnectionContext.resetActivations
a.clearHeapConglomerateController();
if (!a.isSingleExecution())
a.clearWarnings();
This code above was always getting executed at the time of commit
before my commit and because of that, I decided to copy
it in GenericLanguageConnectionContext.resetActivations. If anyone has
any comments on this, please let me know.
On 2/5/08, Mamta Satoor <ms...@gmail.com> wrote:
> Actually, in the jira entry, DERBY-3304, I posted following comment
> which is related to your question
> ************************************Comment copied from DERBY-3304************
> As part of my committing the changes for this jira entry, I copied
> some of the cleanup work(as shown below) from BaseActivation.reset
> into new code in GenericLanguageConnectionContext.resetActivations
> a.clearHeapConglomerateController();
> if (!a.isSingleExecution())
> a.clearWarnings();
>
> This code was always getting executed at the time of commit before my
> commit and because of that, I decided to copy it in
> GenericLanguageConnectionContext.resetActivations If anyone has any
> comments on this, please let me know.
> ************************************End of comment copied from DERBY-3304******
>
> I probably should have put this info in the commit comment. I will go
> ahead and edit the commit comment.
>
> thanks,
> Mamta
>
> On 2/5/08, Daniel John Debrunner <dj...@apache.org> wrote:
> > mamta@apache.org wrote:
> > > Author: mamta
> > > Date: Tue Feb 5 13:50:16 2008
> > > New Revision: 618788
> >
> > > + a.clearHeapConglomerateController();
> > > + if (!a.isSingleExecution())
> > > + a.clearWarnings();
> >
> > These lines seem to be new, not moved from reset().
> >
> > Could you explain why they are needed now and not before (or if I missed
> > them being deleted from a another part of the diff).
> >
> > Thanks,
> > Dan.
> >
>
Re: svn commit: r618788 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql: conn/GenericLanguageConnectionContext.java execute/BaseActivation.java
Posted by Mamta Satoor <ms...@gmail.com>.
Actually, in the jira entry, DERBY-3304, I posted following comment
which is related to your question
************************************Comment copied from DERBY-3304************
As part of my committing the changes for this jira entry, I copied
some of the cleanup work(as shown below) from BaseActivation.reset
into new code in GenericLanguageConnectionContext.resetActivations
a.clearHeapConglomerateController();
if (!a.isSingleExecution())
a.clearWarnings();
This code was always getting executed at the time of commit before my
commit and because of that, I decided to copy it in
GenericLanguageConnectionContext.resetActivations If anyone has any
comments on this, please let me know.
************************************End of comment copied from DERBY-3304******
I probably should have put this info in the commit comment. I will go
ahead and edit the commit comment.
thanks,
Mamta
On 2/5/08, Daniel John Debrunner <dj...@apache.org> wrote:
> mamta@apache.org wrote:
> > Author: mamta
> > Date: Tue Feb 5 13:50:16 2008
> > New Revision: 618788
>
> > + a.clearHeapConglomerateController();
> > + if (!a.isSingleExecution())
> > + a.clearWarnings();
>
> These lines seem to be new, not moved from reset().
>
> Could you explain why they are needed now and not before (or if I missed
> them being deleted from a another part of the diff).
>
> Thanks,
> Dan.
>