2
* Copyright © 2012 Akiban Technologies, Inc. All rights
5
* This program and the accompanying materials are made available
6
* under the terms of the Eclipse Public License v1.0 which
7
* accompanies this distribution, and is available at
8
* http://www.eclipse.org/legal/epl-v10.html
10
* This program may also be available under different license terms.
11
* For more information, see www.akiban.com or contact
12
* licensing@akiban.com.
15
* Akiban Technologies, Inc.
18
package com.akiban.sql.parser;
20
import com.akiban.sql.StandardException;
22
public class AlterTableRenameColumnNode extends TableElementNode
24
private String oldName; // old column name
25
private String newName; // new column name
28
public void init(Object oldN, Object newN)
30
oldName = (String) oldN;
31
newName = (String) newN;
32
super.init(oldName, ElementType.AT_RENAME_COLUMN);
36
public void copyFrom(QueryTreeNode node) throws StandardException
39
oldName = ((AlterTableRenameColumnNode)node).oldName;
40
newName = ((AlterTableRenameColumnNode)node).newName;
43
public String newName()