strawberry1314 commented on code in PR #34332:
URL: https://github.com/apache/shardingsphere/pull/34332#discussion_r1914372809


##########
infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/pagination/PaginationContext.java:
##########
@@ -58,7 +58,7 @@ private Long getValue(final PaginationValueSegment 
paginationValueSegment, final
             if (null == obj) {
                 return null;
             }
-            return obj instanceof Long ? (long) obj : (int) obj;
+            return obj instanceof byte[] ? (long) (((byte[]) obj)[0] - '0') : 
obj instanceof Long ? (long) obj : (int) obj;

Review Comment:
   I am not particularly clear about the processing method of the Go language, 
I just found that the LIMIT parameter will be resolved to byte[] when I use 
Golang to execute prepare sql.
   such as : SELECT order_id FROM t_order LIMIT ?



-- 
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]

Reply via email to