server: fix prepared cursor select (#30285)
server: fix prepared cursor select (#30285)

 
kyle-wang/tidb,pingcap/tidb,ngaut/tidb,pingcap/tidb,kyle-wang/tidb,pingcap/tidb,c4pt0r/tidb,c4pt0r/tidb,c4pt0r/tidb,ngaut/tidb,ngaut/tidb,c4pt0r/tidb,c4pt0r/tidb,pingcap/tidb,kyle-wang/tidb,kyle-wang/tidb,ngaut/tidb,c4pt0r/tidb,ngaut/tidb,ngaut/tidb,kyle-wang/tidb,pingcap/tidb,kyle-wang/tidb,pingcap/tidb