Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions from Rust newbies #270

Closed
Vjze opened this issue Dec 6, 2023 · 1 comment
Closed

Questions from Rust newbies #270

Vjze opened this issue Dec 6, 2023 · 1 comment

Comments

@Vjze
Copy link

Vjze commented Dec 6, 2023

When there are more than 12 query items, an error will be reported, but within 12 items, it can run normally. Why is this?
1
2

20231206_222621.mp4
@blackbeam
Copy link
Owner

Hi.
12 is a usual maximum arity for tuples that implements traits. Consider using something like this:

conn.query_map("...", |row: mysql_async::Row| {
    // do something with mysql_async::Row
});

@Vjze Vjze closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants