mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-23 18:40:24 +00:00
fix(macros): fix macros for Postgres
This commit is contained in:
@@ -183,7 +183,7 @@ where
|
||||
let sql = &input.src;
|
||||
|
||||
quote! {
|
||||
sqlx::query::<#db_path>(#sql).bind_all(#query_args)
|
||||
sqlx::query_with::<#db_path, _>(#sql, #query_args)
|
||||
}
|
||||
} else {
|
||||
let columns = output::columns_to_rust::<DB>(&data.describe)?;
|
||||
|
||||
@@ -119,7 +119,7 @@ pub fn quote_query_as<DB: DatabaseExt>(
|
||||
let sql = &input.src;
|
||||
|
||||
quote! {
|
||||
sqlx::query_with::<#db_path>(#sql, #bind_args).try_map(|row: #row_path| {
|
||||
sqlx::query_with::<#db_path, _>(#sql, #bind_args).try_map(|row: #row_path| {
|
||||
use sqlx::Row as _;
|
||||
use sqlx::result_ext::ResultExt as _;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user