[Libreoffice-commits] core.git: connectivity/source
Julien Nabet
serval2412 at yahoo.fr
Mon Dec 16 22:31:55 PST 2013
connectivity/source/drivers/hsqldb/HUser.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c302a773d4cabca7f7bc5871be6c2003b05fafa3
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Dec 17 07:29:54 2013 +0100
cppcheck: fix statements that begin with string constant
Change-Id: I42427beeae06f607e60aeeb7142714fd1f5d740d
diff --git a/connectivity/source/drivers/hsqldb/HUser.cxx b/connectivity/source/drivers/hsqldb/HUser.cxx
index dc6d8d8..297591e 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();
More information about the Libreoffice-commits
mailing list