File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5454 :MACADDR :type/Text
5555 :MONEY :type/Decimal
5656 :NUMERIC :type/Decimal
57+ :NUMBER :type/Decimal
5758 :PATH :type/*
5859 :POINT :type/*
5960 :REAL :type/Float
221222(def ^:private ^:const now [:raw " CURRENT_TIMESTAMP" ])
222223
223224(defmethod sql.qp /date [:teradata :default ] [_ _ expr] expr )
224- (defmethod sql.qp /date [:teradata :minute ] [_ _ expr] (:to_timestamp ( :raw " 'yyyy-mm-dd hh24:mi'" ) expr))
225+ (defmethod sql.qp /date [:teradata :minute ] [_ _ expr] (:to_timestamp [ :raw " 'yyyy-mm-dd hh24:mi'" ] expr))
225226(defmethod sql.qp /date [:teradata :minute-of-hour ] [_ _ expr] [::h2x/extract :minute expr])
226- (defmethod sql.qp /date [:teradata :hour ] [_ _ expr] (:to_timestamp ( :raw " 'yyyy-mm-dd hh24'" ) expr))
227+ (defmethod sql.qp /date [:teradata :hour ] [_ _ expr] (:to_timestamp [ :raw " 'yyyy-mm-dd hh24'" ] expr))
227228(defmethod sql.qp /date [:teradata :hour-of-day ] [_ _ expr] [::h2x/extract :hour expr])
228229(defmethod sql.qp /date [:teradata :day ] [_ _ expr] (h2x/->date expr))
229230(defmethod sql.qp /date [:teradata :day-of-week ] [driver _ expr] (h2x/inc (h2x/- (sql.qp/date driver :day expr)
269270
270271(defmethod sql.qp /apply-top-level-clause [:teradata :limit ]
271272 [_ _ honeysql-form {value :limit }]
272- (update honeysql-form :select deduplicateutil/deduplicate-identifiers)
273- )
273+ (update honeysql-form :select deduplicateutil/deduplicate-identifiers))
274274
275275(defmethod sql.qp /apply-top-level-clause [:teradata :page ] [_ _ honeysql-form {{:keys [items page]} :page }]
276- (assoc honeysql-form :offset ( :raw (format " QUALIFY ROW_NUMBER() OVER (%s) BETWEEN %d AND %d"
276+ (assoc honeysql-form :offset [ :raw (format " QUALIFY ROW_NUMBER() OVER (%s) BETWEEN %d AND %d"
277277 (first (format (select-keys honeysql-form [:order-by ])
278278 :allow-dashed-names? true
279279 :quoting :ansi ))
280280 (inc (* items (dec page)))
281- (* items page))) ))
281+ (* items page))] ))
282282
283283(def excluded-schemas
284284 #{" SystemFe" " SYSLIB" " LockLogShredder" " Sys_Calendar" " SYSBAR" " SYSUIF"
You can’t perform that action at this time.
0 commit comments