-
How can I write the I have it defined like this:
But I get:
Do I need to apply some kind of conversion? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.