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

Add basic VIEWS support. #34

Merged
merged 37 commits into from
Dec 2, 2019
Merged

Add basic VIEWS support. #34

merged 37 commits into from
Dec 2, 2019

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Nov 25, 2019

Basically takes src-d/go-mysql-server#860 and adapts it for our sqlparser changes.

agarciamontoro and others added 30 commits October 25, 2019 11:37
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Trying to make golangcibot happy

Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Before, this function read the string containing all the identifiers *and* the
separators between them, splitting the string afterwards to retrieve the list.
Now, the list of identifiers is built on the go.

Signed-off-by: Alejandro García Montoro <[email protected]>
We can discard the error if it was thrown because the view does not exist. But
we don't know if the Delete function will throw different errors in the
future, so it is safer to discard only the one we are sure about.

Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
Signed-off-by: Alejandro García Montoro <[email protected]>
@reltuk reltuk requested a review from zachmu November 25, 2019 22:15
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

return nil, ErrUnsupportedSyntax.New(c.ViewExpr)
}

queryNode, err := convertSelect(ctx, selectStatement)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation

@reltuk reltuk merged commit e88d41a into ld-master Dec 2, 2019
@Hydrocharged Hydrocharged deleted the aaron/views branch December 8, 2019 03:54
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

Successfully merging this pull request may close these issues.

4 participants