Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: lubos on April 20, 2010, 10:27:24 pm
-
Hello,
I begin to play with oracle and EA.
I connect to DB using Oracle Provider for OLE DB.
I have the following problem:
this SQL query>
select instr('Tag:Value',':') + 1 AS C1 from dual;
returns 5 in PL/SQL Developer
but
returns 41 when using it as as Custom SQL search in EA.
Is this a problem of OLE bridge?
Do you know how to solve it?
Thanks for any hints.
-
Quick look suggests a data typing problem...
try: select instr('Tag:Value',':') + '1' AS C1 from dual;
You should get '41' from both...
(Fingers crossed) ;)
Isn't software wonderful?
HTH,
Paolo
-
OK I haven't described my goal :-)
I want to get 5 in EA search.
Thanks
-
I have overcome it by:
select instr('Tag:Value',':') - -1 as C1 from dual;
You'are right, software is wonderful ;-)
Still interesting in more appropriate solution...
-
OK I haven't described my goal :-)
I want to get 5 in EA search.
Thanks
have you tried
select 5 as C1 from dual
;D
Geert
-
For your information,
On SQL Server both (ran through EA search)
select CHARINDEX (':', 'Tag:Value') + '1' AS c1
and
select CHARINDEX (':', 'Tag:Value') + 1 AS c1
result in 5
Geert
-
It's interesting,
I still have the result 41 in EA search. It seems it's a problem of some driver bridge...
But the hack with '- -' works so I will not continue to try to discover it.
Thanks