fxt.Init(String_.Ary("c1","c2"),"c2").Test__parse("INSERT INTO 'tbl_1' VALUES (1,2);","2|");
fxt.Init(String_.Ary("c1","c2"),"c2").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,2);","2|");
}
}
@TestpublicvoidMany(){
@TestpublicvoidMany(){
fxt.Init(String_.Ary("c1","c2"),"c2").Test__parse("INSERT INTO 'tbl_1' VALUES (1,2),(3,4),(5,6);","2|\n4|\n6|");
fxt.Init(String_.Ary("c1","c2"),"c2").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,2),(3,4),(5,6);","2|\n4|\n6|");
}
}
@TestpublicvoidQuote_basic(){
@TestpublicvoidQuote_basic(){
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse("INSERT INTO 'tbl_1' VALUES (1,'a','b');","a|b|");
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,'a','b');","a|b|");
}
}
@TestpublicvoidEscape_backslash(){
@TestpublicvoidEscape_backslash(){
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse("INSERT INTO 'tbl_1' VALUES (1,'a\\\\b','c');","a\\b|c|");
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,'a\\\\b','c');","a\\b|c|");
}
}
@TestpublicvoidEscape_quote(){
@TestpublicvoidEscape_quote(){
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse("INSERT INTO 'tbl_1' VALUES (1,'a\"b','c');","a\"b|c|");
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,'a\"b','c');","a\"b|c|");
}
}
@TestpublicvoidFld_paren_end(){
@TestpublicvoidFld_paren_end(){
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse("INSERT INTO 'tbl_1' VALUES (1,'Психостимуляторы_(лекарственные_средства)','c');","Психостимуляторы_(лекарственные_средства)|c|");
fxt.Init(String_.Ary("c1","c2","c3"),"c2","c3").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,'Психостимуляторы_(лекарственные_средства)','c');","Психостимуляторы_(лекарственные_средства)|c|");
}
}
@TestpublicvoidInsert_multiple(){
@TestpublicvoidInsert_multiple(){
fxt.Init(String_.Ary("c1","c2"),"c2").Test__parse("INSERT INTO 'tbl_1' VALUES (1,2);INSERT INTO 'tbl_1' VALUES (3,4)","2|\n4|");
fxt.Init(String_.Ary("c1","c2"),"c2").Test__parse(table_def+"INSERT INTO 'tbl_1' VALUES (1,2);INSERT INTO 'tbl_1' VALUES (3,4)","2|\n4|");