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

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


    Vendor db = Vendor.MySQL;
    assertEquals("`a`", db.quoteIdentifier("a"));
    assertEquals("````", db.quoteIdentifier("`"));
    assertEquals("`\\\\`", db.quoteIdentifier("\\"));
    assertEquals("`Joe``s`", db.quoteIdentifier("Joe`s"));
    assertEquals("`\\\\``\\\\``\\\\`", db.quoteIdentifier("\\`\\`\\"));
    assertEquals("`'`", db.quoteIdentifier("'"));
  }

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


    assertEquals("`a`", db.quoteIdentifier("a"));
    assertEquals("````", db.quoteIdentifier("`"));
    assertEquals("`\\\\`", db.quoteIdentifier("\\"));
    assertEquals("`Joe``s`", db.quoteIdentifier("Joe`s"));
    assertEquals("`\\\\``\\\\``\\\\`", db.quoteIdentifier("\\`\\`\\"));
    assertEquals("`'`", db.quoteIdentifier("'"));
  }

  public void testAttributeQuoting() {
    Vendor db = Vendor.SQL92;
    assertEquals("\"schema\".\"table\".\"column\"",
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.