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); }
public override int CommandCount(SqlStatement statement) { return(statement.IsInsertWithIdentity() ? 2 : 1); }