but obviously I want to be able to dynamicaly change the from-to dates so I add parameters and as test values I use exactly the same dates
I get no results now…
it’s a MySQL server; dates are stored as datetime
you can see in my first screenshot that the query returns results - but only when the dates are hardcoded into it…
Yes, it is the safest way to use ?. The :P1 and :P2 are also being translated to ? first, but it is not always parsed correctly. In the upcoming update we have improved it.
I understand I need to make sure that all the ? need to be in the same order as their respective parameters? I can live with that.
Thanks a lot for your help!
That is indeed the downside, the order and number must be exactly the same. That is why the named parameters are so popular, you don’t have to care about the order and no duplication when same value is used multiple times.