Fatal error: Uncaught exception 'ErrorException' with message 'Error: FUNCTION FIX_PRICE_BY_CURRENCY already exists<br />Error No: 1304<br />CREATE FUNCTION FIX_PRICE_BY_CURRENCY(price decimal(15, 4), currency varchar(5)) RETURNS decimal BEGIN DECLARE new_price decimal; DECLARE rate decimal; SET new_price = price; CASE WHEN currency = 'UAH' THEN SET new_price = price * (1.00000000 / 1.00000000); WHEN currency = 'USD' THEN SET new_price = price * (1.00000000 / 0.03952569); WHEN currency = 'EUR' THEN SET new_price = price * (1.00000000 / 0.03636364); END CASE; RETURN new_price; END' in /home/snast/snastiopt.com/www/system/database/mysqli.php:41 Stack trace: #0 /home/snast/snastiopt.com/www/vqmod/vqcache/vq2-system_library_db.php(29): DBMySQLi->query('CREATE FUNCTION...') #1 /home/snast/snastiopt.com/www/system/library/currency.php(272): DB->query('CREATE FUNCTION...') #2 /home/snast/snastiopt.com/www/system/library/currency.php(28): Currency->createCurrencie in /home/snast/snastiopt.com/www/system/database/mysqli.php on line 41