File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 163163; ; Custom Schema Sync Implementations
164164; ; ----------------------------------------------------------------
165165
166- ; ; List tables by executing the "SHOW TABLES" command .
166+ ; ; List tables by querying information_schema.tables .
167167(defmethod driver /describe-database :arrow-flight-sql
168168 [driver database]
169169 (let [spec (sql-jdbc.conn/connection-details->spec :arrow-flight-sql (:details database))]
170170 (with-open [conn (jdbc/get-connection spec)]
171171 (let [rows (jdbc/query {:connection conn}
172- [" SHOW TABLES " ]
172+ [" SELECT table_name, table_schema FROM information_schema.tables " ]
173173 {:identifiers str/lower-case})
174174 formatted (->> rows
175175 (filter #(not= (str/lower-case (:table_schema %)) " information_schema" ))
You can’t perform that action at this time.
0 commit comments