public CommonInsertContext(InsertStatementContext context) { Start = context.Start; Stop = context.Stop; TableRef = context.tableRef(); UsePartition = context.usePartition(); InsertFromConstructor = context.insertFromConstructor(); UpdateList = context.updateList(); InsertQueryExpression = context.insertQueryExpression(); ValuesReference = context.valuesReference(); InsertUpdateList = context.insertUpdateList(); if (context.HasToken(IGNORE_SYMBOL)) { ConflictBehavior = QsiDataConflictBehavior.Ignore; } else if (InsertUpdateList != null) { ConflictBehavior = QsiDataConflictBehavior.Update; } else { ConflictBehavior = QsiDataConflictBehavior.None; } }
public CommonInsertContext(ReplaceStatementContext context) { Start = context.Start; Stop = context.Stop; TableRef = context.tableRef(); UsePartition = context.usePartition(); InsertFromConstructor = context.insertFromConstructor(); UpdateList = context.updateList(); InsertQueryExpression = context.insertQueryExpression(); ValuesReference = null; InsertUpdateList = null; ConflictBehavior = QsiDataConflictBehavior.Update; }