mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
Add comment regarding booleans in MySQL
This commit is contained in:
parent
89c9b059e6
commit
38e630d107
@ -88,6 +88,8 @@ ORDER BY id
|
|||||||
.fetch_all(pool)
|
.fetch_all(pool)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
// NOTE: Booleans in MySQL are stored as `TINYINT(1)` / `i8`
|
||||||
|
// 0 = false, non-0 = true
|
||||||
for rec in recs {
|
for rec in recs {
|
||||||
println!(
|
println!(
|
||||||
"- [{}] {}: {}",
|
"- [{}] {}: {}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user