functions to get conditions about a relation
Merge branch 'QL_Component' of https://github.com/daizhihui/tinyBase into QL_Component