Skip to content

Conversation

tnguyen1
Copy link

  • 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.

…ndor

- was always using mysql_real_escape_string function which made macros values empty with postgres
- current behaviour: if dsn uri starts with 'postgres' then use pg_escape_string function - use mysql_real_escape_string function otherwise
@silvioq
Copy link

silvioq commented Apr 27, 2015

+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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants