You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IndexedDB - SELECT + where EXISTS(SELECT ...) - Error #1130
Hi, I'm using AlaSql with IndexedDB as selected engine, all my tables were succesfully created and stored. If I do a simple SELECT in any of those tables, everything works well...
BUT, when I try to use an EXISTS, then an error occurs.
My select query is as follow: SELECT A.* FROM AppMenu A WHERE EXISTS( SELECT 1 FROM AppMenuPerm X WHERE X.IdMenu = A.IdMenu AND (X.IdConta = 166 OR X.IdGrupo in (5, 4)) ) ORDER BY A.Order, A.Description
this is the error that occurs:
Uncaught TypeError: Cannot read property 'data' of undefined
at T.Query.eval [as wherefn] (eval at X.Select.compileWhere (alasql.min.js?v=19.08-Q2_29-08-19_7180.16207:formatted:28022)
Someone can point me what is wrong or some fix to this?
EDIT:
Actually, at least for me, not even a very simple EXISTS works...
SELECT Desc FROM tab1 WHERE EXISTS(SELECT 1 FROM tab2 WHERE tab1.IdTab = tab2.IdTab)
AND, apparently, using localStorage instead of IndexedDB, the EXISTS seems to work, but I can't use localStorage because it's slow and doesn't have sufficient amount of storage space.
(By the way, in the Wiki page, the page about Where is saying to use EXIST instead of EXISTS, but then it trhows another error, I think that it is a typo on the Wiki page)
Details: Version: AlaSQL v0.4.11 Engine: IndexedDB
This select is executed with: alasql.promise(sql, null).then(...
Activity
mathiasrw commentedon Sep 5, 2019
Terrible. Thank you for reporting this.
biddwan09 commentedon Oct 12, 2019
Hi @mathiasrw I want to start contributing to this project . Can I work on this issue ?
mathiasrw commentedon Oct 12, 2019
@biddwan09 For sure!