Jump to content
  • 0

[SQL]: DB error - Data too long for column


Eyhra

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   7
  • Joined:  04/30/14
  • Last Seen:  

Hello, I have problems with my script when I add it, it gives me the following error

 

[SQL]: DB error - Data too long for column 'name_card' at row 1
[Debug]: at C:\rathena\src\map\script.cpp:17729 - INSERT INTO `item_log_mvps_cards` (id_card,name_card,localizacion,account_id) VALUES (4241,'Arc Angeling Card','[Storage]Academy Completion Hat[5407]',2000000)
[Warning]: Script command 'query_sql' returned failure.
[Debug]: Source (NPC): MVPCARDLOG2 (invisible/not on a map)
[Debug]: Source (NPC): MVPCARDLOG2 is located in: npc/eyhra/MvpLog.txt

 

Edited by Eyhra
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

10 hours ago, Eyhra said:

Hello, I have problems with my script when I add it, it gives me the following error

 

[SQL]: DB error - Data too long for column 'name_card' at row 1
[Debug]: at C:\rathena\src\map\script.cpp:17729 - INSERT INTO `item_log_mvps_cards` (id_card,name_card,localizacion,account_id) VALUES (4241,'Arc Angeling Card','[Storage]Academy Completion Hat[5407]',2000000)
[Warning]: Script command 'query_sql' returned failure.
[Debug]: Source (NPC): MVPCARDLOG2 (invisible/not on a map)
[Debug]: Source (NPC): MVPCARDLOG2 is located in: npc/eyhra/MvpLog.txt

MvpLog.txt 4.71 kB · 2 downloads

change the sql data value of `name_card` to something longer like VARCHAR(30) so it can store 30 characters... may be you accidentally set it to 11 or less

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   7
  • Joined:  04/30/14
  • Last Seen:  

thx @pajodex fix

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...