escaping a string in query

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
capfka
Posts: 3
Joined: Sat 27 Apr 2019 17:33

Re: escaping a string in query

Post by capfka » Wed 18 Sep 2019 11:43

Thanks for the response, VictorV. Better late than never. I'd left that issue until now. I will follow your advice! Again, thanks.

ViktorV
Devart Team
Posts: 2867
Joined: Wed 30 Jul 2014 07:16

Re: escaping a string in query

Post by ViktorV » Thu 19 Sep 2019 14:08

Thank you for the interest to our product.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

vindac
Posts: 20
Joined: Tue 18 Mar 2014 16:44

Re: escaping a string in query

Post by vindac » Mon 03 Feb 2020 09:45

ViktorV wrote:
Wed 27 Jul 2016 14:03
The TMySQLConnection.EscapeAndQuoteStr class is declared in the MyClasses.pas module. But it is inadvisable for your case.
Hello,

Is there a String version of this function too? I see those versions in MyClasses.pas:

Code: Select all

	
	System::AnsiString __fastcall EscapeAndQuoteStr(const char * p, int Len)/* overload */;
	System::AnsiString __fastcall EscapeAndQuoteStr(const System::AnsiString p, int Len)/* overload */;
	System::WideString __fastcall EscapeAndQuoteWideStr(const System::WideChar * p, int Len)/* overload */;
	System::WideString __fastcall EscapeAndQuoteWideStr(const System::WideString p, int Len)/* overload */;

ViktorV
Devart Team
Posts: 2867
Joined: Wed 30 Jul 2014 07:16

Re: escaping a string in query

Post by ViktorV » Mon 03 Feb 2020 12:18

No, MyClasses.pas contains only the above methods. A function TMySQLConnection.EscapeAndQuoteStr with type String doesn't exist.

Post Reply