File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- (defproject metabase /teradata-driver " 1.0.0-teradata-jdbc-16.00 "
1+ (defproject metabase /teradata-driver " 1.0.0-teradata-jdbc-16.20 "
22 :min-lein-version " 2.5.0"
33
44 :profiles
Original file line number Diff line number Diff line change 237237(defmethod driver /supports? [:teradata :nested-queries ] [_ _] false )
238238
239239(defmethod driver /date-add :teradata [_ dt amount unit]
240- " 0 amount not handled, would be kind of pointless."
241- (if (> amount 0 )
240+ (if (>= amount 0 )
242241 (hx/+ (hx/->timestamp dt) (hsql/raw (format " INTERVAL '%d' %s" (int amount) (name unit))))
243- (hx/- (hx/->timestamp dt) (hsql/raw (format " INTERVAL '%d' %s" (Math/abs (int amount)) (name unit))))))
242+ (hx/- (hx/->timestamp dt) (hsql/raw (format " INTERVAL '%d' %s" (Math/abs (int amount)) (name unit))))))
You can’t perform that action at this time.
0 commit comments