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

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

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