Getting the below error when I upgraded my local nakama server from v 2.5.1
to latest v 2.6.0
.
Cockroach db - build: CCL v2.1.5 @ 2019/02/11 21:56:18 (go1.10.7)
{"level":"warn","ts":"2019-08-07T19:54:20.435+0530",
"msg":"Stopping match after error from match_loop execution","mid":"f674e5e8-acd1-4248-a71f-12ee9aa09581","tick":54,
"error":"D:\\UnityProjects\\data\\modules\\db\\match_data.lua:108: sql exec error: cannot convert 1 to Int8\nstack traceback:\n\t[G]: in function 'sql_exec'\n\t
D:\\UnityProjects\\data\\modules\\db\\match_data.lua:108: in function 'write_match_rounds_info'\n\t
D:\\UnityProjects\\data\\modules\\util\\game_logs.lua:628: in function 'write_game_rounds_info'\n\t
D:\\UnityProjects\\data\\modules\\util\\game_logs.lua:237: in function 'update_rounds_log_data'\n\t
D:\\UnityProjects\\data\\modules\\match_handlers\\turn_handler.lua:49: in function 'play_poker_blinds'\n\t
D:\\UnityProjects\\data\\modules\\match_handlers\\match_data_handler.lua:62: in function 'update_to_play_state'\n\t
D:\\UnityProjects\\data\\modules\\match_handlers\\match_loop.lua:71: in function 'handle_state_updates'\n\t
D:\\UnityProjects\\data\\modules\\match_handlers\\match_loop.lua:28: in function 'process_game_state'\n\t
D:\\UnityProjects\\data\\modules\\match_handlers\\poker_match_handler.lua:128: in main chunk\n\t[G]: ?"}
What can be the issue with cannot convert 1 to Int8
The field of my database table which will store value 1 is this -
game_no INT NOT NULL,
It’s working fine with 2.5.1 but getting this error in 2.6.0