We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PHQL Reserved words

So in the docs https://docs.phalcon.io/en/latest/reference/phql.html#escaping-reserved-words it mentions the PHQL has reserved words. But there doesn't seem to be a list of what these are anywhere. It might actually be good to provide this information. Are the errors sufficient enough to highlight if this is the case?

They just the same as MySQL reserved words.

Hi Wojciech,

Thanks for this information.

But I need to extend this words, I do not use Mysql Adapter, and I need to extend it.

I saw in a documentation that e could put words between brackets, but it doesn't work.

Is it possible to extend or override any class to add our own Reserved word ?

Best regards

David

What you mean by our own reserved word? You need in phql to put the reserved word between [ and ] as i remember and it should work. What exactly you mean it doesn't work? What error you have? Maybe your problem is that PHQL doesn't know what it is?