Commit 0673d59f authored by Carl Nuessle's avatar Carl Nuessle

bugfix: QueryType field value for

insert and upsert were being reversed
parent 9351227a
......@@ -31,10 +31,10 @@ public class StatementHandler extends StatementVisitorBase {
public void visit(Insert stmt)
{
if(stmt.isOrReplace()){
parser.stats.insert(stmt.getTable().getName());
} else {
parser.stats.upsert(stmt.getTable().getName());
}
} else {
parser.stats.insert(stmt.getTable().getName());
}
stmt.getItemsList().accept(new ItemsListVisitor(){
public void visit(ExpressionList el) {
for(Expression e : el.getExpressions()){
......@@ -57,4 +57,4 @@ public class StatementHandler extends StatementVisitorBase {
e.accept(parser.expressionHandler);
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment