我使用PostgreSQL V 9.1: SELECT 'k=>name, v=>Nava Ratna Secondary School'::hstore;
此代碼返回錯誤: '納瓦拉特納中學' ERROR: Syntax error near 'R' at position 17
LINE 1: SELECT 'k=>name, v=>Nava Ratna Secondary School
我正在關注this railscast,並完成了教程。一切工作正常。然後,我決定用hstore,而不是一個序列化的哈希值,並建立hstore後,遇到了一個錯誤: PG::Error: ERROR: Syntax error near '!' at position 4 : INSERT INTO "products" ("product_type_id", "created_at", "prope