Azavea.Open.DAO.OleDb.OleDbOracleDaLayer.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 user_sequences WHERE sequence_name = '" +
                name.ToUpper() + "'", null);
            return count > 0;
        }