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

cannot use tables / tables_str with mariadb-driver because it needs NULL #110

Closed
aligator opened this issue Jun 16, 2019 · 1 comment
Closed

Comments

@aligator
Copy link
Contributor

I tried to use tables_str to get all tables from a maria db.

It always returns an empty result. After some trying with odbc-c-binding and calling SQLTables with odbc-sys directly I found the solution.
If I passs null_mut() to SQLTables for catalog, schema and table, it works. So there has to be a way for tables / tables_str to provide null. Maybe with an Optional?

Don't know why the mariadb-driver handles this differently than other drivers (tried sqlite, which works if I use "%"-strings)

@Koka
Copy link
Owner

Koka commented Jun 16, 2019

Closing this as #111 was merged

@Koka Koka closed this as completed Jun 16, 2019
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

No branches or pull requests

2 participants