Handle support/permissions errors in info call (#635)
* Handle support/permissions errors in info call * Fix linting
This commit is contained in:
@@ -14,6 +14,9 @@ var (
|
||||
//go:embed sql/info.sql
|
||||
Info string
|
||||
|
||||
//go:embed sql/info_simple.sql
|
||||
InfoSimple string
|
||||
|
||||
//go:embed sql/estimated_row_count.sql
|
||||
EstimatedTableRowCount string
|
||||
|
||||
|
||||
6
pkg/statements/sql/info_simple.sql
Normal file
6
pkg/statements/sql/info_simple.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
SELECT
|
||||
session_user,
|
||||
current_user,
|
||||
current_database(),
|
||||
current_schemas(false),
|
||||
version()
|
||||
Reference in New Issue
Block a user