Commit 200cf3e5 authored by Mike Hibler's avatar Mike Hibler

Fix sql syntax error

parent 0e0163c8
......@@ -435,7 +435,7 @@ sub GotTrunks($$)
my $query_result =
DBQueryWarn("select distinct r.node_id,i.iface from reserved as r " .
"left join interfaces as i on i.node_id=r.node_id " .
"where r.exptidx='$exptidx' i.trunk!=0");
"where r.exptidx='$exptidx' and i.trunk!=0");
return $query_result->numrows;
}
......
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