0

I am trying to execute some System Macro Functions in MySQL and MSSQL in FireDAC, but it gives me this message:

[FireDAC][Phys]-327. Escape function [DATABASE] is not supported

Select { Database() }
Select { User() }
Select { NEWGUID( ) }

2
  • FireDAC just does some text replacement in the SQL before sending it to the server. Can you log what the server receives?
    – Jan Doggen
    Oct 3 at 9:51
  • Searching through the FireDac source files shows this is error string S_FD_AccEscapeIsnotSupported, issued on error er_FD_AccEscapeIsnotSupported, from TFDPhysConnectionMetadata.UnsupportedEscape. Set a breakpoint there and investigate what is going on. You'll probably see that the error originates in either FireDAC.Phys.MSSQLMeta.pas or FireDAC.Phys.MySQLMeta.pas.
    – Jan Doggen
    Oct 3 at 9:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.