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

Use DROP ... IF EXISTS followed by CREATE ... instead of ignoring errors. #74

Open
FMNSSun opened this issue Jun 22, 2018 · 0 comments
Open

Comments

@FMNSSun
Copy link

FMNSSun commented Jun 22, 2018

observation.go:

db.Exec("create function like_rev (text, text) returns boolean as $$ select $2 like $1 $$ language SQL")
db.Exec("create operator ~~~~ (procedure = like_rev,  leftarg=text, rightarg=text)")

Could be replaced by DROP ... IF EXISTS queries followed by CREATE ... instead of ignoring the errors.

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