Exemplo n.º 1
0
 public void send_alter_table(string dbname, string tbl_name, Table new_tbl)
 {
     oprot_.WriteMessageBegin(new TMessage("alter_table", TMessageType.Call, seqid_));
     alter_table_args args = new alter_table_args();
     args.Dbname = dbname;
     args.Tbl_name = tbl_name;
     args.New_tbl = new_tbl;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Exemplo n.º 2
0
 public void alter_table_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     alter_table_args args = new alter_table_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     alter_table_result result = new alter_table_result();
     try
     {
         iface_.alter_table(args.Dbname, args.Tbl_name, args.New_tbl);
     }
     catch (InvalidOperationException o1)
     {
         result.O1 = o1;
     }
     catch (MetaException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("alter_table", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }