You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
statement =@client.prepare("SELECT * FROM users WHERE login_count = ?")
@@ -348,7 +351,8 @@ end
348
351
```
349
352
350
353
Yields:
351
-
```
354
+
355
+
```ruby
352
356
{"1"=>1}
353
357
{"2"=>2}
354
358
next_result: Unknown column 'A' in 'field list' (Mysql2::Error)
@@ -507,7 +511,7 @@ There are a few things that need to be kept in mind while using streaming:
507
511
* `:cache_rows` is ignored currently. (if you want to use `:cache_rows` you probably don't want to be using `:stream`)
508
512
* You must fetch all rows in the result set of your query before you can make new queries. (i.e. with `Mysql2::Result#each`)
509
513
510
-
Read more about the consequences of using `mysql_use_result` (what streaming is implemented with) here: http://dev.mysql.com/doc/refman/5.0/en/mysql-use-result.html.
514
+
Read more about the consequences of using `mysql_use_result` (what streaming is implemented with) here: [http://dev.mysql.com/doc/refman/5.0/en/mysql-use-result.html](http://dev.mysql.com/doc/refman/5.0/en/mysql-use-result.html).
511
515
512
516
### Lazy Everything
513
517
@@ -528,21 +532,21 @@ As for field values themselves, I'm workin on it - but expect that soon.
528
532
529
533
This gem is tested with the following Ruby versions on Linux and Mac OS X:
Copy file name to clipboardExpand all lines: ext/mysql2/extconf.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ def asplode(lib)
7
7
elsifRUBY_PLATFORM =~ /darwin/
8
8
abort"-----\n#{lib} is missing. You may need to 'brew install mysql' or 'port install mysql', and try again.\n-----"
9
9
else
10
-
abort"-----\n#{lib} is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again.\n-----"
10
+
abort"-----\n#{lib} is missing. You may need to 'sudo apt-get install libmariadb-dev', 'sudo apt-get install libmysqlclient-dev' or 'sudo yum install mysql-devel', and try again.\n-----"
0 commit comments