Created
December 2, 2013 09:22
-
-
Save jdelStrother/7747010 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mysql2' | |
| require 'fast_stack' | |
| client = Mysql2::Client.new(:host => "localhost", :username => "root") | |
| query = "SELECT * FROM information_schema.COLUMNS LIMIT 58" | |
| # '58' is something of a magic number for this query. Any less, and the bug doesn't show up. At 58 or greater, I get: | |
| # "Lost connection to MySQL server during query (Mysql2::Error)" | |
| # The bug goes away if you comment out the FastStack.profile{} line. | |
| FastStack.profile{ | |
| res = client.query(query) | |
| puts "Got #{res.to_a.length} rows" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment