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

Make statistics_info use catalog arg #444

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

mohawk2
Copy link
Contributor

@mohawk2 mohawk2 commented Sep 18, 2024

Sorry for taking two goes at this. It was bothering me today that I saw the catalog info coming back from the db, but I knew statistics_info had filtering on that disabled. Now it's not (with a test, and everything!).

@dveeden
Copy link
Collaborator

dveeden commented Sep 19, 2024

As MySQL doesn't support catalogs, the name it returns is always def isn't it? Does it make sense to do filtering on that?

mysql-9.0.1> SELECT CATALOG_NAME FROM information_schema.schemata GROUP BY CATALOG_NAME;
+--------------+
| CATALOG_NAME |
+--------------+
| def          |
+--------------+
1 row in set (0.01 sec)

I know that there are plans to add catalog support to MariaDB, but that hasn't been merged yet.

@mohawk2
Copy link
Contributor Author

mohawk2 commented Sep 21, 2024

It seems to me that in that case this addition is harmless, and if someone uses this DBD for MariaDB (which I've heard of as a thing) after it gets catalogs, this addition would become valuable?

@mohawk2
Copy link
Contributor Author

mohawk2 commented Sep 21, 2024

By the way, your AppVeyor config looks broken - it's giving an error talking about not finding project files?

@dveeden
Copy link
Collaborator

dveeden commented Oct 28, 2024

By the way, your AppVeyor config looks broken - it's giving an error talking about not finding project files?

Yes, this is a known issue. See also:

Basically AppVeyor didn't have MySQL 8.x (it now does) but the Strawberry Perl is still build with MySQL 5.7.x client libraries, which are too old for DBD::mysql. I would still like to get this working again to be able to test on windows.

@dveeden dveeden merged commit 0c8c2d3 into perl5-dbi:master Oct 28, 2024
7 of 8 checks passed
@mohawk2 mohawk2 deleted the statistics_info-catalog branch November 1, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants