It is currently Sun Aug 01, 2010 6:54 am

All times are UTC + 1 hour [ DST ]






Post new topic Reply to topic  [ 2 posts ] 
  Print view Previous topic | Next topic 
Author Message
 Post subject: Data too long for column 'weapon' at row 1...
PostPosted: Tue May 27, 2008 4:52 pm 
Former HLStats team
User avatar

Joined: Tue Dec 11, 2007 1:05 am
Posts: 166
Location: Germany
Looks like this time the error message is telling the truth ;/ ;D

Code:
DBD::mysql::st execute failed: Data too long for column 'weapon' at row 1 at C:\Inetpub\wwwroot\hlstats\daemon/HLstats.p
lib line 109.
Unable to execute query:

                INSERT INTO
                        hlstats_Events_Suicides
                        (
                                eventTime,
                                serverId,
                                map,
playerId,
weapon
                        )
                VALUES
                (
                        NOW(),
                        '1',
                        'ctf_2fort',
'59',
'tf_projectile_pipe_remote'
                )
Data too long for column 'weapon' at row 1


Column weapon is defined as varchar(20), but 'tf_projectile_pipe_remote' is longer...

Badi


Top
 Profile  
 
 Post subject: Re: Data too long for column 'weapon' at row 1...
PostPosted: Tue May 27, 2008 9:35 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
oha....

here is the fix which is also included in the next version:

Code:
# weapon name fix
ALTER TABLE `hlstats_Events_Frags` CHANGE `weapon` `weapon` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `hlstats_Events_Statsme` CHANGE `weapon` `weapon` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `hlstats_Events_Statsme2` CHANGE `weapon` `weapon` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `hlstats_Events_Suicides` CHANGE `weapon` `weapon` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `hlstats_Events_Teamkills` CHANGE `weapon` `weapon` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;

_________________
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
skymiles v1.1 designed by CodeMiles Team -TemplatesDragon-.