Strange PostgreSQL “value too long for type character varying(500)”

后端 未结 3 809
旧时难觅i
旧时难觅i 2021-01-31 01:27

I have a Postgres schema which looks like:

\"enter

The problem is that whenever I

3条回答
  •  情歌与酒
    2021-01-31 02:14

    We had this same issue. We solved it adding 'length' to entity attribute definition:

    @Column(columnDefinition="text", length=10485760)
    private String configFileXml = ""; 
    

提交回复
热议问题