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

Mysql metaForeignkeys crashes when $associative flag set #181

Closed
mnewnham opened this issue Jan 3, 2016 · 1 comment
Closed

Mysql metaForeignkeys crashes when $associative flag set #181

mnewnham opened this issue Jan 3, 2016 · 1 comment
Assignees
Labels
bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1)

Comments

@mnewnham
Copy link
Contributor

mnewnham commented Jan 3, 2016

In the following scenario with the mysql driver:

$db->setFetchMode = ADODB_FETCH_NUM;
$db->metaForeignKeys('table',$owner=false,$uppercase=true,$associative=true);

The following error is thrown:

Undefined index: Create View in adodb-mysqli.inc.php on line 593

@mnewnham mnewnham added bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1) labels Jan 3, 2016
mnewnham added a commit that referenced this issue Jan 3, 2016
Passing the associative flag attempted to control both how the data was retrieved from the database and how it was returned from the method. This caused inconsistencies due to the number of different combinations available. Flag now only controls presentation of data, retrieval is always done in same way.
@mnewnham mnewnham self-assigned this Jan 3, 2016
@mnewnham
Copy link
Contributor Author

mnewnham commented Jan 3, 2016

Fixed in above commit

@mnewnham mnewnham closed this as completed Jan 3, 2016
mnewnham added a commit that referenced this issue Jan 5, 2016
Passing the associative flag attempted to control both how the data was
retrieved from the database and how it was returned from the method.
This caused inconsistencies due to the number of different combinations
available. Flag now only controls presentation of data, retrieval is
always done in same way.

Fixes #181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1)
Projects
None yet
Development

No branches or pull requests

1 participant