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.
DC_AdsStatement not respecting Alias option
Re: DC_AdsStatement not respecting Alias option
Unfortunately, this is a limitation of the ADSDBE.
The eXpress train is coming - and it has more cars.