Double quotes problem
Posted: Wed 17 Mar 2021 18:34
Hi, I use UniDAC 6.1.3 for Delphi 2006 and 8.2.4 for RAD Studio 10.2 to connect with MySQL 8.0.23.
My simple code like:
produces error:
I checked global and session variables sql_mode and there is not ANSI_QUOTES in it.
My simple code like:
Code: Select all
procedure TForm34.Button1Click(Sender: TObject);
begin
UniQuery1.SQL.Text := 'SELECT "0"';
UniQuery1.Open;
end;
While the same query with apostrophes (single quotes) instead double quotes runs ok.Exception class EMySqlException with message '#42S22Unknown column '0' in 'field list''.
I checked global and session variables sql_mode and there is not ANSI_QUOTES in it.