|
How can I write the I have it defined like this: But I get: Do I need to apply some kind of conversion? |
Answered by
joto
Jul 28, 2024
Replies: 1 comment
|
Quoting this chapter in the documentation: For special cases you usually want to keep the type field unset and only set the sql_type field. So if you want to have an array of integer column, for instance, set only the sql_type to int[]. The type field will default to text which means you have to create the text representation of your array in the form that PostgreSQL expects it. See the PostgreSQL docs for that. |
0 replies
Answer selected by
joto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quoting this chapter in the documentation: For special cases you usually want to keep the type field unset and only set the sql_type field. So if you want to have an array of integer column, for instance, set only the sql_type to int[]. The type field will default to text which means you have to create the text representation of your array in the form that PostgreSQL expects it.
See the PostgreSQL docs for that.