Skip to content

Fixed PostgreSQL array insertion syntax.#290

Merged
brianc merged 6 commits into
brianc:masterfrom
ericjperry:master
Jan 27, 2016
Merged

Fixed PostgreSQL array insertion syntax.#290
brianc merged 6 commits into
brianc:masterfrom
ericjperry:master

Conversation

@ericjperry
Copy link
Copy Markdown
Contributor

Postgres supports arrays natively, but they were not being created properly with the handling of arrays in the Postgres dialect. According to the current documentation arrays are wrapped as a string (single quoted), with brackets, and each string (if the elements are strings) is double quoted. This PR updates the handling of arrays (for Postgres only) to match what the db expects.

@ericjperry
Copy link
Copy Markdown
Contributor Author

@brianc have you had a chance to look through this change? Would love some feedback.

@brianc
Copy link
Copy Markdown
Owner

brianc commented Jan 27, 2016

Hey I think this looks pretty good! Sorry it too me so long to get to it. I'll merge this & and get a new version pushed out! 💃

brianc added a commit that referenced this pull request Jan 27, 2016
Fixed PostgreSQL array insertion syntax.
@brianc brianc merged commit 7a64031 into brianc:master Jan 27, 2016
brianc added a commit that referenced this pull request Jan 27, 2016
This reverts commit 7a64031, reversing
changes made to cbd17ea.
brianc added a commit that referenced this pull request Jan 27, 2016
Revert "Merge pull request #290 from ericjperry/master"
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

Successfully merging this pull request may close these issues.

2 participants