Trying to use the the SQL:
" Select T_OBJECT.name, Object_Type, Stereotype, COUNT(*) from T_OBJECT "
group by T_OBJECT.name, Object_Type, Stereotype "
HAVING COUNT(*) > 1"
(which finds duplicate elements in a model)
-
- Works fine in the model search with EAP file
- Works fine called via Repository.SQLQuery to EAP file
- Works fine in a model search with mySQL
- Doesn't work with Repository.SQLQuery in mySQL
..and the error is the one so often mentioned in this forum:
Error: Code = 0x0 Source Line: 0; Char : 0, Error Description = (null).
This is an especially nasty error because (a) it's very unhelpful and (b) keeps repeating until the use crashes EA.
Other forum items suggest changing the SQL a bit, but this really is what I need the query to look like. About the only change possible is to change the select(*) to a select(Name), but that doesn't work either.
Does anyone have an ideas either (a) how to get around this or (b) how to get more helpful error message from EA ?