diff --git a/dialect/sqlite/main.go b/dialect/sqlite/main.go index 16bcfb2..b14510e 100644 --- a/dialect/sqlite/main.go +++ b/dialect/sqlite/main.go @@ -14,11 +14,11 @@ import ( var Entry = &dialect.Entry{ Usage: "sqlbless sqlite3 :memory: OR ", SQLForTables: ` - select 'master' AS schema,name,rootpage,sql FROM sqlite_master + select 'main' as schema,name,rootpage,sql from sqlite_master where type = 'table' union all - select 'temp_schema' AS schema,name,rootpage,sql FROM sqlite_temp_schema - where type = 'temp_schema'`, + select 'temp' as schema,name,rootpage,sql from sqlite_temp_master + where type = 'table'`, TypeConverterFor: typeNameToConv, PlaceHolder: &placeHolder{}, SQLForColumns: `PRAGMA table_info({table_name})`, diff --git a/release_note_en.md b/release_note_en.md index c61b512..f292f41 100644 --- a/release_note_en.md +++ b/release_note_en.md @@ -12,6 +12,7 @@ Release notes (English) - Display `*` in the status line when there are unsaved changes - Implement page up/down - Assign `gg` as an additional keybinding for moving to the first row. +- Fix incorrect SQL for querying temporary tables in SQLite3 (#24) v0.27.0 ------- diff --git a/release_note_ja.md b/release_note_ja.md index f345caa..9665cbb 100644 --- a/release_note_ja.md +++ b/release_note_ja.md @@ -13,6 +13,7 @@ Release notes (Japanese) - 変更がある場合、ステータスラインに`*` を表示 - ページ単位の移動(PgDn,PgUp)を実装 - `gg` にファイル先頭への移動を設定 +- SQLite3 のテーブル一覧取得時における、一時テーブルの誤った参照方法を修正 (#24) v0.27.0 -------