Skip to content
Snippets Groups Projects
Commit 87d344be authored by Cam Saul's avatar Cam Saul
Browse files

varchar -> TextField

parent b02f40df
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,7 @@
{:pre [(keyword? sql-string-length-fn)]}
(or (some-> (korma-entity @(:table field))
(k/select (k/aggregate (avg (k/sqlfn* sql-string-length-fn
(k/raw (let [s (format "CAST(%s AS CHAR)" (i/quote-name driver (name (:name field))))]
(println (u/format-color 'cyan "------------------------------> %s" s))
s))))
(k/raw (format "CAST(%s AS CHAR)" (i/quote-name driver (name (:name field)))))))
:len))
first
:len
......
......@@ -54,7 +54,7 @@
:TINYINT :IntegerField
:TINYTEXT :TextField
:VARBINARY :UnknownField
:VARCHAR :CharField
:VARCHAR :TextField
:YEAR :IntegerField})
#_(defn- column->base-type [t]
......
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