mirror of
https://github.com/Phundrak/georm.git
synced 2025-11-30 19:03:59 +00:00
test: added tests for M2M relationships, it works
This commit is contained in:
@@ -103,13 +103,11 @@ impl From<&M2MRelationshipComplete> for proc_macro2::TokenStream {
|
||||
);
|
||||
let entity = &value.entity;
|
||||
let query = format!(
|
||||
"
|
||||
SELECT remote.*
|
||||
"SELECT remote.*
|
||||
FROM {} local
|
||||
JOIN {} link ON link.{} = local.{}
|
||||
JOIN {} remote ON link.{} = remote.{}
|
||||
WHERE local.{} = $1
|
||||
",
|
||||
WHERE local.{} = $1",
|
||||
value.local.table,
|
||||
value.link.table,
|
||||
value.link.from,
|
||||
|
||||
Reference in New Issue
Block a user