Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

db.executeSql('PRAGMA foreign_keys = ON'); #570

Open
viveKing21 opened this issue Jan 19, 2024 · 0 comments
Open

db.executeSql('PRAGMA foreign_keys = ON'); #570

viveKing21 opened this issue Jan 19, 2024 · 0 comments

Comments

@viveKing21
Copy link

          db.executeSql('PRAGMA foreign_keys = ON');

Execute this after creating connection and it will solve your issue ..
it worked for me.

Originally posted by @AdnanAshraf-pro in #478 (comment)

‘PRAGMA foreign_keys=ON;’ executed and success callback invokes, but after that if I check ‘PRAGMA foreign_keys;’ it gives result ‘{foreign_keys:0}’ and its not working, accepting any integer as FK and CASCADE not working on Delete.

android devices

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant