db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1060480 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/SPSDescriptor.java
Date Tue, 18 Jan 2011 17:18:00 GMT
Author: mamta
Date: Tue Jan 18 17:18:00 2011
New Revision: 1060480

URL: http://svn.apache.org/viewvc?rev=1060480&view=rev
Log:
DERBY-4874 - Trigger does not recognize new size of VARCHAR column expanded with ALTER TABLE.
It fails with ERROR 22001: A truncation error was encountered trying to shrink VARCHAR

Putting the synchronization code in SPSDescriptor for getter and setter methods for the field
"text" (this code is already in 10.6, 10.5, 10.4 and 10.3). Will put this code in 10.7 codeline
next. This way, all the codelines from 10.3 through trunk will have the same synchronization
code 



Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/SPSDescriptor.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/SPSDescriptor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/SPSDescriptor.java?rev=1060480&r1=1060479&r2=1060480&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/SPSDescriptor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/SPSDescriptor.java
Tue Jan 18 17:18:00 2011
@@ -524,7 +524,7 @@ public class SPSDescriptor extends Tuple
 	 *
 	 * @return The text
 	 */
-	public final String getText()
+	public final synchronized String getText()
 	{
 		return text;
 	}
@@ -544,7 +544,7 @@ public class SPSDescriptor extends Tuple
 	 * 
 	 * @param newText
 	 */
-	public final void setText(String newText)
+	public final synchronized void setText(String newText)
 	{
 		text = newText;
 	}



Mime
View raw message