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

Added varchar[] and char[] to array parsing. #248

Merged
merged 2 commits into from
Jan 24, 2013
Merged

Conversation

liamks
Copy link
Contributor

@liamks liamks commented Jan 18, 2013

It turns out I didn't have to modify your existing parse function at all - all I had to do was register the above datatypes =)

I haven't added any tests yet but I was thinking of doing the following for a test:

setup:

  1. create a database
  2. create a table with columns (text[], varchar[], char[])

test:

  1. insert data into above table
  2. select data from above table and see if it matches expectations

teardown:

  1. remove table
  2. remove databse

Considering the above is at least 100 lines of code I want to make sure that there wasn't an easier way of testing the above.

@brianc
Copy link
Owner

brianc commented Jan 21, 2013

@liamks
Copy link
Contributor Author

liamks commented Jan 24, 2013

Thanks for the pointer @brianc. I've added 3 unit tests, and I've run all the tests on my machine and everything passes.

@brianc
Copy link
Owner

brianc commented Jan 24, 2013

perfectamundo! 🌟 🍰

brianc added a commit that referenced this pull request Jan 24, 2013
Added varchar[] and char[] to array parsing.
@brianc brianc merged commit beb3e4f into brianc:master Jan 24, 2013
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.

None yet

2 participants