From d526bd7dd5b94be6fe5a823372da1facca3d43fa Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 30 Oct 2019 20:27:26 +0100 Subject: Fix StringAdd::isCompileTimeConstant ...to find StringLiteral on the RHS of +=. Which revealed that the VisitCompoundStmt/checkForCompoundAssign logic needed to be fixed, too, so that s += side_effect(); s += "literal"; s += side_effect(); only gets combined to s += side_effect() + "literal"; s += side_effect(); and not all the way to s += side_effect() + "literal" + side_effect(); Change-Id: I432e3458b933a7d0ad6141c747b675cc8b0f0ba4 Reviewed-on: https://gerrit.libreoffice.org/81804 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- connectivity/source/drivers/mysql_jdbc/YViews.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/mysql_jdbc/YViews.cxx b/connectivity/source/drivers/mysql_jdbc/YViews.cxx index 8884e93244c5..96a5c7db9e2c 100644 --- a/connectivity/source/drivers/mysql_jdbc/YViews.cxx +++ b/connectivity/source/drivers/mysql_jdbc/YViews.cxx @@ -118,9 +118,9 @@ void OViews::createView(const Reference& descriptor) OUString sCommand; aSql += ::dbtools::composeTableName(m_xMetaData, descriptor, - ::dbtools::EComposeRule::InTableDefinitions, true); + ::dbtools::EComposeRule::InTableDefinitions, true) + + " AS "; - aSql += " AS "; descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_COMMAND)) >>= sCommand; aSql += sCommand; -- cgit