2

Python シェルから htore に辞書を挿入しようとしていますが、次のエラーが発生し続けます。

django.db.utils.ProgrammingError: function hstore(text[], integer[]) does not exist
LINE 1: ...ula" = hstore(ARRAY['function', 'formula'], ARRAY[hstore(ARR...
                                                         ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

私が使用しているクエリセットは次のとおりです。

Formula.objects.get_or_create(formula={ 'function': { 'round': 0}, 'formula': {'a':  0.2 , 'b': 5, 'c': 4, 'd': 4, 'e': 1}})

また、hstore 拡張機能を作成し、アプリ django_hstore を追加しました。移行も成功しました。失敗し続ける理由がわかりません。

4

1 に答える 1