extend icon indicating copy to clipboard operation
extend copied to clipboard

Mongodb驱动可能过时了

Open GongT opened this issue 12 years ago • 2 comments

跟随fedora版本库升级了php-pecl-mongo(stable

现在MongoCollection各种操作最后一个参数都变成option数组了 于是如果用新的驱动的话 DbMongo.class.php第196行的两个调用会出错

我不知道以前这个参数是什么意思……似乎是把true直接删掉就行?

GongT avatar Jan 11 '13 16:01 GongT

文档更新了…… 1.3.0 The options parameter no longer accepts a boolean to signify an upsert. Instead, this now has to be done with array('upsert' => true).

GongT avatar Jan 12 '13 07:01 GongT

new mongo(xxx) 参数也有变化 新的类名叫MongoClient

GongT avatar Jan 14 '13 07:01 GongT