airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [40/50] airavata git commit: AIRAVATA-2335 Making order of CREDENTIALS columns explicit instead of relying on database default ordering
Date Mon, 03 Apr 2017 16:50:13 GMT
AIRAVATA-2335 Making order of CREDENTIALS columns explicit instead of relying on database default
ordering


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/4066b6cc
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/4066b6cc
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/4066b6cc

Branch: refs/heads/master
Commit: 4066b6ccca98bce862bd8d726eb5d8d72e890196
Parents: 41cc920
Author: Marcus Christie <machristie@apache.org>
Authored: Mon Mar 27 13:36:27 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Mon Mar 27 13:36:27 2017 -0400

----------------------------------------------------------------------
 .../airavata/credential/store/store/impl/db/CredentialsDAO.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/4066b6cc/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
----------------------------------------------------------------------
diff --git a/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
b/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
index 7770590..7a13539 100644
--- a/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
+++ b/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
@@ -87,7 +87,7 @@ public class CredentialsDAO extends ParentDAO {
     public void addCredentials(String gatewayId, Credential credential, Connection connection)
             throws CredentialStoreException {
 
-        String sql = "INSERT INTO CREDENTIALS VALUES (?, ?, ?, ?, ?, ?, ?)";
+        String sql = "INSERT INTO CREDENTIALS (GATEWAY_ID, TOKEN_ID, BLOB, PORTAL_USER_ID,
TIME_PERSISTED, DESCRIPTION, CREDENTIAL_OWNER_TYPE) VALUES (?, ?, ?, ?, ?, ?, ?)";
 
         PreparedStatement preparedStatement = null;
 


Mime
View raw message