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

MSSQL requires table alias in _adodb_getcount() query #359

Closed
wants to merge 1 commit into from

Conversation

monzol
Copy link
Contributor

@monzol monzol commented Aug 1, 2017

Currently the ADODB_ALIAS is only used for postgres and mysql, but it's also necessary for mssql, otherwise the query assigned to $rewritesql on line 422 fails and produces the following warning:
PHP Warning (2): mssql_query(): message: Incorrect syntax near ')'. (severity 15) in /usr/share/php/adodb/drivers/adodb-mssql.inc.php on line 832

@dregad dregad added bug mssqlnative Native driver for SQL Server driver (Tier 1) labels Aug 9, 2017
@dregad dregad added this to the v5.20.10 milestone Aug 9, 2017
Currently the _ADODB_ALIAS_ is only used for postgres and mysql, but
it's also necessary for mssql, otherwise the query assigned to
$rewritesql on line 422 fails and produces the following warning:
PHP Warning (2):  mssql_query(): message: Incorrect syntax near ')'.
(severity 15) in /usr/share/php/adodb/drivers/adodb-mssql.inc.php on
line 832

Fixes ADOdb#359

Signed-off-by: Damien Regad <[email protected]>

Original commit amended to split long line.
dregad pushed a commit that referenced this pull request Nov 25, 2017
Currently the _ADODB_ALIAS_ is only used for postgres and mysql, but
it's also necessary for mssql, otherwise the query assigned to
$rewritesql on line 422 fails and produces the following warning:
PHP Warning (2):  mssql_query(): message: Incorrect syntax near ')'.
(severity 15) in /usr/share/php/adodb/drivers/adodb-mssql.inc.php on
line 832

Fixes #359

Signed-off-by: Damien Regad <[email protected]>

Original commit amended to split long line.
@dregad
Copy link
Member

dregad commented Nov 25, 2017

Fixed in 7860e95. Thanks for your contribution !

@dregad dregad closed this Nov 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mssqlnative Native driver for SQL Server driver (Tier 1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants