php-reports icon indicating copy to clipboard operation
php-reports copied to clipboard

ADO reports / use proper sql escape function according to database vendor

Open tnguyen1 opened this issue 11 years ago • 1 comments

  • ADO reports were always using mysql_real_escape_string function which made macro values empty for other databases like postgresql
  • Current suggested implementation: if dsn uri starts with 'postgres' then use pg_escape_string function - use mysql_real_escape_string function otherwise

There must be a better way to fix it though but the idea is to be able to use any database vendor (not only MySQL) with ADO connections.

tnguyen1 avatar Sep 25 '14 14:09 tnguyen1

+1. I lost a lot of time until I found this solution ... Thanks! The repo owner haven't pushed since 5 month ago. Maybe the project is unmaintained?

silvioq avatar Apr 27 '15 12:04 silvioq