We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e4340 commit 4fd03ecCopy full SHA for 4fd03ec
tests/any/any.rs
@@ -168,8 +168,14 @@ async fn it_encodes_decodes_json() -> anyhow::Result<()> {
168
.execute(&mut conn)
169
.await?;
170
171
+ #[cfg(feature = "postgres")]
172
+ let query = "insert into json_test (data) values ($1)";
173
+
174
+ #[cfg(not(feature = "postgres"))]
175
+ let query = "insert into json_test (data) values (?)";
176
177
// Insert into the temporary table:
- sqlx::query("insert into json_test (data) values ($1)")
178
+ sqlx::query(query)
179
.bind(Json(&json_value))
180
181
0 commit comments