コード例 #1
0
 public override void CallingIndexExistsCanAcceptTableNameWithSingleQuote()
 {
     using (var table = new OracleTestTable("Test'Table", this.Connection, null, this.Factory, "id int"))
     {
         table.WithIndexOn("ID");
         this.Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue();
     }
 }
コード例 #2
0
 public override void CallingIndexExistsReturnsFalseIfIndexDoesNotExistWithSchema()
 {
     using (var table = new OracleTestTable(this.Connection, SchemaName, this.Factory, "id int"))
     {
         table.WithIndexOn("ID");
         this.Processor.IndexExists(SchemaName, table.Name, "DoesNotExist").ShouldBeFalse();
     }
 }
コード例 #3
0
 public override void CallingIndexExistsReturnsFalseIfIndexDoesNotExistWithSchema()
 {
     using (var table = new OracleTestTable(Connection, SchemaName, Quoter.QuoteColumnName("id") + " int"))
     {
         table.WithIndexOn("id");
         Processor.IndexExists(SchemaName, table.Name, "DoesNotExist").ShouldBeFalse();
     }
 }
コード例 #4
0
 public override void CallingIndexExistsCanAcceptTableNameWithSingleQuote()
 {
     using (var table = new OracleTestTable("Test'Table", Connection, null, Quoter.QuoteColumnName("id") + " int"))
     {
         table.WithIndexOn("id");
         Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue();
     }
 }
コード例 #5
0
 public void CallingIndexExistsWithIncorrectCaseReturnsFalseIfIndexExist()
 {
     //the IndexExists() function is'nt case sensitive
     using (var table = new OracleTestTable(this.Connection, null, this.Factory, "id int"))
     {
         table.WithIndexOn("ID", "ui_id");
         this.Processor.IndexExists(null, table.Name, "Ui_Id").ShouldBeTrue();
     }
 }
コード例 #6
0
 public override void CallingIndexExistsReturnsTrueIfIndexExists()
 {
     using (var table = new OracleTestTable(this.Connection, null, this.Factory, "id int"))
     {
         table.WithIndexOn("ID");
         this.Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue();
     }
 }
コード例 #7
0
 public void CallingIndexExistsWithIncorrectCaseReturnsFalseIfIndexExist()
 {
     using (var table = new OracleTestTable(Connection, null, Quoter.QuoteColumnName("id") + " int"))
     {
         table.WithIndexOn("id");
         Processor.IndexExists(null, table.Name, "UI_ID").ShouldBeFalse();
     }
 }
コード例 #8
0
 public void CallingIndexExistsReturnsTrueIfIndexExistWithSchema()
 {
     using (var table = new OracleTestTable(Connection, Quoter, SchemaName, Quoter.QuoteColumnName("id") + " int"))
     {
         table.WithIndexOn("id");
         Processor.IndexExists(SchemaName, table.Name, "UI_id").ShouldBeTrue();
     }
 }