示例#1
0
        public override int CommandCount(SqlStatement statement)
        {
            if (Version == DB2Version.LUW && statement.IsInsertWithIdentity())
            {
                _identityField = ((SelectQuery)statement).Insert.Into.GetIdentityField();

                if (_identityField == null)
                {
                    return(2);
                }
            }

            return(1);
        }
示例#2
0
 public override int CommandCount(SqlStatement statement)
 {
     return(statement.IsInsertWithIdentity() ? 2 : 1);
 }