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

Unexpected behavior with double quotes in PG connection string #94

Closed
bertday opened this issue Jan 2, 2023 · 2 comments
Closed

Unexpected behavior with double quotes in PG connection string #94

bertday opened this issue Jan 2, 2023 · 2 comments
Labels

Comments

@bertday
Copy link
Contributor

bertday commented Jan 2, 2023

Hello again @wavded!

Non-urgent issue I wanted to note here: I'm writing some data to a Postgres DB and was using a connection string like:

PG:"dbname='db'"

And when I called ogr2ogr:

await ogr2ogr(path, {
  destination: `PG:"dbname='db'"`,
});

When I ran my code it ended up writing GeoJSON to a file in the current directory, rather than writing to the DB. When I removed the double quotes it worked as expected.

Just wanted to document this since the ogr2ogr docs sometimes use connection strings with double quotes.

Thank you and hope this might help others!

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Feb 2, 2023
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Feb 8, 2023
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

1 participant