X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fwhelp%2FfwdQueries.ml;h=5387d3aeb170f21b866b778e0dc3d997fc7e8285;hb=ac1f50b898154dc3d74aa8fa2fff212a7d3a235c;hp=1f4e508fc032f7534d82e32b44a706b6a199ccac;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/components/whelp/fwdQueries.ml b/helm/software/components/whelp/fwdQueries.ml index 1f4e508fc..5387d3aeb 100644 --- a/helm/software/components/whelp/fwdQueries.ml +++ b/helm/software/components/whelp/fwdQueries.ml @@ -104,7 +104,8 @@ let decomposables ~dbd = | None -> None | Some str -> match CicUtil.term_of_uri (UriManager.uri_of_string str) with - | Cic.MutInd (uri, typeno, _) -> Some (uri, typeno) + | Cic.MutInd (uri, typeno, _) -> Some (uri, Some typeno) + | Cic.Const (uri, _) -> Some (uri, None) | _ -> raise (UriManager.IllFormedUri str) in @@ -112,4 +113,3 @@ let decomposables ~dbd = let query = Printf.sprintf "SELECT %s FROM %s" select from in let decomposables = HMysql.map ~f:map (HMysql.exec dbd query) in filter_map_n (fun _ x -> x) 0 decomposables -