Merhabalar,

Sır bilgi buymuş. Demeki ki Qt 'ye gömülü olan SQLite içinde foreign_key desteği kapalıymış. Gönderdiğiniz bilgi doğrultusunda programın başına aşağıdaki kodu ekleyince artık silinemez oldu!...

if(kayitDb.exec("PRAGMA foreign_keys = ON;")) qDebug()<<"OK"; else qDebug()<<"Hata";

Demek ki doayay gömülü değil bu seçenek! Kullanan program tarafından çalışma anında belirlenmesi gerkiyor?!...

Valla hiç aklıma gelmezdi bu tür bir şey. :-P

Çok teşekkürler...

Kolay gelsin,
Mucip:)

On 12.10.2019 00:03, Red wrote:
Assuming the library is compiled with foreign key constraints enabled, it must still be enabled by the application at runtime, using the PRAGMA foreign_keys command. For example:
_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Reply via email to