HStore field insert issue

前端 未结 1 741
长情又很酷
长情又很酷 2021-01-21 13:27

I am trying to insert a dictionary into the htore from my python shell and I keep getting this error:

django.db.utils.ProgrammingError: function hstore(text[], i         


        
相关标签:
1条回答
  • 2021-01-21 14:05

    Django's HStoreField accepts only string values, hence the error: function hstore(text[], integer[]) does not exist.

    Try { 'round': '0'} instead of { 'round': 0} from your example.

    0 讨论(0)
提交回复
热议问题