diff --git a/query-engine/core/src/compiler/translate/query.rs b/query-engine/core/src/compiler/translate/query.rs index 37bcacb7bc1..f3ff82c9529 100644 --- a/query-engine/core/src/compiler/translate/query.rs +++ b/query-engine/core/src/compiler/translate/query.rs @@ -18,8 +18,11 @@ use crate::{ use super::TranslateResult; pub(crate) fn translate_query(query: Query) -> TranslateResult { - let connection_info = - ConnectionInfo::External(ExternalConnectionInfo::new(SqlFamily::Sqlite, "main".to_owned(), None)); + let connection_info = ConnectionInfo::External(ExternalConnectionInfo::new( + SqlFamily::Postgres, + "public".to_owned(), + None, + )); let ctx = Context::new(&connection_info, None); @@ -30,7 +33,7 @@ pub(crate) fn translate_query(query: Query) -> TranslateResult { } fn build_db_query<'a>(query: impl Into>) -> TranslateResult { - let (sql, params) = quaint::visitor::Sqlite::build(query)?; + let (sql, params) = quaint::visitor::Postgres::build(query)?; let params = params .into_iter() .map(convert::quaint_value_to_prisma_value)