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

Nesting QtScript functions freezes SqliteStudio #3620

Open
sevaa opened this issue Nov 30, 2019 · 0 comments
Open

Nesting QtScript functions freezes SqliteStudio #3620

sevaa opened this issue Nov 30, 2019 · 0 comments

Comments

@sevaa
Copy link

@sevaa sevaa commented Nov 30, 2019

QtScript functions can't be used in db.eval() within QtScript functions. Freezes the query.

Steps to reproduce

Create a database with a table called "t" with a field called "ID", with a record where ID=1.
Register a QtScript function called g with the following text:
return 1000;
Register a QtScript function called f with the following text:
var r = db.eval("select count(*) from t where ID=g()");
return r[0][0];
Execute the following SQL:
select f() from t where Nomer=1

Operating system

Windows 10 Pro x64

SQLiteStudio version

3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.