Skip to content

Commit

Permalink
[DB-31546] Switch to LIST VIEWS, upgrade metabase (#32)
Browse files Browse the repository at this point in the history
* Switch to LIST VIEWS, upgrade metabase

* Bump version
  • Loading branch information
alougov1 authored Nov 7, 2024
1 parent facc883 commit ee5b0c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metabase
Submodule metabase updated 3877 files
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject metabase/ocient-driver "v1.2.0"
(defproject metabase/ocient-driver "v1.2.1"
:min-lein-version "2.5.0"

:repositories {"project" "file:repo"}
Expand Down
2 changes: 1 addition & 1 deletion resources/metabase-plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Complete list of options here: https://github.com/metabase/metabase/wiki/Metabase-Plugin-Manifest-Reference
info:
name: Metabase Ocient Driver
version: v1.2.0
version: v1.2.1
description: Allows Metabase to connect to Ocient databases.

driver:
Expand Down
2 changes: 1 addition & 1 deletion src/metabase/driver/ocient.clj
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
These are returned as a set of maps, the same format as `:tables` returned by `describe-database`."
[database]
(try (set (jdbc/query (sql-jdbc.conn/db->pooled-connection-spec database)
["SELECT schema AS \"schema\", name AS \"name\" FROM sys.views;"]))
["LIST VIEWS;"]))
(catch Throwable e
(log/error e "Failed to fetch views for this database"))))

Expand Down

0 comments on commit ee5b0c3

Please sign in to comment.