Menu

#8 pg_execute returns continue

None
closed
lbayuk
None
Fixed
3
2014-09-13
2014-09-10
No

When you use "continue" inside a pg_execute script, pg_execute throws the error:

invoked "continue" outside of a loop

At the end of Pg_execute function in pgtclCmds.c, "loop_rc" variable is returned, which is not reset to TCL_OK when it is TCL_CONTINUE.

Related

Discussion: Pgtcl-ng-2.1.1 has been released

Discussion

  • lbayuk

    lbayuk - 2014-09-10

    Good catch, thanks. This only happens when {continue} is in the last loop iteration of the command body. Otherwise it works (because the return status variable gets reset). The test suite does test continue in pg_execute, but not in the last loop, so it didn't catch it.

    I will fix this (and the test script) soon.

     
  • lbayuk

    lbayuk - 2014-09-10
    • assigned_to: lbayuk
     
  • lbayuk

    lbayuk - 2014-09-12

    A fix was committed to subversion and will be in the next release 2.1.1 soon.

     
  • lbayuk

    lbayuk - 2014-09-13

    Fixed in 2.1.1

     
  • lbayuk

    lbayuk - 2014-09-13
    • status: open --> closed
    • Resolution: None --> Fixed
     

Log in to post a comment.