Author: cbegin Date: Tue Aug 4 01:46:43 2009 New Revision: 800651 URL: http://svn.apache.org/viewvc?rev=800651&view=rev Log: added BEGIN synonym for RESET
Modified: ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/jdbc/SelectBuilder.java ibatis/trunk/java/ibatis-3/ibatis-3-core/src/test/java/org/apache/ibatis/binding/BoundBlogSql.java Modified: ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/jdbc/SelectBuilder.java URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/jdbc/SelectBuilder.java?rev=800651&r1=800650&r2=800651&view=diff ============================================================================== --- ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/jdbc/SelectBuilder.java (original) +++ ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/jdbc/SelectBuilder.java Tue Aug 4 01:46:43 2009 @@ -9,6 +9,10 @@ private static final ThreadLocal<SelectSQL> localSQL = new ThreadLocal<SelectSQL>(); + public static void BEGIN() { + RESET(); + } + public static void RESET() { localSQL.set(new SelectSQL()); } Modified: ibatis/trunk/java/ibatis-3/ibatis-3-core/src/test/java/org/apache/ibatis/binding/BoundBlogSql.java URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-3/ibatis-3-core/src/test/java/org/apache/ibatis/binding/BoundBlogSql.java?rev=800651&r1=800650&r2=800651&view=diff ============================================================================== --- ibatis/trunk/java/ibatis-3/ibatis-3-core/src/test/java/org/apache/ibatis/binding/BoundBlogSql.java (original) +++ ibatis/trunk/java/ibatis-3/ibatis-3-core/src/test/java/org/apache/ibatis/binding/BoundBlogSql.java Tue Aug 4 01:46:43 2009 @@ -5,7 +5,7 @@ public class BoundBlogSql { public String selectBlogsSql() { - RESET(); + BEGIN(); SELECT("*"); FROM("BLOG"); return SQL();