Package de.fuberlin.wiwiss.d2rq.sql.vendor

Examples of de.fuberlin.wiwiss.d2rq.sql.vendor.Vendor.quoteStringLiteral()


  public void testSingleQuoteEscape() {
    Vendor vendor = Vendor.SQL92;
    assertEquals("'a'", vendor.quoteStringLiteral("a"));
    assertEquals("''''", vendor.quoteStringLiteral("'"));
    assertEquals("'\\'", vendor.quoteStringLiteral("\\"));
    assertEquals("'Joe''s'", vendor.quoteStringLiteral("Joe's"));
    assertEquals("'\\''\\''\\'", vendor.quoteStringLiteral("\\'\\'\\"));
    assertEquals("'\"'", vendor.quoteStringLiteral("\""));
    assertEquals("'`'", vendor.quoteStringLiteral("`"));
  }
View Full Code Here


    Vendor vendor = Vendor.SQL92;
    assertEquals("'a'", vendor.quoteStringLiteral("a"));
    assertEquals("''''", vendor.quoteStringLiteral("'"));
    assertEquals("'\\'", vendor.quoteStringLiteral("\\"));
    assertEquals("'Joe''s'", vendor.quoteStringLiteral("Joe's"));
    assertEquals("'\\''\\''\\'", vendor.quoteStringLiteral("\\'\\'\\"));
    assertEquals("'\"'", vendor.quoteStringLiteral("\""));
    assertEquals("'`'", vendor.quoteStringLiteral("`"));
  }

  public void testQuoteIdentifierEscape() {
View Full Code Here

    assertEquals("'a'", vendor.quoteStringLiteral("a"));
    assertEquals("''''", vendor.quoteStringLiteral("'"));
    assertEquals("'\\'", vendor.quoteStringLiteral("\\"));
    assertEquals("'Joe''s'", vendor.quoteStringLiteral("Joe's"));
    assertEquals("'\\''\\''\\'", vendor.quoteStringLiteral("\\'\\'\\"));
    assertEquals("'\"'", vendor.quoteStringLiteral("\""));
    assertEquals("'`'", vendor.quoteStringLiteral("`"));
  }

  public void testQuoteIdentifierEscape() {
    Vendor db = Vendor.SQL92;
View Full Code Here

    assertEquals("''''", vendor.quoteStringLiteral("'"));
    assertEquals("'\\'", vendor.quoteStringLiteral("\\"));
    assertEquals("'Joe''s'", vendor.quoteStringLiteral("Joe's"));
    assertEquals("'\\''\\''\\'", vendor.quoteStringLiteral("\\'\\'\\"));
    assertEquals("'\"'", vendor.quoteStringLiteral("\""));
    assertEquals("'`'", vendor.quoteStringLiteral("`"));
  }

  public void testQuoteIdentifierEscape() {
    Vendor db = Vendor.SQL92;
    assertEquals("\"a\"", db.quoteIdentifier("a"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.