Sequel+postgresql truncate strategy fails if there's tables in other schemas
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず、issue で説明されている Sequel の truncate 戦略と db.tables の呼び出しを見つけます。PostgreSQL で public.orders と audit.logged_actions を使って失敗を再現し、その後、テーブル名がスキーマ修飾を保持している場合に truncate が成功することを確認します。
索引モデルが issue の本文から書いたものです。
説明
If I have a table in the "audit" schema on postgresql, using the Sequel truncate strategy will fail. A quick review of the code shows something like this is happening:
execute "truncate #{ db.tables.join(', ')"
db.tables will return a list of all the tables without being schema-qualified. So if I have public.orders and audit.logged_actions, this gets ran: truncate orders, logged_actions which will fail.
A possible solution is to get this SQL running instead: truncate public.orders, audit.logged_actions
- 主要言語
- Ruby
- スター
- 19
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DatabaseCleaner/database_cleaner-sequel のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
DatabaseCleaner/database_cleaner-sequel#28 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DatabaseCleaner/database_cleaner-sequel#23 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
DatabaseCleaner/database_cleaner-sequel#18 · コメント 4 件 · リアクション 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
DatabaseCleaner/database_cleaner-sequel#2 · コメント 5 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DatabaseCleaner/database_cleaner-sequel#3 · コメント 3 件 ·
DatabaseCleaner/database_cleaner-sequel の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
googleapis/google-api-ruby-client#28001 · リアクション 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100