tunm icon indicating copy to clipboard operation
tunm copied to clipboard

cargo run --example server : ------wrong parameter types for callback function arguments_count is 2

Open zn123 opened this issue 6 years ago • 0 comments

[2019-03-15 15:34:20] [trace] add_cloumn sql is "ALTER TABLE user ADD COLUMN ban_end_time int(32) DEFAULT '0' " [2019-03-15 15:34:20] [trace] add_cloumn sql is "ALTER TABLE user ADD COLUMN vip int(32)" [2019-03-15 15:34:20] [trace] add_cloumn sql is "ALTER TABLE user ADD COLUMN vip_exp int(32)" [2019-03-15 15:34:20] [trace] add_cloumn sql is "ALTER TABLE user ADD COLUMN sp int(32)" [2019-03-15 15:34:20] [trace] xxx

size : 3 { 1:"aaaaaaaa", 2:
size : 3 { "a":"1111", "d":
size : 1 { "a":"xxxx", }, "c":"xxxxxxxxxx", }, 3:
size : 1 { "b":"xxxxxxxxxxx", }, } [2019-03-15 15:34:20] [trace] after encode is "["aaaaaaaa",{"a":"1111","d":{"a":"xxxx"},"c":"xxxxxxxxxx"},{"b":"xxxxxxxxxxx"}]" [2019-03-15 15:34:20] [trace] msg_type is 1 [2019-03-15 15:34:20] [trace] name is "aaaaaaaa" [2019-03-15 15:34:20] [trace] args is "["aaaaaaaa",{"a":"1111","d":{"a":"xxxx"},"c":"xxxxxxxxxx"},{"b":"xxxxxxxxxxx"}]" [2019-03-15 15:34:20] [trace] name = "aaaaaaaa" un =
size : 2 { 1:
size : 3 { "a":"1111", "d":
size : 1 { "a":"xxxx", }, "c":"xxxxxxxxxx", }, 2:
size : 1 { "b":"xxxxxxxxxxx", }, } [2019-03-15 15:34:20] [trace] Error: wrong parameter types for callback function arguments_count is 2

[2019-03-15 15:34:20] [trace] stack traceback: (1)[C]:-1: in function 'listen_websocket' (2)[string "ts/server/daemons/connectd.lua"]:79: in function 'init_network_status' (3)[string "ts/server/daemons/connectd.lua"]:101: in function 'f' (4)[string "obal/base/global_data_boot.lua"]:17: in function 'post_data_init' temp_post_init :

size : 1 { 1:, } _ : 1 f : (5)[string "obal/base/global_data_boot.lua"]:32: in function 'finish_one_load_data' (6)[string "/server/daemons/data_userd.lua"]:26: in function 'callback' startPos : 0 ret : 0 result_list :
size : 0 { } (7)[string "scripts/server/daemons/dbd.lua"]:212: in function 'notify_operation_result' cookie : 1 ret : 0 result_list :
size : 0 { } oper :
size : 4 { "callback_arg":0, "begin_time":1552635260, "callback":, "sql_cmd":"SELECT rid,name,ban_flag,lv,vip,last_login_time,last_logout_time FROM user limit 10000 offset 0 ", } callback : callback_arg : 0 sql_cmd : "SELECT rid,name,ban_flag,lv,vip,last_login_time,last_logout_time FROM user limit 10000 offset 0 " (8)[string "ts/global/base/global_comm.lua"]:349: in function '' cookie : 1 ret : 0 result_list :
size : 1 { 1:
size : 0 { }, }

zn123 avatar Mar 15 '19 08:03 zn123