Page 1 of 1

Oracle Index hint with UniScript.ScriptText

Posted: Wed 26 Feb 2020 04:45
by Rickybibi
I'm using dotConnect Universal 3.80.2038.

Why UniScript.ScriptText changing the /*+ to /**+

Exemple:
SELECT /*+ INDEX(EH IDX_HOR_EMPL_DATE) */ ID_R_EMPLHORAIRE
FROM R_EMPLHORAIRE EH

to this

SELECT /**+ INDEX(EH IDX_HOR_EMPL_DATE) */ ID_R_EMPLHORAIRE
FROM R_EMPLHORAIRE EH

This causing that Oracle doesn't use the index hint

Thanks

Re: Oracle Index hint with UniScript.ScriptText

Posted: Wed 26 Feb 2020 17:40
by Rickybibi
Update

I'm found that UniScript.ScriptText replace EVERY /* by /** !!!!!
Why ?

I tried with a simple UniCommand ExecuteNonQuery() and it does the same.

There is a way to prevent this ?

Re: Oracle Index hint with UniScript.ScriptText

Posted: Thu 05 Mar 2020 18:06
by Shalex
Thank you for your report. We will notify you when the issue is fixed.

Re: Oracle Index hint with UniScript.ScriptText

Posted: Sat 04 Apr 2020 11:43
by Shalex
The bug with replacing /* by /** in UniCommand.CommandText is fixed in v3.80.2109: viewtopic.php?f=4&t=40460.