Permalink
Browse files

escape view-name with backticks

fixes 6290

Related #522
  • Loading branch information...
1 parent 2107529 commit df669c814950361898cd70b3c64240f492e142d5 @alfredbez alfredbez committed with Ambrosius Topor Dec 13, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/Application/Model/Shop.php
@@ -312,7 +312,7 @@ protected function _cleanInvalidViews()
$aViews = $oViewsValidator->getInvalidViews();
foreach ($aViews as $sView) {
- $oDb->execute('DROP VIEW IF EXISTS ' . $sView);
+ $oDb->execute('DROP VIEW IF EXISTS `' . $sView . '`');
}
}

0 comments on commit df669c8

Please sign in to comment.