Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行批量更新时,Gaea代理会将SQL在结尾处添加个逗号,从而导致mysql底层执行失败。 #234

Open
jiangbin0110 opened this issue Jul 21, 2022 · 1 comment

Comments

@jiangbin0110
Copy link

jiangbin0110 commented Jul 21, 2022

mysql version:5.7.26-gaea
mysql error message :error code [1105]; unknown error: get plan error

update fs_container set code = 'P510391227L00003',name= 'P510391227L00003',container_type_id = 3,structure_type= 'PALLET',use_type = 'GENERAL',container_state = 1,is_close = 0,task_id = 1,task_type= 'PICKING',task_no = 'PK2022072000000001',state = 1,date_code = null,factory_id = 1,warehouse_id = 254630,create_person= 696,update_person = 695,create_time = '2022-07-20 14:16:14',update_time` = null
where id = 3;

            update fs_container set `code` = 'W510391227L00003',`name` = 'W510391227L00003', `container_type_id` = 2,`structure_type` = 'TURNOVERBOX',
            `use_type` = 'GENERAL',`container_state` = 1,`is_close` = 0,`task_id` = 1,`task_type` = 'PICKING',
            `task_no` = 'PK2022072000000001',`state` = 1,`date_code` = null,`factory_id` = 1,`warehouse_id` = 254630,`create_person` = 696,
            `update_person` = 695,`create_time` = '2022-07-20 14:16:42',`update_time` = null
            where id = 103, err: [parser:1149]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

; uncategorized SQLException; SQL state [HY000]; error code [1105]; unknown error: get plan error,`

@jiangbin0110
Copy link
Author

Contact information:[email protected]

@jiangbin0110 jiangbin0110 changed the title 批量更新Gaea代理把SQL在结尾处封装了个逗号导致mysql底层执行失败 执行批量更新时,Gaea代理会将SQL在结尾处添加个逗号,从而导致mysql底层执行失败。 Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant