Skip to content
Snippets Groups Projects
Unverified Commit 9a6843e6 authored by dpsutton's avatar dpsutton Committed by GitHub
Browse files

Fix tests for mariadb and mysqldb [ci drivers] (#13485)

following template too closely with the `(parent-thunk)` call and
forgot it was wrapped in its own thunk so i was calling it before we
were using the result set.
parent df32be4a
No related branches found
No related tags found
No related merge requests found
......@@ -375,7 +375,7 @@
(when-let [x (.getObject rs i)]
(.toLocalDate ^java.sql.Date x)))
(let [parent-thunk ((get-method sql-jdbc.execute/read-column-thunk [:sql-jdbc Types/DATE]) driver rs rsmeta i)]
(parent-thunk))))
parent-thunk)))
(defn- format-offset [t]
(let [offset (t/format "ZZZZZ" (t/zone-offset t))]
......
......@@ -93,7 +93,7 @@
(mt/test-driver :mysql
(mt/dataset year-db
(testing "By default YEAR"
(is (= #{{:name "year_column", :base_type :type/Date, :special_type :type/Category}
(is (= #{{:name "year_column", :base_type :type/Date, :special_type nil}
{:name "id", :base_type :type/Integer, :special_type :type/PK}}
(db->fields (mt/db)))))
(let [table (db/select-one Table :db_id (u/id (mt/db)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment