public override void CallingTableExistsCanAcceptSchemaNameWithSingleQuote()
        {
            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"))
                Processor.TableExists("test'schema", table.Name).ShouldBeTrue();
        }
예제 #2
0
        public override void CallingColumnExistsReturnsFalseIfColumnDoesNotExistWithSchema()
        {
            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"))
                Processor.ColumnExists("test_schema", table.Name, "DoesNotExist").ShouldBeFalse();
        }
        public override void CallingConstraintExistsCanAcceptSchemaNameWithSingleQuote()
        {
            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", "wibble int CONSTRAINT c1 CHECK(wibble > 0)"))
                Processor.ConstraintExists("test'schema", table.Name, "c1").ShouldBeTrue();
        }
예제 #4
0
        public override void CallingTableExistsReturnsTrueIfTableExistsWithSchema()
        {
            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"))
                Processor.TableExists("test_schema", table.Name).ShouldBeTrue();
        }
예제 #5
0
 public override void CallingConstraintExistsReturnsFalseIfConstraintDoesNotExist()
 {
     using (var table = new HanaTestTable(this.Processor, null, "id int"))
     {
         table.WithUniqueConstraintOn("ID");
         this.Processor.ConstraintExists(null, table.Name, "DoesNotExist").ShouldBeFalse();
     }
 }
예제 #6
0
 public override void CallingConstraintExistsCanAcceptTableNameWithSingleQuote()
 {
     using (var table = new HanaTestTable("Test'Table", Processor, null, "id int"))
     {
         table.WithUniqueConstraintOn("ID");
         this.Processor.ConstraintExists(null, table.Name, "UC_id").ShouldBeTrue();
     }
 }
예제 #7
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();
     }
 }
예제 #8
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();
     }
 }
예제 #9
0
        public override void CallingConstraintExistsReturnsFalseIfConstraintDoesNotExistWithSchema()
        {
            Assert.Ignore("HANA does not support schema like us know schema in hana is a database name");

            using (var table = new HanaTestTable(Processor, "schemaName", "id int"))
            {
                table.WithUniqueConstraintOn("ID");
                this.Processor.ConstraintExists("schemaName", table.Name, "DoesNotExist").ShouldBeFalse();
            }
        }
예제 #10
0
 public override void CallingConstraintExistsReturnsTrueIfConstraintExists()
 {
     using (var table = new HanaTestTable(Processor, null, "id int"))
     {
         table.WithUniqueConstraintOn("ID");
         this.Processor.ConstraintExists(null, table.Name, "UC_id").ShouldBeTrue();
     }
 }
예제 #11
0
 public override void CallingColumnExistsReturnsTrueIfColumnExists()
 {
     using (var table = new HanaTestTable(Processor, null, "id int"))
         Processor.ColumnExists(null, table.Name, "id").ShouldBeTrue();
 }
예제 #12
0
 public override void CallingColumnExistsReturnsFalseIfColumnDoesNotExist()
 {
     using (var table = new HanaTestTable(Processor, null, "id int"))
         Processor.ColumnExists(null, table.Name, "DoesNotExist").ShouldBeFalse();
 }
예제 #13
0
 public override void CallingColumnExistsCanAcceptTableNameWithSingleQuote()
 {
     using (var table = new HanaTestTable("Test'Table", Processor, null, "id int"))
         Processor.ColumnExists(null, table.Name, "id").ShouldBeTrue();
 }
예제 #14
0
 public override void CallingColumnExistsCanAcceptColumnNameWithSingleQuote()
 {
     var columnNameWithSingleQuote = Quoter.Quote("i'd");
     using (var table = new HanaTestTable(Processor, null, string.Format("{0} int", columnNameWithSingleQuote)))
         Processor.ColumnExists(null, table.Name, "i'd").ShouldBeTrue();
 }
        public void CallingDefaultValueExistsCanAcceptSchemaNameWithSingleQuote()
        {
            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"))
            {
                table.WithDefaultValueOn("id");
                Processor.DefaultValueExists("test'schema", table.Name, "id", 1).ShouldBeTrue();
            }
        }
예제 #16
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();
     }
 }