From cc3d401b822dba4090bfed6d5db80bba6f110a2e Mon Sep 17 00:00:00 2001 From: D056267 Date: Mon, 4 Dec 2023 10:05:53 +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();