MySQL Forums
Forum List  »  Delphi

only_full_group_by error
Posted by: Jim Sawyer
Date: January 17, 2023 01:51PM

When using the following routine

function Total_Balance( dDate: TDateTime; nClino: Integer ): Double;
var
aQuery: TFDQuery;
begin
Result := 0;
aQuery := TFDQuery.Create( AConnection );
aQuery.Connection := AConnection;
aQuery.SQL.Text := 'Select Clino, ' +
'Sum( ToBePaid ) as nTotal ' +
'from Invoice ' +
'where Clino = :C';
aQuery.ParamByName('C').AsInteger := nClino;
aQuery.IndexFieldNames := 'Clino';
aQuery.IndexesActive := true;
aQuery.open;
aQuery.Active := true;
end;

I get a message telling me the list contains a nonaggregated column which is uncompatable with only_full_group_by.

What's going on. I used this routine without a problem for months, and now I get it, but only on some computers (same version of MySQL and my software).

Help!

Thanks,
Jim Sawyer

Options: ReplyQuote


Subject
Written By
Posted
only_full_group_by error
January 17, 2023 01:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.