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

Fix sqlite compilation #2098

Merged
merged 1 commit into from
Sep 19, 2022
Merged

Conversation

cycraig
Copy link
Contributor

@cycraig cycraig commented Sep 18, 2022

Description

Small change to fix compilation errors on the 0.7-dev branch from merging #1946, #1960 and #2094 (nothing was wrong with any of those PRs, just a merging thing).

Motivation

Compilation errors blocking further work. Figured it would be better to fix them in a separate PR.

Error 1:

error: failed to select a version for `libsqlite3-sys`.
    ... required by package `sqlx v0.6.2 (<...>\sqlx)`
    ... which satisfies path dependency `sqlx` (locked to 0.6.2) of package `files v0.1.0 (<...>\sqlx\examples\postgres\files)`
versions that meet the requirements `^0.24` are: 0.24.2, 0.24.1, 0.24.0                                

Error 2:

   Compiling sqlx-core v0.6.2 (<...>\sqlx\sqlx-core)
error[E0532]: expected tuple struct or tuple variant, found struct variant `CursorDataType::Normal`
   --> sqlx-core\src\sqlite\connection\explain.rs:363:17
    |
188 | /     Normal {
189 | |         cols: HashMap<i64, ColumnType>,
190 | |         is_empty: Option<bool>,
191 | |     },
    | |_____- `CursorDataType::Normal` defined here
...
363 |                   CursorDataType::Normal(hm) => {
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
help: use struct pattern syntax instead
    |
363 |                 CursorDataType::Normal { cols, is_empty } => {
    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: consider importing this tuple variant instead

@abonander abonander merged commit e82b717 into launchbadge:0.7-dev Sep 19, 2022
abonander pushed a commit that referenced this pull request Feb 18, 2023
abonander pushed a commit that referenced this pull request Feb 21, 2023
Aandreba pushed a commit to Aandreba/sqlx that referenced this pull request Mar 31, 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

Successfully merging this pull request may close these issues.

None yet

2 participants