Код: Выделить всё
Database Exception – yii\db\Exception
SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: integer ~~ unknown
LINE 1: SELECT COUNT(*) FROM "tasks" WHERE "lesson_id" LIKE $1
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
The SQL being executed was: SELECT COUNT(*) FROM "tasks" WHERE "lesson_id" LIKE '%1%'
Error Info: Array
(
[0] => 42883
[1] => 7
[2] => ERROR: operator does not exist: integer ~~ unknown
LINE 1: SELECT COUNT(*) FROM "tasks" WHERE "lesson_id" LIKE $1
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
)
↵
Caused by: PDOException
SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: integer ~~ unknown
LINE 1: SELECT COUNT(*) FROM "tasks" WHERE "lesson_id" LIKE $1
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
grid view - фильтр
Ошибка возникает с postgresql. на мускуле работает нормально все.