db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [db-jdo] 16/43: JDO-370: fix invalid query in SetterReplacePreviousValues test case
Date Fri, 07 May 2021 23:11:58 GMT
This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch origin/2.0.1
in repository https://gitbox.apache.org/repos/asf/db-jdo.git

commit 48ac17469e884b0ed491922562128ce79c1b669d
Author: Michael Bouschen <mbo@apache.org>
AuthorDate: Thu Apr 20 15:40:00 2006 +0000

    JDO-370: fix invalid query in SetterReplacePreviousValues test case
---
 .../apache/jdo/tck/query/api/SetterReplacePreviousValues.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tck20/src/java/org/apache/jdo/tck/query/api/SetterReplacePreviousValues.java
b/tck20/src/java/org/apache/jdo/tck/query/api/SetterReplacePreviousValues.java
index 2e22530..b1f71b1 100644
--- a/tck20/src/java/org/apache/jdo/tck/query/api/SetterReplacePreviousValues.java
+++ b/tck20/src/java/org/apache/jdo/tck/query/api/SetterReplacePreviousValues.java
@@ -73,7 +73,7 @@ public class SetterReplacePreviousValues extends QueryTest {
         /*EXCLUDE*/     null,
         /*WHERE*/       "personid == 1L",
         /*VARIABLES*/   null,
-        /*PARAMETERS*/  "String x",
+        /*PARAMETERS*/  null,
         /*IMPORTS*/     null,
         /*GROUP BY*/    null,
         /*ORDER BY*/    null,
@@ -136,22 +136,22 @@ public class SetterReplacePreviousValues extends QueryTest {
         query = VALID_QUERIES[index].getAPIQuery(getPM());
         query.setFilter("personid == 2L");
         executeJDOQuery(ASSERTION_FAILED, query, VALID_QUERIES[index].toString(), false,

-                parameters, expectedResult[index], true);
+                null, expectedResult[index], true);
         query = VALID_QUERIES[index].getSingleStringQuery(getPM());
         query.setFilter("personid == 2L");
         executeJDOQuery(ASSERTION_FAILED, query, VALID_QUERIES[index].toString(), false,

-                parameters, expectedResult[index], true);
+                null, expectedResult[index], true);
         
         // replace variable declaration
         index++;
         query = VALID_QUERIES[index].getAPIQuery(getPM());
         query.declareVariables("Employee e");
         executeJDOQuery(ASSERTION_FAILED, query, VALID_QUERIES[index].toString(), false,

-                parameters, expectedResult[index], true);
+                null, expectedResult[index], true);
         query = VALID_QUERIES[index].getSingleStringQuery(getPM());
         query.declareVariables("Employee e");
         executeJDOQuery(ASSERTION_FAILED, query, VALID_QUERIES[index].toString(), false,

-                parameters, expectedResult[index], true);
+                null, expectedResult[index], true);
     }
     
     /**

Mime
View raw message