Skip to content
Browse files

[fix] compiler, database, mongo: Generate db ident only if current pa…

…ckage owned the db
  • Loading branch information...
1 parent 9679fd7 commit 280b13ad03cfddcd825b23214b6776b3cb553c2e @BourgerieQuentin BourgerieQuentin committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 opa/pass_MongoAccessGeneration.ml
View
3 opa/pass_MongoAccessGeneration.ml
@@ -1006,7 +1006,8 @@ end
let init_database gamma annotmap schema =
List.fold_left
(fun (annotmap, newvals) database ->
- if database.DbSchema.options.DbAst.backend = `mongo then
+ if database.DbSchema.options.DbAst.backend = `mongo
+ && database.DbSchema.package = ObjectFiles.get_current_package_name () then
let ident = database.DbSchema.ident in
let name = database.DbSchema.name in
let (annotmap, open_) = Generator.open_database gamma annotmap name None None in

0 comments on commit 280b13a

Please sign in to comment.
Something went wrong with that request. Please try again.