sqlitebrowser / sqlitebrowser/sqlitebrowser

Foreign Key Constraint Failed When Changing Default Value

オープン
#1,981 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

question
主要言語
C++
スター
24.6k
フォーク
2.4k
平均マージ
3日 49分
マージ済み PR(30日)
3

説明

Details for the issue

What did you do?

I attempted to change the default value for the humour field in the article table of my almanack database from "" to "n". (I also tried " ", with the same result.)

What did you expect to see?

I expected the default value to be changed from "" to "n".

What did you see instead?

An error message. See the attached screenshot.

Useful extra information

I get a similar issue to the above when trying to carry out most other changes to the field, such as toggling Not null, or changing its foreign key constraint. (Currently, there is no foreign key constraint.)

What operating system are you using?
  • Linux: ( _distro: Ubuntu)
What is your DB4S version?
  • Other: Latest Debian.
    Screenshot from 2019-08-28 18-53-28

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

almanack データベースとその article テーブルを使用して DB4S の失敗を再現し、humour のデフォルト値を空の値から "n" または " " に変更します。まず、報告されたエラーと、Not null の切り替え時または外部キー設定の変更時に発生する関連する失敗を調べます。これらのフィールド変更が正常に完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, sqlite
領域
databases, desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。