【已解决】不能使用go的orm驱动操作doris吗?

Viewed 107
func SelectAd() {
	engine := _init_db("xxx", "9030", "xxx")

	var ad FlowAdUrlStat
	if _, err := engine.Where("opt_YYYYMMDD = ?", 20240626).Get(&ad); err != nil {
		log.Fatal(err)
	}

	fmt.Println(ad)
}

2024/06/27 10:33:19 Error 1105 (HY000): errCode = 2, detailMessage = Only support prepare SelectStmt point query now

1 Answers

这个在2.1.4版本支持了,也通过URL指定:interpolateParams=true试试在driver指定下