DC_AdsStatement not respecting Alias option
Posted: Thu Mar 01, 2012 10:42 am
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.
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.