initialiseUpdateStatement method

TCustomSQLQuery initialiseUpdateStatement(
  1. TCustomSQLQuery query,
  2. TQueryRef qryRef
)

Implementation

TCustomSQLQuery initialiseUpdateStatement(
    TCustomSQLQuery query, TQueryRef qryRef) {
  if (qryRef.value == null) {
    final qry = query.newInstance(null);
    qry.parseSQL = false;
    qry.database = this;
    qry.transaction = query.sqlTransaction;
    qry.uniDirectional = true;
    qry.usePrimaryKeyAsKey = false;
    qry.packetRecords = 1;
    qryRef.value = qry;
  }
  return qryRef.value!;
}