summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortim b <timb@camcompu.home>2010-09-22 10:12:27 -0700
committertim b <timb@camcompu.home>2010-09-22 10:12:27 -0700
commita88f4d42d41c8d59a8d5663f29e268c59cb60dfe (patch)
tree8f6a2556817524dfd1bf172ec9fe91753536e271
parentb5926d12d5a1db933b74d08a2127d8a773bdc5a1 (diff)
sql fuckup
-rw-r--r--src/site.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/site.clj b/src/site.clj
index 4ff0c45..e38020a 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -1003,7 +1003,7 @@ WHERE u.user_id = ANY(?)"
(defn ghetto-search-query [num-tokens]
(str "select
url from image_urls
- where content ilike " (str-join " and content ilike " (take num-tokens (repeat "?"))) "
+ where url ilike " (str-join " and url ilike " (take num-tokens (repeat "?"))) "
order by last_posted desc
limit 200;"))