Skip to content

Commit

Permalink
Additional fix for single node drop node.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssinger committed Nov 29, 2011
1 parent eb16a79 commit 20fe8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slonik/parser.y
Expand Up @@ -634,10 +634,10 @@ stmt_drop_node : lno K_DROP K_NODE option_list

if (assign_options(opt, $4) == 0)
{
if(opt[1].ival > -1 )
if(opt[0].ival > -1 )
{
new->no_id_list=malloc(sizeof(int)*2);
new->no_id_list[0]=opt[1].ival;
new->no_id_list[0]=opt[0].ival;
new->no_id_list[1]=-1;
}
else
Expand Down

0 comments on commit 20fe8d6

Please sign in to comment.