Potentially incorrect query results - Beta Foreign Keys #611
-
I just noticed a surprisingly straightforward case of incorrect query results. Reproduction stepsSteps I have taken to ensure that this is not caused by other factors than the database:
Steps I have not yet been able to take:
Steps I will not be able to take:
Data Model:Query:
OutputProduces the following result:
From the previous, it seems to me that removing the comment should produce the following result:
However, removing the comment produces an empty table (no rows). What did I miss? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @gnotisauton, I would be happy to work more closely with you via our https://support.planetscale.com/ site as a case like will likely require some additional review and back and forth to solve successfully and it would be easier to share further details with us through there. One immediate thought that does come to mind however that would be good to rule out, especially if the That's definitely been something that's occurred before and can be hard to catch and you might be able to even quickly verify if this may be the case by modifying the filter to something like |
Beta Was this translation helpful? Give feedback.
Hello @gnotisauton,
I would be happy to work more closely with you via our https://support.planetscale.com/ site as a case like will likely require some additional review and back and forth to solve successfully and it would be easier to share further details with us through there.
One immediate thought that does come to mind however that would be good to rule out, especially if the
Title
values are entered manually into yourProgrammes
table is whether it is possible that there is a trailing space, or extra character of some sort that would make it so that when you add the filter on theTitle
field that it actually doesn't match the values leading to the empty result set?That's definite…