diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-12-17 07:29:54 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-12-17 07:31:29 +0100 |
commit | c302a773d4cabca7f7bc5871be6c2003b05fafa3 (patch) | |
tree | 3197cc8e98d7a2ddadf0f2bad9c04260404bdd82 | |
parent | 85d1e39d742d7798369b0071f9a5de5f62810d39 (diff) |
cppcheck: fix statements that begin with string constant
Change-Id: I42427beeae06f607e60aeeb7142714fd1f5d740d
-rw-r--r-- | connectivity/source/drivers/hsqldb/HUser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<XDatabaseMetaData> 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<XStatement> xStmt = m_xConnection->createStatement(); @@ -254,7 +254,7 @@ void SAL_CALL OHSQLUser::revokePrivileges( const OUString& objName, sal_Int32 ob { Reference<XDatabaseMetaData> 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<XStatement> xStmt = m_xConnection->createStatement(); |