Skip to content

Commit

Permalink
fix (sql compatibility): use sys_context to query tenant name on orac…
Browse files Browse the repository at this point in the history
…le mode (#58)
  • Loading branch information
whhe committed Mar 12, 2024
1 parent b1eaac1 commit 27b0dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ public String getSysDatabase() {

@Override
public String getQueryTenantNameStatement() {
return "SELECT TENANT_NAME FROM SYS.DBA_OB_TENANTS";
return "SELECT SYS_CONTEXT('USERENV', 'CON_NAME') FROM DUAL";
}
}

0 comments on commit 27b0dab

Please sign in to comment.