collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: is the nickname too big?  (Read 1830 times)

0 Members and 1 Guest are viewing this topic.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
is the nickname too big?
« on: April 03, 2011, 04:30:14 am »
Has anyone seen this error?

Does this mean the nickname field isn't large enough for a character name in AoC?

~Kyr

Code: [Select]
MySQL ERROR(# 1) on query: INSERT INTO whois (id, nickname, level, class, craft1
, craft2, location, online, updated) VALUES ('117612832', 'Warlander117612832',
'28', 'Conqueror', '', '', 1294872775, 0, '1301797544') ON DUPLICATE KEY UPDATE
id = VALUES(id), level = VALUES(level), class = VALUES(class), craft1 = VALUES(c
raft1), craft2 = VALUES(craft2), online = VALUES(online), location = VALUES(loca
tion),  updated = VALUES(updated)
Data too long for column 'nickname' at row 1

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: is the nickname too big?
« Reply #1 on: April 04, 2011, 04:19:32 pm »
nickname field in whois table is 15 chars long while it's 25 chars in <botname>_users.

Guess you can just run in mysql console:
Code: [Select]
ALTER TABLE `whois` CHANGE `nickname` `nickname` VARCHAR(25) NOT NULL DEFAULT '';
Edit: although whois table isn't really important, I guess you should perform a backup first.

Edit 2: perhaps someone should add this change to the bebot release as well??
« Last Edit: April 04, 2011, 04:24:48 pm by Kentarii »

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 317
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal