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

DROP VIEW failing #2

Closed
idahogurl opened this issue Sep 17, 2018 · 2 comments
Closed

DROP VIEW failing #2

idahogurl opened this issue Sep 17, 2018 · 2 comments

Comments

@idahogurl
Copy link

Inside query-interface-views-support.js, on line 4, you have

const sql = DROP VIEW IF EXISTS "${viewName}"${options.cascade && ' CASCADE'};

That creates "DROP VIEW IF EXISTS someViewundefined"

It should be
const sql = DROP VIEW IF EXISTS "${viewName}" ${options.cascade ? 'CASCADE': ''};

@abelosorio
Copy link
Owner

Thanks @idahogurl. I'll fix it right now.

@abelosorio
Copy link
Owner

@idahogurl fix is in version 1.2.1.

Thanks!

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

2 participants