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

Cannot "make" CDO #20

Open
buddha314 opened this issue Mar 12, 2018 · 1 comment
Open

Cannot "make" CDO #20

buddha314 opened this issue Mar 12, 2018 · 1 comment

Comments

@buddha314
Copy link
Collaborator

Think I am pretty current, get this:

make
chpl -o ./bin/query_builder_ex ./examples/query_builder_ex.chpl  -M ./src -I/usr/include/postgresql/
./src/Cdo.chpl:1128: In function 'this':
./src/Cdo.chpl:1128: error: control reaches end of function that returns a value
make: *** [query_builder_ex] Error 1
@buddha314
Copy link
Collaborator Author

I took at look at this and I'm out of my depth. The function in question is

    proc this(i:int):string{
        try{
            if(this.op=="where"){
                return this.where_data[i];
            }else{
                return this.data[i];
            }
        }catch{
            writeln("Error Statement Data");
        }
    }

Which does not conclude with a return statement.

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

No branches or pull requests

1 participant