zoukankan      html  css  js  c++  java
  • IDASQLCommand用法(包含事务)

    procedure DoLogout(const Session:TROSession; Connection:IDAConnection; ServerLog:TDAServerLog);
    var
      Cmd : IDASQLCommand;
      CommandLog:TDASQLCommandLog;
      ErrorLog:TDASQLErrorLog;
    begin
      if (LogoutCommand<>'')
        then Cmd := ServiceSchema.NewCommand(Connection, 'Logout', ['SessionID'],
                                             [GUIDToString(Session.SessionID)]);

      if Not Connection.InTransaction then
        Connection.BeginTransaction;
      try
        Cmd.Execute;
        Connection.CommitTransaction;

        CommandLog:=TDASQLCommandLog.Create(ServerLog, Session, Cmd, Cmd.SQL, 0);
      except
        on E:Exception do
        begin
          Connection.RollbackTransaction;

          ErrorLog:=TDASQLErrorLog.Create(ServerLog, Session, E, Cmd, Cmd.SQL);
        end;
      end;
    end;

  • 相关阅读:
    神经网络
    机器学习摘要
    one-vs-all案例
    VHDL
    docker 摘要(入门版)
    Windows与Unix思想
    安装 fedora 之后
    逻辑回归实战
    TensorFlow安装
    Haskell语言学习笔记(65)Data.HashMap
  • 原文地址:https://www.cnblogs.com/leonkin/p/3208665.html
Copyright © 2011-2022 走看看