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

Statement execution breaks when creating stored procedures #17

Closed
ghost opened this issue Jul 6, 2013 · 1 comment
Closed

Statement execution breaks when creating stored procedures #17

ghost opened this issue Jul 6, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 6, 2013

In cases where you want to create a stored procedure (temporarily changing the delimiter), the method used to split sql strings in the following function breaks execution:
https://github.com/weavejester/ragtime/blob/master/ragtime.sql.files/src/ragtime/sql/files.clj#L51

Looking into a possible fix right now (perhaps utilizing jdbc's batch statement execution directly); might take me a bit as I'm new to clojure/leiningen; just wanted to post this issue here in the meantime.

Example sql statement:

CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer AS $$
        BEGIN
                RETURN i + 1;
        END;
$$ LANGUAGE plpgsql;
@weavejester
Copy link
Owner

Should be fixed by version 0.4.0 redesign.

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