Skip to content

Instantly share code, notes, and snippets.

@DGaffney
Created March 18, 2011 04:15
Show Gist options
  • Select an option

  • Save DGaffney/875611 to your computer and use it in GitHub Desktop.

Select an option

Save DGaffney/875611 to your computer and use it in GitHub Desktop.
def self.spooled_result(query)
puts query
connection = Environment.db
connection.query_with_result = false
sync = connection.real_query(query)
return sync.use_result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment