Quantcast
Channel: Dick Wenning's Activities
Viewing all articles
Browse latest Browse all 1245

use property readPast on a query run class

$
0
0

I have a question about pessimosticklocks

we know how to it on below context 

   

 

MyTestTable myTestTable;

i thought a queryrun could do the same like select code in x++ until I run in this scenario:

 

    myTestTable.readPast(true);

    ttsbegin;

    selectpessimisticLockfirstOnly myTestTable where myTestTable.Processed == NoYes::No;

      if (myTestTable)

 

now we do the same on query run

    query.addDataSource(tableNum(MyTestTable));

    query.dataSourceNo(1).addRange(fieldnum(MyTestTable, Processed)).value(SysQuery::value(NoYes::No));

    query.dataSourceNo(1).concurrencyModel(ConcurrencyModel::Pessimistic);

    query.dataSourceNo(1).firstOnly(true);

 

where can I set my readPast(true).... 

I can't find it :-(


Viewing all articles
Browse latest Browse all 1245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>