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

DB2 provider throws exception over _query method incompatibility #987

Closed
1 task done
lkrms opened this issue Jun 12, 2023 · 1 comment
Closed
1 task done

DB2 provider throws exception over _query method incompatibility #987

lkrms opened this issue Jun 12, 2023 · 1 comment
Assignees
Labels
bug db2 IBM DB2 (Tier 1)
Milestone

Comments

@lkrms
Copy link

lkrms commented Jun 12, 2023

Description

This issue was introduced by ADOdb 5.22.6 and appears as soon as a connection to DB2 is attempted. Hopefully self-explanatory:

Declaration of ADODB_db2::_query(&$sql, $inputarr = false) must be compatible with ADOConnection::_query($sql, $inputarr = false)

Environment

  • ADOdb version: v5.22.6 (via Composer)
  • Driver or Module: DB2
  • Database type and version: n/a
  • PHP version: 8.2.6
  • Platform: macOS/Linux
  • I have tested that the problem is reproducible in the latest release
@lkrms lkrms added the triage New issues not yet reviewed by ADOdb developers label Jun 12, 2023
@dregad dregad added bug db2 IBM DB2 (Tier 1) and removed triage New issues not yet reviewed by ADOdb developers labels Jun 12, 2023
@dregad dregad self-assigned this Jun 12, 2023
@dregad dregad added this to the v5.22.7 milestone Jun 12, 2023
@dregad
Copy link
Member

dregad commented Jun 12, 2023

Regression introduced by #966 - looks like I forgot to update function declaration for the db2 driver, sorry about that.

As a quick workaround for now, just remove the offending &, it's not needed.

dregad added a commit that referenced this issue Jun 12, 2023
@dregad dregad closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug db2 IBM DB2 (Tier 1)
Projects
None yet
Development

No branches or pull requests

2 participants