Permalink
Browse files

[fix] compiler, database: Detection of query that returns a uniq row

  • Loading branch information...
1 parent 2aee405 commit 371df487fef2e65854cd7b36d81be5fdb078d0bf @BourgerieQuentin BourgerieQuentin committed Apr 2, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 libqmlcompil/dbGen/schema_private.ml
@@ -860,7 +860,11 @@ let is_uniq t node query =
) rows
| _ -> false
end
- | Q.TypeConst _ -> true
+ | Q.TypeConst _ ->
+ begin match query with
+ | Q.Db.QEq _ -> true
+ | _ -> false
+ end
| _ -> false
in aux query keyty

0 comments on commit 371df48

Please sign in to comment.