Skip to content

Commit

Permalink
Merge pull request #111 from SAP-samples/endresult-updates-november-2023
Browse files Browse the repository at this point in the history
removing bug with hana password
  • Loading branch information
matthieupelatan authored Dec 4, 2023
2 parents 620cfd4 + cc3d401 commit f97a12f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f97a12f

Please sign in to comment.