Package org.teiid.query.sql.lang

Examples of org.teiid.query.sql.lang.Insert.addValue()


        ElementSymbol e =  new ElementSymbol("foo"); //$NON-NLS-1$

        Insert query = new Insert(g, new ArrayList(), new ArrayList());
        query.addVariable(e);
        query.addValue(new Constant("bar", String.class)); //$NON-NLS-1$
       
        helpTest("insert into x (\"foo\") values ('bar')"//$NON-NLS-1$
                 "INSERT INTO x (foo) VALUES ('bar')"//$NON-NLS-1$
                 query);               
    }
View Full Code Here


    }

    @Test public void testInsertWithoutColumns() {
        Insert insert = new Insert();
        insert.setGroup(new GroupSymbol("m.g")); //$NON-NLS-1$
        insert.addValue(new Constant("a")); //$NON-NLS-1$
        insert.addValue(new Constant("b")); //$NON-NLS-1$
        helpTest("INSERT INTO m.g VALUES ('a', 'b')"//$NON-NLS-1$
                 "INSERT INTO m.g VALUES ('a', 'b')"//$NON-NLS-1$
                 insert);
    }
View Full Code Here

    @Test public void testInsertWithoutColumns() {
        Insert insert = new Insert();
        insert.setGroup(new GroupSymbol("m.g")); //$NON-NLS-1$
        insert.addValue(new Constant("a")); //$NON-NLS-1$
        insert.addValue(new Constant("b")); //$NON-NLS-1$
        helpTest("INSERT INTO m.g VALUES ('a', 'b')"//$NON-NLS-1$
                 "INSERT INTO m.g VALUES ('a', 'b')"//$NON-NLS-1$
                 insert);
    }
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.