From f406c17ea90a19d879bd4cf942868a7711a7075f Mon Sep 17 00:00:00 2001 From: ycc Date: Tue, 9 Nov 2021 13:49:52 +0100 Subject: [PATCH] schema tbale list label update --- pg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg.go b/pg.go index 74a043a..8bf671f 100755 --- a/pg.go +++ b/pg.go @@ -136,7 +136,7 @@ func (t *TableInfo) GetSchema() (*TableInfo, error) { } func (db *Db) ListTables() (Rows, error) { - return db.QueryAssociativeArray("SELECT table_name :: varchar FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name;") + return db.QueryAssociativeArray("SELECT table_name :: varchar as name FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name;") } func (db *Db) CreateTable(t TableInfo) error {