cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1566009 - /cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/query/SQLTemplateTest.java
Date Sat, 08 Feb 2014 12:51:12 GMT
Author: aadamchik
Date: Sat Feb  8 12:51:12 2014
New Revision: 1566009

URL: http://svn.apache.org/r1566009
Log:
CAY-1470 Oracle: Problem with bind CHAR in select

removing CAY-1470 test - after all the issue is not fixed, and we can't get a clean build

Modified:
    cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/query/SQLTemplateTest.java

Modified: cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/query/SQLTemplateTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/query/SQLTemplateTest.java?rev=1566009&r1=1566008&r2=1566009&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/query/SQLTemplateTest.java
(original)
+++ cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/query/SQLTemplateTest.java
Sat Feb  8 12:51:12 2014
@@ -55,32 +55,6 @@ public class SQLTemplateTest extends Ser
         dbHelper.deleteAll("ARTIST");
     }
 
-    public void testBindCHARInWHERE() {
-        // add 2 Artists
-        DataMap testDataMap = context.getEntityResolver().getDataMap("testmap");
-        SQLTemplate q1 = new SQLTemplate(
-                testDataMap,
-                "INSERT INTO ARTIST VALUES (1, 'Surikov', null)",
-                true);
-        SQLTemplate q2 = new SQLTemplate(
-                testDataMap,
-                "INSERT INTO ARTIST VALUES (2, 'Shishkin', null)",
-                true);
-        QueryChain chain = new QueryChain();
-        chain.addQuery(q1);
-        chain.addQuery(q2);
-        context.performNonSelectingQuery(chain);
-        // now select one Artist by Name, It's matter that ARTIST_NAME is CHAR not VARCHAR
-        SQLTemplate s1 = new SQLTemplate(
-                testDataMap,
-                "SELECT * FROM ARTIST WHERE ARTIST_NAME = #bind($ARTIST_NAME)",
-                true);
-        // whitespace after name is for reason
-        s1.setParameters(Collections.singletonMap("ARTIST_NAME", "Surikov "));
-        List<DataRow> result = context.performQuery(s1);
-        assertEquals(1, result.size());
-    }
-
     public void testSQLTemplateForDataMap() {
         DataMap testDataMap = context.getEntityResolver().getDataMap("testmap");
         SQLTemplate q1 = new SQLTemplate(testDataMap, "SELECT * FROM ARTIST", true);



Mime
View raw message