Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonne Haß <me@mrzyx.de>2013-08-31 19:56:19 +0400
committerJonne Haß <me@mrzyx.de>2014-08-23 18:34:00 +0400
commit2f1193fa360ea2853f7bf75095aa47517bdd6402 (patch)
tree04afe5377557c89ce48069a7725947895aa0f292 /lib
parentdfa0245f4b9c4824a88eae1c02c1d40deb6d64f7 (diff)
Fix "prepared statements" errors
See https://coderwall.com/p/45ombq
Diffstat (limited to 'lib')
-rw-r--r--lib/evil_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/evil_query.rb b/lib/evil_query.rb
index a9923d4cd..395022b8b 100644
--- a/lib/evil_query.rb
+++ b/lib/evil_query.rb
@@ -6,7 +6,7 @@ module EvilQuery
end
def id_sql(relation, id_column)
- relation.select(id_column).to_sql
+ @class.connection.unprepared_statement { relation.select(id_column).to_sql }
end
end