Skip to content

Fix data types examples #32

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

Merged
merged 1 commit into from
Aug 22, 2019
Merged

Fix data types examples #32

merged 1 commit into from
Aug 22, 2019

Conversation

makarov-roman
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Aug 16, 2019

Hey! A preview of the changes is deployed on netlify to take a look at! :)

Built with commit f320f84

https://deploy-preview-32--hopeful-clarke-f36d36.netlify.com

@@ -10,7 +10,7 @@ PostgreSQL has a rich system of supported [data types](https://www.postgresql.or
node-postgres will convert a database type to a JavaScript string if it doesn't have a registered type parser for the database type. Furthermore, you can send any type to the PostgreSQL server as a string and node-postgres will pass it through without modifying it in any way. To circumvent the type parsing completely do something like the following.

```js
const queryText = 'select int_col::string, date_col::string, json_col::string from my_table'
const queryText = 'SELECT int_col::text, date_col::text, json_col::text FROM my_table'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OOPS - thanks for catching this!

@brianc
Copy link
Owner

brianc commented Aug 22, 2019

Thanks a lot! sorry for the delay here - was on a work trip.

@brianc brianc merged commit aacc220 into brianc:master Aug 22, 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

Successfully merging this pull request may close these issues.

2 participants