Log_IDs lost when copying a database

オープン 初心者向け
#1,418 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
database

調査の方向性

フラグ付きレコードを新しいデータベースにコピーするときに使われるレコードコピー処理をたどることから始め、次に logs テーブルとその log_id フィールドをどのように扱うか確認してください。報告によると、他のログフィールドは保持される一方で、log_id は空になります。インポートしたデータベースで再現し、フラグ付きレコードをコピーして、sql_report マクロを使ってください。コピーされたログが元の log_id を保持すれば完了です。

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

説明

bug
Description

I have a database imported from GSAK. When using the example macro sql_report to dump out the table logs I see the log_id field populated as expected (e.g. GCxxxxx_yyyyy).

If I then copy records from this database to a new blank database and use the same SQL command then in the sql_report the log_id field is blank.

Steps to Reproduce
  1. Import a GSAK database with logs (or I suspect a GPX file)
  2. Flag some records and copy them to a new blank database
  3. Use the sql_report macro to dump table logs

Original Database

185004 30460 GC2P56Y_1391937708 Found it 2026-10-31 11:30:44.000000 LouisaHills 48203616 Third time lucky! Gosh that was hard to spot. 0     0

Copied database

2 1   Found it 2026-10-31 11:30:44.000000 LouisaHills 48203616 Third time lucky! Gosh that was hard to spot. 0     0
Expected Behavior

I would expect log_id to be maintained over the copy

Environment

Windows 11
OpenSAK 1.23.0-beta.8

主要言語
Python
スター
37
フォーク
17
平均マージ
1日 11時間
マージ済み PR(30日)
78

環境構築

はじめの一歩

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

OpenSAK-Org/OpenSAK のほかの issue

OpenSAK-Org/OpenSAK の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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