Author: cbegin
Date: Wed Nov 11 04:46:06 2009
New Revision: 834766
URL: http://svn.apache.org/viewvc?rev=834766&view=rev
Log:
IBATIS-659 unit tests for quoted column names
Added:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/CreateDB.sql
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/Map.xml
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/MapperConfig.xml
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/QuotedColumnNamesTest.java
Added:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/CreateDB.sql
URL:
http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/CreateDB.sql?rev=834766&view=auto
==
---
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/CreateDB.sql
(added)
+++
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/CreateDB.sql
Wed Nov 11 04:46:06 2009
@@ -0,0 +1,12 @@
+create table names (
+ ID int,
+ FIRST_NAME varchar(20),
+ LAST_NAME varchar(20)
+);
+
+insert into names (ID, FIRST_NAME, LAST_NAME) values(1, 'Fred', 'Flintstone');
+insert into names (ID, FIRST_NAME, LAST_NAME) values(2, 'Wilma', 'Flintstone');
+insert into names (ID, FIRST_NAME, LAST_NAME) values(3, 'Pebbles',
'Flintstone');
+insert into names (ID, FIRST_NAME, LAST_NAME) values(4, 'Barney', 'Rubble');
+insert into names (ID, FIRST_NAME, LAST_NAME) values(5, 'Betty', 'Rubble');
+insert into names (ID, FIRST_NAME, LAST_NAME) values(6, 'Bamm Bamm', 'Rubble');
Added:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/Map.xml
URL:
http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/Map.xml?rev=834766&view=auto
==
---
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/Map.xml
(added)
+++
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/Map.xml
Wed Nov 11 04:46:06 2009
@@ -0,0 +1,24 @@
+
+http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd";>
+
+
+
+ select
+ ID as "id",
+ FIRST_NAME as "firstName",
+ LAST_NAME as "lastName"
+ from names
+
+
+
+
+
+
+
+
+
+
+ select *
+ from names
+
+
Added:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/MapperConfig.xml
URL:
http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/MapperConfig.xml?rev=834766&view=auto
==
---
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/MapperConfig.xml
(added)
+++
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/MapperConfig.xml
Wed Nov 11 04:46:06 2009
@@ -0,0 +1,29 @@
+
+
+http://ibatis.apache.org/dtd/ibatis-3-config.dtd";>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/QuotedColumnNamesTest.java
URL:
http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/QuotedColumnNamesTest.java?rev=834766&view=auto
==
---
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/QuotedColumnNamesTest.java
(added)
+++
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/submitted/quotedcolumnnames/QuotedColumnNamesTest.java
Wed Nov 11 04:46:06 2009
@@ -0,0 +1,90 @@
+package org.apache.ibatis.submitted.quotedcolumnnames;
+
+import java.io.PrintWriter;
+import java.io.Reader;
+import