Пример #1
0
 public bool recv_drop_index_by_name()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     drop_index_by_name_result result = new drop_index_by_name_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.o1)
     {
         throw result.O1;
     }
     if (result.__isset.o2)
     {
         throw result.O2;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "drop_index_by_name failed: unknown result");
 }
Пример #2
0
 public void drop_index_by_name_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     drop_index_by_name_args args = new drop_index_by_name_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     drop_index_by_name_result result = new drop_index_by_name_result();
     try
     {
         result.Success = iface_.drop_index_by_name(args.Db_name, args.Tbl_name, args.Index_name, args.DeleteData);
     }
     catch (NoSuchObjectException o1)
     {
         result.O1 = o1;
     }
     catch (MetaException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("drop_index_by_name", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }