Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants