Examples of UpdateColumn


Examples of com.foundationdb.sql.optimizer.plan.UpdateStatement.UpdateColumn

                new ArrayList<>(rcl.size());
            for (ResultColumn result : rcl) {
                Column column = getColumnReferenceColumn(result.getReference(),
                                                         "result column");
                ExpressionNode value = toExpression(result.getExpression());
                updateColumns.add(new UpdateColumn(column, value));
            }
            ReturningValues values = calculateReturningValues(updateNode.getReturningList(),
                                                              (FromTable)updateNode.getUserData());
            query = new UpdateStatement(query, targetTable,
                                        updateColumns, values.table);
View Full Code Here

Examples of com.foundationdb.sql.optimizer.plan.UpdateStatement.UpdateColumn

            // for the gaps.
            // TODO: It might be simpler to have an update function
            // that knew about column offsets for ordered expressions.
            TPreparedExpression[] row = array(targetRowType.nFields());
            for (int i = 0; i < updateColumns.size(); i++) {
                UpdateColumn column = updateColumns.get(i);
                row[column.getColumn().getPosition()] = updates.get(i);
            }
            updates = Arrays.asList(row);
            return updates;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.