Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONTINUE statement [CORE1209] #1633

Closed
firebird-automations opened this issue Apr 17, 2007 · 10 comments
Closed

CONTINUE statement [CORE1209] #1633

firebird-automations opened this issue Apr 17, 2007 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alexander Tyutik (tut)

Is duplicated by CORE3833
Is related to QA507

Votes: 3

It would be nice to have CONTINUE statement for WHILE and FOR loops.

Commits: fba1b8d 0145996 ed0e0da FirebirdSQL/fbt-repository@c9997e4

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Please explain what the operator would do, along with an example of usage.

@firebird-automations
Copy link
Collaborator Author

Commented by: Alexander Tyutik (tut)

This operator exists in all languages i know. It stops current loop iteration and call next iteration if such exists, for example:

FOR SELECT ID, NAME, .... FROM TABLE INTO :ID, :NAME ... DO
BEGIN
IF (ID = 0) THEN
CONTINUE;

<BLOCK OF LOGIC>
END

it is equal

FOR SELECT ID, NAME, .... FROM TABLE INTO :ID, :NAME ... DO
BEGIN
IF (ID <> 0) THEN
BEGIN
<BLOCK OF LOGIC>
END
END

but this is very simple usage. In real applications this operator can make code more simple for understanding.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11881 ] => Firebird [ 15207 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

I will do it in 3.0 if no objection appear.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

description: It would be nice to have CONTINUE operator for WHILE and FOR loops. => It would be nice to have CONTINUE statement for WHILE and FOR loops.

summary: CONTINUE operator => CONTINUE statement

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Committed in B2_5_ExtEngines.

Syntax: CONTINUE [ <label> ]

Works for: WHILE, FOR SELECT and FOR EXECUTE STATEMENT.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Link: This issue is duplicated by CORE3833 [ CORE3833 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA507 [ QA507 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants