Skip to content

Commit a93f632

Browse files
committed
dialect/sqlite/main.go: Fix incorrect SQL: where type = 'temp_schema' to where type = 'table'
1 parent a1f1b4f commit a93f632

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dialect/sqlite/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
var Entry = &dialect.Entry{
1515
Usage: "sqlbless sqlite3 :memory: OR <FILEPATH>",
1616
SQLForTables: `
17-
select 'master' AS schema,name,rootpage,sql FROM sqlite_master
17+
select 'main' as schema,name,rootpage,sql from sqlite_master
1818
where type = 'table'
1919
union all
20-
select 'temp_schema' AS schema,name,rootpage,sql FROM sqlite_temp_schema
21-
where type = 'temp_schema'`,
20+
select 'temp' as schema,name,rootpage,sql from sqlite_temp_master
21+
where type = 'table'`,
2222
TypeConverterFor: typeNameToConv,
2323
PlaceHolder: &placeHolder{},
2424
SQLForColumns: `PRAGMA table_info({table_name})`,

0 commit comments

Comments
 (0)