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 e9ff0ef0ac Queries
new ea03a7645d Merge pull request #369 from isururanawaka/metaschedular
e9ff0ef0ac is described below
commit e9ff0ef0acc4092c37302dc3d2d4f19d448e05eb
Author: Isuru Ranawaka <[email protected]>
AuthorDate: Thu Dec 29 17:26:57 2022 -0500
Queries
---
.../airavata/registry/core/repositories/AbstractRepository.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 bb23f4c5f1..3d35149135 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,8 +165,8 @@ public abstract class AbstractRepository<T, E, Id> {
}
try {
Query nativeQuery = entityManager.createNativeQuery(query);
- for(int i=1;i<=params.length;i++){
- nativeQuery.setParameter(i,params[i]);
+ for(int i=0;i<params.length;i++){
+ nativeQuery.setParameter((i+1),params[i]);
}
nativeQuery.executeUpdate();
} catch(Exception e) {