Index: library/mongodb/tests/nsf-gridfs.test =================================================================== diff -u -rcef3de5c4f65e767d0c66389bacc77bc3c2e5a68 -rc4f449cb353be812ba6502ef8e9587e87881f59b --- library/mongodb/tests/nsf-gridfs.test (.../nsf-gridfs.test) (revision cef3de5c4f65e767d0c66389bacc77bc3c2e5a68) +++ library/mongodb/tests/nsf-gridfs.test (.../nsf-gridfs.test) (revision c4f449cb353be812ba6502ef8e9587e87881f59b) @@ -28,7 +28,7 @@ ? {set mongoConn [::mongo::connect]} mongoc_client_t:0 # -# Open a GridFS in the mongo datbase "myfs" and use the usual prefix +# Open a GridFS in the mongo database "myfs" and use the usual prefix # "fs", such GridFS names the collections "fs.chunks" and "fs.files". # ? {set gridFS [::mongo::gridfs::open $mongoConn myfs fs]} mongoc_gridfs_t:0 @@ -71,7 +71,7 @@ } } set chunks -} 4 +} 5 ? {mongo::gridfile::close $f} "" # @@ -91,8 +91,8 @@ # Get the file named README from the gridfs via plain query interface # ? {set files [::mongo::collection::query $mongoColl \ - [list \$query document {filename string README}] \ - -limit 1] + {filename string README} \ + -opts { limit int64 1 }] llength [lindex $files 0] } 18