Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Running a query containing the REGEXP function with an invalid pattern breaks #606

Closed
se7entyse7en opened this issue Jan 24, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@se7entyse7en
Copy link

If the query contains the REGEXP function and the pattern is invalid, then the server stops working and doesn't recover anymore. This bug was noticed when using gitbase-web. Please see here.

@kuba-- kuba-- self-assigned this Jan 29, 2019
@kuba-- kuba-- transferred this issue from src-d/gitbase Jan 29, 2019
@kuba-- kuba-- added the bug Something isn't working label Jan 29, 2019
@erizocosmico
Copy link
Contributor

Can you post an example query and the panic it produces?

@kuba--
Copy link
Contributor

kuba-- commented Jan 29, 2019

@erizocosmico I've already fixed that - writing tests
Btw. example:

SELECT * FROM commit_files WHERE file_path REGEXP("*main.go");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants