• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

SQL Error Fix for v117 Public Source (SourceDEV)

Junior Spellweaver
Joined
Sep 23, 2012
Messages
129
Reaction score
17
Find :

Code:
PreparedStatement psa = con.prepareStatement("INSERT INTO wz_itemadddata(itemid, `key`, value1, value2) VALUES (?, ?, ?, ?)");

Replace

Code:
PreparedStatement psa = con.prepareStatement("INSERT INTO wz_itemadddata(itemid, `key`, `subKey`, `value`) VALUES (?, ?, ?, ?)");

this should fix any items dump error,have no idea why it was like this it might be noob proof to stop noob who dont know Java..

I dont give any ratass about the what goes on anymore it is boring and full of leechers..
 
Joined
Feb 7, 2010
Messages
3
Reaction score
0
Where do i search for this? I cant find preparedstatement psa anywhere...In the sql, or in the scr folder or in the dist folders (Inside every file also)
 
Newbie Spellweaver
Joined
Feb 14, 2011
Messages
58
Reaction score
2
Where do i search for this? I cant find preparedstatement psa anywhere...In the sql, or in the scr folder or in the dist folders (Inside every file also)
I have the same problem i cant find "preparedstatement"
 
Newbie Spellweaver
Joined
Feb 14, 2011
Messages
58
Reaction score
2
Thanks but now i have this error

Code:
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
[Err] CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `readable_cheatlog` AS select `a`.`name` AS `accountname`,`a`.`id` AS `accountid`,`c`.`name` AS `name`,`c`.`id` AS `characterid`,`cl`.`offense` AS `offense`,`cl`.`count` AS `count`,`cl`.`lastoffensetime` AS `lastoffensetime`,`cl`.`param` AS `param` from ((`cheatlog` `cl` join `characters` `c`) join `accounts` `a`) where ((`cl`.`id` = `c`.`id`) and (`a`.`id` = `c`.`accountid`) and (`a`.`banned` = 0) ;
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group by `cl`.`id` order by sum(`cl`.`count`) desc' at line 1
[Err] CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `readable_last_hour_cheatlog` AS select `a`.`name` AS `accountname`,`a`.`id` AS `accountid`,`c`.`name` AS `name`,`c`.`id` AS `characterid`,sum(`cl`.`count`) AS `numrepos` from ((`cheatlog` `cl` join `characters` `c`) join `accounts` `a`) where ((`cl`.`id` = `c`.`id`) and (`a`.`id` = `c`.`accountid`) and (timestampdiff(HOUR,`cl`.`lastoffensetime`,now() < 1) and (`a`.`banned` = 0) group by `cl`.`id` order by sum(`cl`.`count`) desc ;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
 
Newbie Spellweaver
Joined
Jan 12, 2013
Messages
23
Reaction score
1
Umm But lol you dont need to edit sql in this fix lol :)
 
Back
Top