This is an automated email from the ASF dual-hosted git repository.

isjarana pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new a2ac18b00b Queries
     new eb534f7e65 Merge pull request #368 from isururanawaka/metaschedular
a2ac18b00b is described below

commit a2ac18b00bc49ea1318b0cd9e4a14b9f0092474d
Author: Isuru Ranawaka <[email protected]>
AuthorDate: Thu Dec 29 17:13:34 2022 -0500

    Queries
---
 .../apache/airavata/registry/core/repositories/AbstractRepository.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/AbstractRepository.java
 
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/AbstractRepository.java
index 3d0590766c..bb23f4c5f1 100644
--- 
a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/AbstractRepository.java
+++ 
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/repositories/AbstractRepository.java
@@ -165,7 +165,7 @@ public abstract class AbstractRepository<T, E, Id> {
         }
         try {
            Query nativeQuery =  entityManager.createNativeQuery(query);
-           for(int i=1;i<params.length;i++){
+           for(int i=1;i<=params.length;i++){
                nativeQuery.setParameter(i,params[i]);
            }
            nativeQuery.executeUpdate();

Reply via email to