, wenn ich meine ubuntu 15,10-16,04 bekam ein Upgrade habe ich dieses erro in meinem yii2 ProjektSQLSTATE [42000]: Syntaxfehler oder Zugriffsverletzung: 1055 Expression # 3 von SELECT-Liste ist in GROUP BY-Klausel nicht und enthält nicht aggregierten
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3
of SELECT list is not in GROUP BY clause and contains nonaggregated column
'iicityYii.opportunity_conditions.money' which is not functionally dependent
on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Die SQL ausgeführt wird, war:
SELECT SUM(oc.money),op.id,oc.money,
op.mantaghe,
op.`time`, op.`id`, `op`.`logo`,
`pd`.`user_id`, `op`.`name`,
`pd`.`co_name`, `op`.`address`,
`op`.`project_type_id`, `op`.`state_id`
FROM `opportunity` op
INNER JOIN `profile_details` pd ON op.user_id=pd.user_id
INNER JOIN `opportunity_conditions` oc ON op.id=oc.opportunity_id
GROUP BY `op`.`id`
ORDER BY `op`.`id` DESC
, wie mein Problem zu lösen?
Arbeitete für mich, danke. – Stephen
Es hat auch für mich funktioniert. Danke – manian
Wie Rollback? – abenevaut