From 4e4fe7cd6d5bc6451569e3926e1799ead3f4f950 Mon Sep 17 00:00:00 2001 From: Steve <43149795+steve-fischer-200@users.noreply.github.com> Date: Thu, 15 Aug 2024 18:00:08 -0400 Subject: [PATCH] Update UserReferenceFactory.java fix sql params bug --- .../java/org/gusdb/wdk/model/user/UserReferenceFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/src/main/java/org/gusdb/wdk/model/user/UserReferenceFactory.java b/Model/src/main/java/org/gusdb/wdk/model/user/UserReferenceFactory.java index b2d6e77f5..9197d2e8f 100644 --- a/Model/src/main/java/org/gusdb/wdk/model/user/UserReferenceFactory.java +++ b/Model/src/main/java/org/gusdb/wdk/model/user/UserReferenceFactory.java @@ -77,7 +77,7 @@ public int addUserReference(User user) throws WdkModelException { .replace(USER_SCHEMA_MACRO, _userSchema) .replace(IS_GUEST_VALUE_MACRO, _userDb.getPlatform().convertBoolean(isGuest).toString()); return new SQLRunner(_userDb.getDataSource(), sql, "insert-user-ref") - .executeUpdate(new Object[]{ userId, userId, insertedOn }, INSERT_USER_REF_PARAM_TYPES); + .executeUpdate(new Object[]{ userId, insertedOn }, INSERT_USER_REF_PARAM_TYPES); } catch (SQLRunnerException e) { throw WdkModelException.translateFrom(e);