예제 #1
0
 public override void CallingIndexExistsCanAcceptTableNameWithSingleQuote()
 {
     using (var table = new HanaTestTable("Test'Table", Processor, null, "\"id\" int"))
     {
         var indexName = table.WithIndexOn("id");
         Processor.IndexExists(null, table.Name, indexName).ShouldBeTrue();
     }
 }
예제 #2
0
 public override void CallingIndexExistsCanAcceptIndexNameWithSingleQuote()
 {
     const string columnSingleQuote = "i'd";
     using (var table = new HanaTestTable(Processor, null, Quoter.Quote(columnSingleQuote) +  " int"))
     {
         var indexName = table.WithIndexOn(columnSingleQuote);
         Processor.IndexExists(null, table.Name, indexName).ShouldBeTrue();
     }
 }
        public override void CallingIndexExistsCanAcceptSchemaNameWithSingleQuote()
        {
            Assert.Ignore("HANA does not support schema like us know schema in hana is a database name");

            using (var table = new HanaTestTable(Processor, "test'schema", "id int"))
            {
                var indexName = table.WithIndexOn("id");
                Processor.IndexExists("test'schema", table.Name, indexName).ShouldBeTrue();
            }
        }
예제 #4
0
 public override void CallingIndexExistsReturnsTrueIfIndexExists()
 {
     using (var table = new HanaTestTable(Processor, null, "\"id\" int"))
     {
         var indexName = table.WithIndexOn("id");
         Processor.IndexExists(null, table.Name, indexName).ShouldBeTrue();
     }
 }