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

Subqueries against SQLite causing VS to lock up #33

Closed
amkuchta opened this issue Feb 3, 2016 · 4 comments
Closed

Subqueries against SQLite causing VS to lock up #33

amkuchta opened this issue Feb 3, 2016 · 4 comments

Comments

@amkuchta
Copy link

amkuchta commented Feb 3, 2016

Running a query that contains a subquery against a SQLite database causes VS (2013 Pro) to lock up; full query below:

SELECT 
    AssetToReport, 
    HostName, 
    IpAddress, 
    GroupName, 
    FileName, 
    (SELECT 
            OperatingSystem 
        FROM 
            UniqueFinding U2 
        NATURAL JOIN Vulnerbaility 
        WHERE 
            U1.AssetToReport = U2.AssetToReport 
        AND 
            VulnId = 'SpecifiedVulnId') AS OperatingSystem 
FROM 
    UniqueFinding U1 
NATURAL JOIN FindingTypes 
NATURAL JOIN Groups 
NATURAL JOIN FileNames 
NATURAL JOIN Vulnerability 
WHERE 
    FindingType = 'SpecifiedFindingType'
GROUP BY 
    AssetToReport
ORDER BY 
    AssetToReport;

Subquery runs fine as a standalone query, outer query runs fine without the inner query, and the query as a whole runs fine in code.

@ErikEJ
Copy link
Owner

ErikEJ commented Feb 3, 2016

Have you tried running the query in other tools?

For me to do any debugging (I have nothing to do with the sqlite engine), I need a copy of your database file

@amkuchta
Copy link
Author

amkuchta commented Feb 4, 2016

I am able to execute the query in code using an instance of SQLiteDataReader (C# .NET); the result set returns as expected.

I can generate a sample database file to send you (I need to scrub some data from it first).

@ErikEJ
Copy link
Owner

ErikEJ commented Feb 4, 2016

Thanks for the additional info - you can email me: ejlskov at Hotmail dot com

@ErikEJ
Copy link
Owner

ErikEJ commented Feb 14, 2016

Closing as no addtional info received - feel free to re-open

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