Skip to content

Context cancelled for query #679

Closed
src-d/go-mysql-server
#603
@erizocosmico

Description

@erizocosmico

This query:

SELECT f.repository_id, f.blob_hash, f.commit_hash, f.file_path
FROM commit_files f
INNER JOIN (
    SELECT blob_hash, repository_id
    FROM blobs
    WHERE NOT IS_BINARY(blob_content) AND (
        blob_content REGEXP '(?i)facebook.*[\'\\"][0-9a-f]{32}[\'\\"]'
        OR blob_content REGEXP '(?i)twitter.*[\'\\"][0-9a-zA-Z]{35,44}[\'\\"]'
        OR blob_content REGEXP '(?i)github.*[\'\\"][0-9a-zA-Z]{35,40}[\'\\"]'
        OR blob_content REGEXP 'AKIA[0-9A-Z]{16}'
        OR blob_content REGEXP '(?i)heroku.*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}'
        OR blob_content REGEXP '.*-----BEGIN ((RSA|DSA|OPENSSH|SSH2|EC) )?PRIVATE KEY-----.*'
    )
) h
ON h.blob_hash = f.blob_hash AND h.repository_id = f.repository_id
WHERE f.file_path NOT LIKE '^vendor.*'

Returns unknown error: context canceled and no more information about it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions