-
-
Notifications
You must be signed in to change notification settings - Fork 298
Validation support for columns with INT type #2170
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
base: main
Are you sure you want to change the base?
Conversation
|
could you add a minimal example (either a new one or modifying one of the existing) and add it as a testcase under According to my understanding this should not be possible => very valuable to have a testcase for this. |
|
I am struggling to get the development working on macOS. Related issues: I am able to use martin on macOS but I am not able to start development server. |
|
For what you are trying to test, neither postgis nor nginx should be nessesary. Postgis does not currently publish arm images, but there is movement: I would recommend you to write a test and just execute that one for the time beeing: |
|
I can run test on main branch. But once I apply my fix of query the test does not run any more. martin git:(patch-1) cargo test -- detect_type
Compiling mbtiles v0.13.1 (/Users/robertsasak/Documents/GitHub/martin/mbtiles)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> mbtiles/src/queries.rs:26:15
|
26 | let sql = query!(
| _______________^
27 | | "SELECT (
28 | | -- Has a 'map' table
29 | | SELECT COUNT(*) = 1
... |
61 | | ) AS is_valid;"
62 | | );
| |_____^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> mbtiles/src/queries.rs:72:15
|
72 | let sql = query!(
| _______________^
73 | | "SELECT (
74 | | -- 'tiles_with_hash' table or view columns and their types are as expected:
75 | | -- 5 columns (zoom_level, tile_column, tile_row, tile_data, tile_hash).
... |
85 | | ) as is_valid;"
86 | | );
| |_____^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> mbtiles/src/queries.rs:115:15
|
115 | let sql = query!(
| _______________^
116 | | "SELECT (
117 | | -- Has a 'tiles' table
118 | | SELECT COUNT(*) = 1
... |
134 | | ) as is_valid;"
135 | | );
| |_____^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `mbtiles` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `mbtiles` (lib test) due to 3 previous errorsIt seems like fixtures are not cached for my queries. I tried to generate them by running So I tried to run Is there anybody how is contributing from macos? |
Fix #2169