You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "penghuazhou (via GitHub)" <gi...@apache.org> on 2026/03/09 03:28:02 UTC
[I] shardingsphere-proxy: 5.1.1 support interpolateParams=false, but shardingsphere-proxy: 5.5.3 do not support. [shardingsphere]
penghuazhou opened a new issue, #38381:
URL: https://github.com/apache/shardingsphere/issues/38381
@terrymanu @tiya-9975 It also not solve in shardingsphere-proxy: 5.5.3. It throw error below.
https://github.com/apache/shardingsphere/issues/37993#issuecomment-3994989837
2026/03/03 16:39:49 /Users/zego/GolandProjects/tcpDemo/shard/shar.go:29 Error 20024 (44000): Sharding value '[B@418aba6b' must implements Comparable.
[12.734ms] [rows:-] SELECT deleted_at FROM tbl_group WHERE app_id = 0 AND group_id = '0' AND deleted_at > 0 LIMIT 1
2026/03/03 16:39:49 Query failed: Error 20024 (44000): Sharding value '[B@418aba6b' must implements Comparable.
```
package main
import (
"fmt"
"log"
"gorm.io/driver/mysql"
"gorm.io/gorm"
"gorm.io/gorm/logger"
)
func main() {
// Database connection
dsn := "sharding:sharding@tcp(192.168.12.213:23307)/sharding_db?charset=utf8mb4&parseTime=True&loc=Local&interpolateParams=false"
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{
Logger: logger.Default.LogMode(logger.Info),
})
if err != nil {
log.Fatalf("Failed to connect: %v", err)
}
// Simple query
var result []struct {
DeletedAt int64 `gorm:"column:deleted_at"`
}
rawSQL := "SELECT deleted_at FROM tbl_group WHERE app_id = ? AND group_id = ? AND deleted_at > 0 LIMIT 1"
err = db.Raw(rawSQL, int64(0), "0").Scan(&result).Error
if err != nil {
log.Fatalf("Query failed: %v", err)
}
fmt.Printf("✅ Query succeeded, results: %+v\n", result)
}
```
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-proxy: 5.1.1 support interpolateParams=false, but shardingsphere-proxy: 5.5.3 do not support. [shardingsphere]
Posted by "penghuazhou (via GitHub)" <gi...@apache.org>.
penghuazhou commented on issue #38381:
URL: https://github.com/apache/shardingsphere/issues/38381#issuecomment-4029649832
@terrymanu when release 5.5.4?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-proxy: 5.1.1 support interpolateParams=false, but shardingsphere-proxy: 5.5.3 do not support. [shardingsphere]
Posted by "penghuazhou (via GitHub)" <gi...@apache.org>.
penghuazhou commented on issue #38381:
URL: https://github.com/apache/shardingsphere/issues/38381#issuecomment-4029109771
@terrymanu It also not solve in master.
2026/03/10 14:45:13 /Users/zego/GolandProjects/tcpDemo/shard/shar.go:29 Error 20024 (44000): Sharding value '[B@287d2bbc' must implements Comparable.
[42.395ms] [rows:-] SELECT deleted_at FROM tbl_group WHERE app_id = 0 AND group_id = '0' AND deleted_at > 0 LIMIT 1
2026/03/10 14:45:13 Query failed: Error 20024 (44000): Sharding value '[B@287d2bbc' must implements Comparable.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-proxy: 5.1.1 support interpolateParams=false, but shardingsphere-proxy: 5.5.3 do not support. [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #38381: shardingsphere-proxy: 5.1.1 support interpolateParams=false, but shardingsphere-proxy: 5.5.3 do not support.
URL: https://github.com/apache/shardingsphere/issues/38381
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org