When i fetch his value in one select command,
into two long string variable,
fetched value in first variable ":lsText1" contains value both column "a.ltext1, b.ltext2"
and value second variable ":lsText2" is empty.
See example.
I use TD 5.2-SP3
In CTD 2.1 works this fine.
Is any solution how select this value in one select command?
Example:
Code: Select all
In database:
table1.ltext1 long raw = "123"
table2.ltext2 long raw = "ABC"
In TD:
Long String: lsText1
Long String: lsText2
Call SqlPrepareAndExecute( hSql,
'select a.ltext1, b.ltext2
from table1 a, table2 b
where b.id=a.id
into :lsText1, :lsText2' )
If not SqlFetchNext( hSql, nFetch )
Return FALSE
! Value in database: a.ltext1 = "123", b.ltext2 = "ABC"
Call SalGetBufferLength(lsText1) -----> return value is 6
Call SalGetBufferLength(lsText2) -----> return value is 2
! lsText1 contains value "123ABC"
! lsText2 is empty