Skip to content

Commit d992855

Browse files
committed
TRD_cleanup_code
1 parent e24a59d commit d992855

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

deps.edn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
:paths [
33
; in case you get the error `All dirs should be absolute`, you forgot to define an absolute project-dir like so:
44
; clojure -X:build :project-dir "\"$(pwd)\""
5-
"/home/mikel/Documents/metabase-teradata-driver2/metabase-teradata-driver/src"
6-
"/home/mikel/Documents/metabase-teradata-driver2/metabase-teradata-driver/resources"
5+
"src"
6+
"resources"
77
]
88

99
:deps {

resources/metabase-plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ driver:
3737
- additional-options
3838
- placeholder: e.g. COPLAST=OFF
3939
# required in order that `Choose when syncs and scans happen` shows up in database options afterwards
40-
# (during first time setup, you only see `Periodically refingerprint tables` in metabase v0.45.2
40+
# (during first time setup, you only see `Periodically refingerprint tables` in metabase v0.45.3
4141
# the option `Choose when syncs and scans happen` only shows up later in admin -> Database -> advanced options)
4242
- default-advanced-options
4343
connection-properties-include-tunnel-config: false

src/metabase/driver/teradata.clj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
(some->> table-name (driver/escape-entity-name-for-metadata driver))
102102
nil)
103103
(fn [^ResultSet rs]
104-
;; https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)
105104
#(let [default (.getString rs "COLUMN_DEF")
106105
no-default? (contains? #{nil "NULL" "null"} default)
107106
nullable (.getInt rs "NULLABLE")
@@ -120,7 +119,6 @@
120119
"In some rare cases `:column_name` is blank (eg. SQLite's views with group by) fallback to sniffing the type from a
121120
SELECT * query."
122121
[driver ^Connection conn table-schema table-name]
123-
;; some DBs (:sqlite) don't actually return the correct metadata for LIMIT 0 queries
124122
(let [[sql & params] (sql-jdbc.sync.interface/fallback-metadata-query driver table-schema table-name)]
125123
(reify clojure.lang.IReduceInit
126124
(reduce [_ rf init]

0 commit comments

Comments
 (0)