Example #1
0
        public void DisableForceQuoteQuotesReservedKeyword()
        {
            _quoter = new PostgresQuoter(new PostgresOptions()
            {
                ForceQuote = false
            });

            _quoter.Quote("between").ShouldBe(@"""between""");
            _quoter.Quote("BETWEEN").ShouldBe(@"""BETWEEN""");
        }
Example #2
0
 public void DisableForceQuoteRemovesQuotes()
 {
     _quoter = new PostgresQuoter(new PostgresOptions()
     {
         ForceQuote = false
     });
     _quoter.Quote("TableName").ShouldBe("TableName");
 }
Example #3
0
 public void CanEscapeAString()
 {
     _quoter.Quote("Test\"String").ShouldBe("\"Test\"\"String\"");
 }