Skip to content

Commit 380bccb

Browse files
committed
Add a note about using :cast and :cast_booleans together.
1 parent 63dfebe commit 380bccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ result = client.query("SELECT * FROM table_with_boolean_field", :cast_booleans =
335335

336336
### Skipping casting
337337

338-
Mysql2 casting is fast, but not as fast as not casting data. In rare cases where typecasting is not needed, it will be faster to disable it by providing :cast => false.
338+
Mysql2 casting is fast, but not as fast as not casting data. In rare cases where typecasting is not needed, it will be faster to disable it by providing :cast => false. (Note that :cast => false overrides :cast_booleans => true.)
339339

340340
``` ruby
341341
client = Mysql2::Client.new

0 commit comments

Comments
 (0)