コード例 #1
0
        private Result ExecuteSetStatement(Session session)
        {
            Table targetTable = base.TargetTable;

            int[]        updateColumnMap   = base.UpdateColumnMap;
            Expression[] updateExpressions = base.UpdateExpressions;
            SqlType[]    columnTypes       = targetTable.GetColumnTypes();
            int          rangePosition     = base.TargetRangeVariables[1].RangePosition;

            object[] current     = session.sessionContext.RangeIterators[rangePosition].GetCurrent();
            object[] sourceArray = StatementDML.GetUpdatedData(session, this._targets, targetTable, updateColumnMap, updateExpressions, columnTypes, current);
            Array.Copy(sourceArray, current, sourceArray.Length);
            return(Result.UpdateOneResult);
        }