Alakar wrote:here is the problem with patch.sql
remove the definers that they even left themselves notes on line 3 not to do =)
line 3: -- NOTE: do not use DEFINER for stored procedures and functions here
Okay then here is a howto:
Open patch.sql in your favorite text editor.
Find and Replace the following line with nothing
DEFINER=`root`@`localhost`
so "DEFINER=`root`@`localhost`" becomes ""
-Alakar
Michael_von_Westphal wrote:Alakar wrote:here is the problem with patch.sql
remove the definers that they even left themselves notes on line 3 not to do =)
line 3: -- NOTE: do not use DEFINER for stored procedures and functions here
Okay then here is a howto:
Open patch.sql in your favorite text editor.
Find and Replace the following line with nothing
DEFINER=`root`@`localhost`
so "DEFINER=`root`@`localhost`" becomes ""
-Alakar
yea, made this change right after patch, my servers runs fine, none of these reported problems while playing
TimKing wrote:Michael_von_Westphal wrote:Alakar wrote:here is the problem with patch.sql
remove the definers that they even left themselves notes on line 3 not to do =)
line 3: -- NOTE: do not use DEFINER for stored procedures and functions here
Okay then here is a howto:
Open patch.sql in your favorite text editor.
Find and Replace the following line with nothing
DEFINER=`root`@`localhost`
so "DEFINER=`root`@`localhost`" becomes ""
-Alakar
yea, made this change right after patch, my servers runs fine, none of these reported problems while playing
I finally found the line but there are 2 lines. Do i just change both ?
DROP FUNCTION IF EXISTS _getMaxSkillValue;
CREATE DEFINER=`root`@`localhost` FUNCTION `_getMaxSkillValue`(
`in_parentSkillValue` INT UNSIGNED
)
RETURNS INT UNSIGNED
BEGIN
declare skillAmountMult INT UNSIGNED DEFAULT 10000000;
if(in_parentSkillValue < 30*skillAmountMult) then
return 0;
elseif(in_parentSkillValue < 60*skillAmountMult) then
return (30*skillAmountMult - 1);
end if;
return 100*skillAmountMult;
END;
DROP PROCEDURE IF EXISTS _transferSkillStraight;
CREATE DEFINER=`root`@`localhost` PROCEDURE _transferSkillStraight(
IN `in_oldSkillTypeID` INT UNSIGNED,
IN `in_newSkillTypeID` INT UNSIGNED
TimKing wrote:Michael_von_Westphal wrote:Alakar wrote:here is the problem with patch.sql
remove the definers that they even left themselves notes on line 3 not to do =)
line 3: -- NOTE: do not use DEFINER for stored procedures and functions here
Okay then here is a howto:
Open patch.sql in your favorite text editor.
Find and Replace the following line with nothing
DEFINER=`root`@`localhost`
so "DEFINER=`root`@`localhost`" becomes ""
-Alakar
yea, made this change right after patch, my servers runs fine, none of these reported problems while playing
I finally found the line but there are 2 lines. Do i just change both ?
DROP FUNCTION IF EXISTS _getMaxSkillValue;
CREATE DEFINER=`root`@`localhost` FUNCTION `_getMaxSkillValue`(
`in_parentSkillValue` INT UNSIGNED
)
RETURNS INT UNSIGNED
BEGIN
declare skillAmountMult INT UNSIGNED DEFAULT 10000000;
if(in_parentSkillValue < 30*skillAmountMult) then
return 0;
elseif(in_parentSkillValue < 60*skillAmountMult) then
return (30*skillAmountMult - 1);
end if;
return 100*skillAmountMult;
END;
DROP PROCEDURE IF EXISTS _transferSkillStraight;
CREATE DEFINER=`root`@`localhost` PROCEDURE _transferSkillStraight(
IN `in_oldSkillTypeID` INT UNSIGNED,
IN `in_newSkillTypeID` INT UNSIGNED