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

Postgresql DB Name with space breaks SQL Mapper #316

Closed
ykgamma opened this issue Feb 23, 2020 · 2 comments
Closed

Postgresql DB Name with space breaks SQL Mapper #316

ykgamma opened this issue Feb 23, 2020 · 2 comments
Labels

Comments

@ykgamma
Copy link

ykgamma commented Feb 23, 2020

When creating a DB\SQL object, spaces in the dbname are escaped by \ characters as required by the DSN. However, when the dbname is extracted from the DSN, the escape \ characters are not removed.

This will cause the schema method to not return any fields as table name will have \ characters in the query. This results in the Mapper not having any fields when accessed.

@xfra35
Copy link
Member

xfra35 commented Feb 23, 2020

Can you give an example?
I tried connecting to a MySQL database containing a space without any problem: mysql:host=127.0.0.1;port=3306;dbname=foo bar

Is this a postgreSQL specificity?

@ikkez ikkez transferred this issue from bcosca/fatfree Dec 13, 2020
@ikkez
Copy link
Member

ikkez commented Dec 13, 2020

fixed

@ikkez ikkez closed this as completed Dec 13, 2020
@ikkez ikkez added the bug label Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants