Azavea.Open.DAO.Firebird.FirebirdDaLayer.SequenceExists C# (CSharp) Method

SequenceExists() public method

Returns whether a sequence with this name exists or not. Firebird doesn't appear to support the SQL standard information_schema.
public SequenceExists ( string name ) : bool
name string Name of the sequence to check for.
return bool
        public override bool SequenceExists(string name)
        {
            int count = SqlConnectionUtilities.XSafeIntQuery(_connDesc,
                "SELECT count(*) FROM RDB$GENERATORS WHERE RDB$GENERATOR_NAME = '" +
                name.ToUpper() + "'", null);
            return count > 0;
        }