diff --git a/connectivity/source/drivers/hsqldb/HUser.cxx b/connectivity/source/drivers/hsqldb/HUser.cxx index dc6d8d81c6dd..297591eb5092 100644 --- a/connectivity/source/drivers/hsqldb/HUser.cxx +++ b/connectivity/source/drivers/hsqldb/HUser.cxx @@ -228,7 +228,7 @@ void SAL_CALL OHSQLUser::grantPrivileges( const OUString& objName, sal_Int32 obj { Reference xMeta = m_xConnection->getMetaData(); OUString sGrant = "GRANT " + sPrivs + - " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation); + " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation) + " TO " + m_Name; Reference xStmt = m_xConnection->createStatement(); @@ -254,7 +254,7 @@ void SAL_CALL OHSQLUser::revokePrivileges( const OUString& objName, sal_Int32 ob { Reference xMeta = m_xConnection->getMetaData(); OUString sGrant = "REVOKE " + sPrivs + - " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation); + " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation) + " FROM " + m_Name; Reference xStmt = m_xConnection->createStatement();