From 24bd06a578fbbad79cc71dedbc400dd6b9aaf969 Mon Sep 17 00:00:00 2001 From: D056267 Date: Mon, 4 Dec 2023 10:06:37 +0100 Subject: [PATCH] removing bug with hana password --- .../main/java/dev/kyma/samples/easyfranchise/dbservice/DB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/easyfranchise/source/backend/db-service/src/main/java/dev/kyma/samples/easyfranchise/dbservice/DB.java b/code/easyfranchise/source/backend/db-service/src/main/java/dev/kyma/samples/easyfranchise/dbservice/DB.java index 79164c2..772e3a3 100644 --- a/code/easyfranchise/source/backend/db-service/src/main/java/dev/kyma/samples/easyfranchise/dbservice/DB.java +++ b/code/easyfranchise/source/backend/db-service/src/main/java/dev/kyma/samples/easyfranchise/dbservice/DB.java @@ -244,7 +244,7 @@ public static String onboard(String tenantId, TenantInfo tenantInfo) { // create user and schema emAdmin.getTransaction().begin(); - Query q = emAdmin.createNativeQuery("CREATE USER " + schema + " PASSWORD " + tenant.getPassword() + " NO FORCE_FIRST_PASSWORD_CHANGE;"); + Query q = emAdmin.createNativeQuery("CREATE USER " + schema + " PASSWORD \"" + tenant.getPassword() + "\" NO FORCE_FIRST_PASSWORD_CHANGE;"); q.executeUpdate(); q = emAdmin.createNativeQuery("ALTER USER " + schema + " DISABLE PASSWORD LIFETIME;"); q.executeUpdate();