fishing SQL db error ?

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
joshr45
Posts: 96
Joined: Tue Mar 12, 2013 3:03 pm

fishing SQL db error ?

Post by joshr45 » Fri Mar 15, 2013 12:31 am

tried with different rods and lures, happens when "you didn't catch anything" pops up

[00:29:02][SQL] DB error - You have an error in your SQL syntax; check the manua
l that corresponds to your MySQL server version for the right syntax to use near
'.luck,FROM fishing_zone AS zone INNER JOIN fishing_rod AS rod USING (fishid)
I' at line 1

joshr45
Posts: 96
Joined: Tue Mar 12, 2013 3:03 pm

Re: fishing SQL db error ?

Post by joshr45 » Fri Mar 15, 2013 12:56 am

i knew it looked familiar in fishingutils.cpp

Code: Select all

		const int8* Query = 
            "SELECT "
                "fish.fishid,"      // 0
                "fish.min,"         // 1
                "fish.max,"         // 2
                "fish.size,"        // 3
                "fish.stamina,"     // 4
                "fish.watertype,"   // 5
                "rod.flag "         // 6
                "lure.luck,"        // 7
            "FROM fishing_zone AS zone "
            "INNER JOIN fishing_rod  AS rod  USING (fishid) "
			"INNER JOIN fishing_lure AS lure USING (fishid) "
			"INNER JOIN fishing_fish AS fish USING (fishid) "
			"WHERE zone.zoneid = %u AND rod.rodid = %u AND lure.lureid = %u AND lure.luck != 0 "
			"ORDER BY luck"; 

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: fishing SQL db error ?

Post by bluekirby0 » Fri Mar 15, 2013 2:12 am


Post Reply