qiniu / qmgo

Qmgo - The Go driver for MongoDB. It‘s based on official mongo-go-driver but easier to use like Mgo.
Apache License 2.0
1.3k stars 153 forks source link

对3.6以下的版本不支持 #309

Open elid0928 opened 9 months ago

elid0928 commented 9 months ago

Describe the bug A clear and concise description of what the bug is, and what you expected to happen. 在readme文档中看到支持的mongodb版本是2.6及以上, 但在测试时, 该并不支持mongodb 3.0.9, 根据项目介绍,是基于官方库go.mongodb.org/mongo-driver 的项目, 官方库标注的是仅支持mongodb 3.6 以上的版本

To Reproduce Codes to reproduce the behavior.

driver: github.com/qiniu/qmgo v1.1.8 mongodb version: 3.0.9 go version: 1.20

server at 172.17.0.3:27017 reports wire version 3, but this version of the Go driver requires at least 6 (MongoDB 3.6) new client fail server at 172.17.0.3:27017 reports wire version 3, but this version of the Go driver requires at least 6 (MongoDB 3.6) connect error server at 172.17.0.3:27017 reports wire version 3, but this version of the Go driver requires at least 6 (MongoDB 3.6)

Additional context Add any other context about the problem here.

jiangz222 commented 8 months ago

Yes, I think official go driver add this limitation. I can do Nothing but using early version.

jiangz222 commented 8 months ago

I will update the README

zandwang commented 3 months ago

Looks like I'm going back to mgoV2