I'm trying to insert into text datatype column in postgresql with yii.
code in migration
'description' => 'text'
when trying to
$model->save()
where model is activerecord and
$model->description
is some random string, I get the following
SQLSTATE[42804]: Datatype mismatch: 7 ERROR: argument of WHERE must be type boolean, not type text
LINE 1: SELECT 1 FROM "entry" "t" WHERE description LIMIT 1
^. The SQL statement executed was: SELECT 1 FROM "entry" "t" WHERE description LIMIT 1
Everything works fine for mysql database or for varchar columns what's wrong here?
Edit: Apparently there are no problems with postgresql yii activerecord->save() somehow generates wrong queries for postgres