Skip to content

Commit

Permalink
Fixed Truncated incorrect DOUBLE value error
Browse files Browse the repository at this point in the history
When I attempt to run this SQL script, the statement on line 62 would fail. Adding quotes solved the issue, and the sql script now runs successfully on MySQL Server (5.7.24-0ubuntu0.18.04.1). I tested the changes with getmangos.sh, and now completes successfully on the database phase.
  • Loading branch information
Ren6767 authored and billy1arm committed Jan 12, 2019
1 parent 2567fdc commit 4d0344a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ BEGIN


SET @summonid := (SELECT MAX(id) FROM `creature_ai_summons`); SET @summonid := (SELECT MAX(id) FROM `creature_ai_summons`);
-- Remove current Nightlash placeholder. -- Remove current Nightlash placeholder.
DELETE FROM `creature_ai_summons` WHERE `comment` = 1983; DELETE FROM `creature_ai_summons` WHERE `comment` = '1983';
-- Added script summon location. -- Added script summon location.
INSERT INTO `creature_ai_summons` (`id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `comment`) VALUES(@summonid+1,1073.84,1543.37,28.6752,0.174533,300000,1983); INSERT INTO `creature_ai_summons` (`id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `comment`) VALUES(@summonid+1,1073.84,1543.37,28.6752,0.174533,300000,1983);
-- Added 10% chance to summon Nightlash. -- Added 10% chance to summon Nightlash.
Expand Down

0 comments on commit 4d0344a

Please sign in to comment.