php - Cakephp 2.X doesn't support postgresql ltree operator '?' likes "ltree ? lquery[]" -


i use postgresql ltree in cakephp 2.x controller , found when use query below:

$this->userinfo->query(     'select * user_infos path ? \'{'test1.1','test2.1'}\'' );  

it can execute through psql. format due ltree ? lquery[]

it throw error:

error: sqlstate[42601]: syntax error: 7 error: syntax error @ or near "[" line 1:        ...t * user_infos where path $1 \'{'test1.1 ... ^ 

it seems pdo treats ? $1 argument?

anyone has idea prevent problem?


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -