Skip to content

Commit 3fbb98c

Browse files
authored
Merge pull request stuzero#3 from vmesel/fix
fix schema and tablename to support different charsets
2 parents a2b6932 + 014f899 commit 3fbb98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/resources/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ async def list_schema_tables(conn_id: str, schema: str):
3131
query = """
3232
SELECT
3333
t.table_name,
34-
obj_description(format('%s.%s', t.table_schema, t.table_name)::regclass::oid) as description,
35-
pg_stat_get_tuples_inserted(format('%s.%s', t.table_schema, t.table_name)::regclass::oid) as total_rows
34+
obj_description(format('"%s"."%s"', t.table_schema, t.table_name)::regclass::oid) as description,
35+
pg_stat_get_tuples_inserted(format('"%s"."%s"', t.table_schema, t.table_name)::regclass::oid) as total_rows
3636
FROM information_schema.tables t
3737
WHERE
3838
t.table_schema = $1

0 commit comments

Comments
 (0)