Page 1 of 1

CRSQLConnection.pas(163): W1044 Suspicious typecast of WideString to PAnsiChar

Posted: Wed 30 May 2007 14:40
by henrikkehm
Hi,

I get a warning from BDS 2006 -> Delphi Win32 personality when I compile the unit CRSQLConnection.pas :

CRSQLConnection.pas(163): W1044 Suspicious typecast of WideString to PAnsiChar

if Params.Values[SRequiredFields] '' then
--> SQLConnection.SetOption(coRequiredFields, LongInt(PChar(Params.Values[SRequiredFields])));

Regards
Henrik Kehm

Posted: Thu 31 May 2007 09:12
by Jackson
Thank you for information.
We have reproduced this issue with the warning and fixed it.
This fix will be included in the next build of DbxSda.
Please ignore this warning.