db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r151216 - incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TriggerEventActivator.java
Date Thu, 03 Feb 2005 19:57:54 GMT
Author: djd
Date: Thu Feb  3 11:57:54 2005
New Revision: 151216

URL: http://svn.apache.org/viewcvs?view=rev&rev=151216
Log:
Remove some obsolete replication related code.

Modified:
    incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TriggerEventActivator.java

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TriggerEventActivator.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TriggerEventActivator.java?view=diff&r1=151215&r2=151216
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TriggerEventActivator.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TriggerEventActivator.java
Thu Feb  3 11:57:54 2005
@@ -99,26 +99,7 @@
 
 		cc = (ConnectionContext)lcc.getContextManager().
 									getContext(ConnectionContext.CONTEXT_ID);
-		/*
-		** During replication we may not have a connection context.
-		** in that case, we'll get a proxy connection that will
-		** push a connection context.  This looks really expensive
-		** but we'll probably need a jdbc connection anyway, so
-		** it is more or less unavoidable.
-		*/
-		if (cc == null)
-		{
-			java.sql.Connection conn;
-			try
-			{
-				conn = ((BaseActivation)activation).getCurrentConnection();
-				cc = (ConnectionContext)lcc.getContextManager().
-										getContext(ConnectionContext.CONTEXT_ID);
-			} catch (SQLException e)
-			{
-				throw StandardException.unexpectedUserException(e);
-			}
-		}
+
 		this.statementText = lcc.getStatementContext().getStatementText();
 
 		this.tec = ((GenericExecutionFactory)lcc.getLanguageConnectionFactory().getExecutionFactory()).



Mime
View raw message