*/
public class SQLBuildingTest extends TestCase {
private final static Attribute foo = new Attribute(null, "table", "foo");
public void testSingleQuoteEscapeMySQL() {
Vendor vendor = Vendor.MySQL;
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("`"));
}