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

Integers being returned as strings #30

Open
jkhulme opened this issue May 26, 2020 · 0 comments
Open

Integers being returned as strings #30

jkhulme opened this issue May 26, 2020 · 0 comments

Comments

@jkhulme
Copy link

jkhulme commented May 26, 2020

activerecord5-redshift-adapter (1.0.1)
activerecord (5.2.4.3)

In our table in redshift we have

Column | Type
member_id  | integer

In the rails console we do

irb(main):004:0> RedshiftDB.connection.raw_connection.async_exec("select member_id from table_name where list_id = $1", [l.id]).column_values(0)
=> ["13615050"]

I would expect this to be an array of integers, not strings, given the type on the column.

Running the same query with a postgres adaptor in a postgres database returns an integer.

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

No branches or pull requests

1 participant