Could not store char base data

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Could not store char base data

Post by qwerty13 »

L2J Revision 3921:
L2JDP Revision 7043:

Sometimes i am see this messages in console:

Code: Select all

Could not store char base data: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'punish_ti$Could not store char base data: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'punish_ti$Could not store char base data: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'punish_ti$
This happens after update to revisions 3921\7043. What is that? Maybe im miss something in update?
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Could not store char base data

Post by BiggBoss »

the value you are trying to store in the column punish_ti (i guess is punish_time) is longer than the allowed by the column structure (INT UNSIGNED NOT NULL DEFAULT 0)

SQL INT = From -2^31 (-2.147.483.648) to 2^31-1 (2.147.483.647)
Image
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Could not store char base data

Post by janiii »

characters table:

Code: Select all

`punish_timer` INT UNSIGNED NOT NULL DEFAULT 0,
that means, the timer can have values from 0 to 4294967295 miliseconds (~49 days). so you probably set the timer to more than that allowed value.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Could not store char base data

Post by qwerty13 »

I am check, yes, this happens only when punish time is too big. Its my moderators issue. :lol:
Thanks guys for your explanations. :)
Post Reply