php-reports
php-reports copied to clipboard
ADO reports / use proper sql escape function according to database vendor
- ADO reports were always using
mysql_real_escape_stringfunction 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.
+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?