
* Fix #2425 Character variable lengths and char-server Medium term fox for crash on char-serv caused by too long character variable. Add few error msg and safety. Add npc/test/npc_test_longvar.txt as a basic test. NB: The config.in for max_colum size if not really set as best would either retrive that value from sql, or use the same config file to actually set the sql column size... May be handle later with some kind of hibernate ORM. Thanks to @Tokeiburu, @aleos89, @Lemongrass3110.
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
//===== rAthena Script =======================================
|
|
//= Sample: Character variable lengths Test
|
|
//===== By: ==================================================
|
|
//= rAthena Dev Team
|
|
//===== Last Updated: ========================================
|
|
//= 20171125
|
|
//===== Description: =========================================
|
|
//= An validation test about long character variable stored on char-serv
|
|
//= from https://github.com/rathena/rathena/issues/2425
|
|
//============================================================
|
|
|
|
prontera,155,176,3 script Pront Test 77,{
|
|
mes "Testing to store long variable on char-serv";
|
|
//test1 long value
|
|
test$ = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345";
|
|
//test2 normal length
|
|
test2$ = "anything really, doesn't matter at this point";
|
|
//test3 long key (41)
|
|
thisisareallylongkeyImeanReallyReallyLong$ = "gotcha";
|
|
//test4 long key 2 (with int)
|
|
ReallyReallyReallyReallyReallyReallyLong = 42;
|
|
end;
|
|
}
|