Page 1 of 1

DC_AdsStatement not respecting Alias option

Posted: Thu Mar 01, 2012 10:42 am
by ivanvazan
When a statement object is created and the method :Execute() is called with the option cAlias parameter - the result is ... "QUERY" for the alias. It is always "QUERY", no matter what. How do we change this?
The code in the _DCADS.PRG looks like this:

// feed cursor handle into dbusearea
DbUseArea( ,::Session, "<CURSOR>"+L2Bin(nCursor)+"</CURSOR>",cAlias)

IF (Used())
::Alias := Alias()
::Cursor := L2Bin(nCursor)
ENDIF

BUT the DbUseArea function does not assign the alias name correctly.

Re: DC_AdsStatement not respecting Alias option

Posted: Thu Mar 01, 2012 10:58 am
by rdonnay
Unfortunately, this is a limitation of the ADSDBE.