Странный результат выдает операция pack/unpack в Query
X++:
static void testQueryPack(Args _args)
{
Query q1, q2;
QueryBuildDataSource qbds1, qbds2;
container con;
;
q1 = new Query();
qbds1 = q1.addDataSource(tablenum(InventTrans));
qbds1.addRange(fieldnum(InventTrans, StatusIssue)).value(queryValue(StatusIssue::Sold));
qbds1.addRange(fieldnum(InventTrans, StatusReceipt)).value(queryValue(StatusReceipt::Purchased));
qbds1.addRange(fieldnum(InventTrans, StatusReceipt)).value(queryValue(StatusReceipt::None));
qbds1.addRange(fieldnum(InventTrans, StatusIssue)).value(queryValue(StatusIssue::None));
info(qbds1.toString());
con = q1.pack();
q2 = new Query(con);
qbds2 = q2.dataSourceTable(tablenum(InventTrans));
info(qbds2.toString());
}
чем это можно объяснить?