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

SQLCipher change the query order. #1008

Open
moxgeek opened this issue Dec 25, 2019 · 1 comment
Open

SQLCipher change the query order. #1008

moxgeek opened this issue Dec 25, 2019 · 1 comment

Comments

@moxgeek
Copy link

moxgeek commented Dec 25, 2019

i know that at the first point it look like the problem isn't related to the protection with a password for the db using getEncryptedWritableDb function, but i did run a several time the process and at each time it do the same thing .
so the problem is when i run a select query , i got a specific result ( exactly like i expect it )
but if i change only getWritableDb to getEncryptedWritableDb(ASWEETPASSWORD) , the result of the query change remain the same but with different order .
the query :

        String q = "SELECT DISTINCT "+MessageDao.Properties.Sender_id.columnName+", " +
                "count(case "+MessageDao.Properties.Status.columnName+" when 'RECIVED' then 1 else null end ) ," +MessageDao.Properties.ResellerUniqueId.columnName+
                "  FROM "+ MessageDao.TABLENAME +
                "  WHERE "+MessageDao.Properties.Id.columnName+" !=-1 " +
                " GROUP BY "+MessageDao.Properties.Sender_id.columnName+" ,"+MessageDao.Properties.ResellerUniqueId.columnName+
                " ORDER BY "+MessageDao.Properties.Id.columnName +" DESC";

MessageDao.Properties.Id.columnName is not changing btw.

@moxgeek
Copy link
Author

moxgeek commented Feb 12, 2020

@greenrobot @greenrobot-team , i again test that , and still the same error ...

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

1 participant