Inheritance: SqlStatement
コード例 #1
0
 protected virtual SqlStatement VisitUpdate(UpdateStatement statement)
 {
     return(new UpdateStatement(statement.TableName, statement.WherExpression, statement.Assignments)
     {
         Limit = statement.Limit
     });
 }
コード例 #2
0
 private void BuildSimpleUpdate(SqlCodeObjectBuilder builder, SimpleUpdateNode node)
 {
     var whereExpression = ExpressionBuilder.Build(node.WhereExpression);
     var assignments = UpdateAssignments(node.Columns);
     var statement = new UpdateStatement(node.TableName, whereExpression, assignments);
     statement.Limit = node.Limit;
     builder.AddObject(statement);
 }
コード例 #3
0
        public void UpdateOneRow()
        {
            var whereExp    = SqlExpression.Parse("id = 2");
            var assignments = new[] {
                new SqlColumnAssignment("birth_date", SqlExpression.Constant(DataObject.Date(new SqlDateTime(1970, 01, 20))))
            };

            var statement = new UpdateStatement("APP.test_table", whereExp, assignments);

            Query.ExecuteStatement(statement);
        }
コード例 #4
0
 protected override SqlStatement VisitUpdate(UpdateStatement statement)
 {
     return(base.VisitUpdate(statement));
 }
コード例 #5
0
ファイル: StatementVisitor.cs プロジェクト: deveel/deveeldb
 protected virtual SqlStatement VisitUpdate(UpdateStatement statement)
 {
     return new UpdateStatement(statement.TableName, statement.WherExpression, statement.Assignments) {
         Limit = statement.Limit
     };
 }
コード例 #6
0
 protected override SqlStatement VisitUpdate(UpdateStatement statement)
 {
     return base.VisitUpdate(statement);
 }