djongo icon indicating copy to clipboard operation
djongo copied to clipboard

Receiving SQLDecodeError for migration

Open DavidMeu opened this issue 4 years ago • 1 comments

I'm trying to use djongo module. But after trying to migrate I'm receiving:

djongo.exceptions.SQLDecodeError:

        Keyword: None
        Sub SQL: None
        FAILED SQL: ('SELECT "openwisp_users_organizationuser"."created", "openwisp_users_organizationuser"."modified", "openwi
sp_users_organizationuser"."is_admin", "openwisp_users_organizationuser"."id", "openwisp_users_organizationuser"."organization_
id", "openwisp_users_organizationuser"."user_id" FROM "openwisp_users_organizationuser" WHERE ("openwisp_users_organizationuser
"."is_admin" AND "openwisp_users_organizationuser"."organization_id" = %(0)s) ORDER BY "openwisp_users_organizationuser"."creat
ed" ASC LIMIT 1',)
        Params: ((UUID('ba052935-7bd6-4262-9860-593d33f1934c'),),)
        Version: 1.3.6

Also for createsuperuser I recieve:

djongo.exceptions.SQLDecodeError:

        Keyword: None
        Sub SQL: None
        FAILED SQL: ('SELECT COUNT(*) AS "__count" FROM "account_emailaddress" WHERE ("account_emailaddress"."primary" AND "acc
ount_emailaddress"."user_id" = %(0)s)',)
        Params: ((UUID('d4d66e84-4a91-49eb-ad86-d35ad8556e41'),),)
        Version: 1.3.6
Django: 3.11.2
Djongo: 1.3.6
sqlparser: 0.2.4

DavidMeu avatar Nov 07 '21 09:11 DavidMeu

I'm having the exact same problem after I updated django and djongo

jpmolinamatute avatar Dec 02 '21 20:12 jpmolinamatute