Comments (2)
Also experiencing this issue, though only when the fixtures argument is passed. It does not occur with a plain sqlx::test
macro.
Does not cause the error message: #[sqlx::test]
(Migrations are applied successfully, in this case.)
Causes the error message: #[sqlx::test(fixtures("graphs")]
Edit: This was resolved by adding a pool: PgPool arg to the test function signature.
from sqlx.
Yep, the code path that leads to the incorrect error is only triggered when the test
macro has arguments. And adding one of the various arguments to the function enables Automatic Test DB Management, which means the error is no longer necessary.
from sqlx.
Related Issues (20)
- Cannot provide a custom default value for `#[sqlx(default = "..")]` HOT 1
- QueryBuilder::push_bind doesn't work within JSOB query HOT 1
- to_url_lossy() does not generate a valid postgres URL for ssl-mode HOT 1
- `ParseError(TooLong)` when using macro `sqlx::query_as!` to map NaiveDateTime
- Support SSL in postgres without an upgrade request HOT 4
- Bug: Set statement does't support non-constant expr HOT 3
- `#[sqlx::test]` manage the full lifecycle of the test DB (inside a container) HOT 3
- Can not disable Prepared statement in SqlX HOT 1
- Cross compile failed with OpenHarmony HOT 1
- Question around sqlx::test and MySql HOT 1
- SQLx fails to infer subquery is not nullable and fails to infer type (with SQLite)
- Feature SQLite fails to build on aarch64
- The Postgres type `Bool` should be mapped to the `Any` type `Bool`
- If I insert an `Option<sqlx::types::Json<Struct>>` sqlx writes the text `null` in DB instead of mark that field as `NULL` HOT 1
- Warnings related to never type fallback and future compatibility in sqlx query_as function
- Disable linking to libsqlite3 when default features are disabled and sqlite is not a feature. HOT 1
- sqlx-cli -r flag does not create up/down on v0.7.4 HOT 1
- mysql create trigger return a error ,someting `Database(MySqlDatabaseError { code: Some("HY000"), number: 1295, message: "This command is not supported in the prepared statement protocol yet" }) `
- Allow using const values in the query! family of macros
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlx.