void processAlterTableDropColumn ( Table table , String colName , boolean cascade ) { int colindex = table . getColumnIndex ( colName ) ; if ( table . getColumnCount ( ) == 1 ) { throw Error . error ( ErrorCode . X_42591 ) ; } session . commit ( false ) ; TableWorks tableWorks = new TableWorks ( session , table ) ; tableWorks . dropColumn ( colindex , cascade ) ; //VoltDB extension to support Time to live if ( table . getTTL ( ) != null && colName . equalsIgnoreCase ( table . getTTL ( ) . ttlColumn . getName ( ) . name ) ) { table . dropTTL ( ) ; } }
Responsible for handling tail of ALTER TABLE ... DROP COLUMN ...