ggbocoder commented on issue #5136: URL: https://github.com/apache/incubator-seata/issues/5136#issuecomment-1872463655
I have two solutions. Using escape characters: On the client side, insert an escape character "" before the "," in primary keys containing ",". For example, "NextNumberBO:KS,D01" becomes "NextNumberBO:KS,D01". On the server side, when splitting, do not split on ",". On the client side, replace "," in the primary key with a rarely used symbol. On the server side, replace it back during processing. I believe these two solutions are compatible with previous versions. --- 我有两个方案。 1.使用转义符,在客户端,对于含有“,”的主键插入转义符“\”,例如,"NextNumberBO:KS,D01"--》"NextNumberBO:KS\,D01",在服务端切分的时候对于“\,”不进行切分 2.在客户端,将主键中的“,”替换为某个不常用的符号,在服务端处理时再替换回来 我认为这两个方案可以与以往版本兼容。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
